procmail
[Top] [All Lists]

local procmail filtering before using sendmail smarthost

2004-07-14 09:57:39
Greetings,

I am currently facing the following dilemma: 

I currently have Sendmail configured to relay all mail from the Linux
server in question to our main Linux mail server. This was just fine
until yesterday. Now, I need to have one account that autoreplies (via
procmail), and then relay all other email to the main server. I am not
sure how to do this. 

It looks like Sendmail is bypassing Procmail for all email delivery. I
have set the following options in the sendmail.cf to deliver all mail to
the main email server:

# "Smart" relay host (may be null)
DSmail-omaha.omnihotels.com.

# who I send unqualified names to if FEATURE(stickyhost) is used
# (null means deliver locally)
DRmail-omaha.omnihotels.com.

# who gets all local email traffic
# ($R has precedence for unqualified names if FEATURE(stickyhost) is
used)
DHmail-omaha.omnihotels.com.

The /etc/procmail.rc file is as follows:

:0 HBc
* ^TO.*test-account.*
|/usr/bin/perl /tmp/test-reply.pl

My question is, how do I configure Procmail to match the test account
recipe above, and then relay all other messages to the main email
server? Has anyone ever done this before?


Software specs:

SuSE Linux 9.0
Procmail 3.15.1
Sendmail 8.12.10

Thanks,

Todd Jamison
Systems Administrator
Omni Hotels Reservation Center
tjamison(_at_)omnihotels(_dot_)com


____________________________________________________________
procmail mailing list   Procmail homepage: http://www.procmail.org/
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

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