procmail
[Top] [All Lists]

How do I relay from within procmail?

2002-05-10 00:30:36
I have a procmail script that scans for spam, etc then filters to an
imap account. There are some addresses that I would want to scan for and
relay to our exchange server. I don't want to just forward to a user but
relay to a machine.
for instance:

:0
* ^To(_dot_)*(_at_)office(_dot_)com
!office

I have office linked to the exchange server ip address in /etc/hosts.
However when I did that the exchange server did not recognize who it was
originally for, so if it was for si(_at_)office(_dot_)com it would appear in
exchange as an undeliverable address of office, instead of to
si(_at_)office(_dot_)com

I could not forward it to si(_at_)office(_dot_)com because that would cause a 
loop
sending it back to this email server.

-- 
SI Reasoning
si(_at_)mindspring(_dot_)com
gpg public key ftp://ftp.p-p-i.com/pub/si-mindspring-pubkey.asc

"The frog does not drink up the pond in which it lives."
Chinese Proverb

Attachment: signature.asc
Description: This is a digitally signed message part

<Prev in Thread] Current Thread [Next in Thread>