procmail
[Top] [All Lists]

Re: procmail on a pass thru unix mail server

2005-06-27 15:30:28
At 12:23 2005-06-27 -0500, Jerry K wrote:
I take care of a unix mail server that is a pass thru mail server,

The term is "mail gateway".

On the unix box, I am running sendmail 8.13.x with an access list (/etc/mail/access.*). There are about 40 users and forwarding (to the ms box) is currently accomplished using the /etc/mail/aliases file. There are currently no accounts on the unix system other than for administrative purposes

Not topical to this list, but you should look into setting up LDAP or somesuch so that the gateway host knows what valid addresses are on the backend, without you having to manually maintain two separate lists (one at the gateway, and one at the backend mailhost).

Of course, a lot of arguments could be made for ditching the Exchange setup entirely...

I am a new procmail user and was interested in using procmail for additional mail filtering. I did do some RTFM'ing and I do know from the FAQ that procmail is not an MTA.

If you're forwarding the messages, you're going to have to set up aliases to invoke procmail as a filter and then have procmail do the forward:

[/etc/aliases]

someuser: "|/usr/local/bin/procmail -m /path/to/procmailrc realbackendaddr(_at_)domain(_dot_)tld"


the procmailrc does it's thing, and any mail that is ultimatley to be forwarded is subjected to a final recipe like so:

:0
! $1

(I do something slightly more complex in my Senechal setup, but at the core and minus some fluff, this is what it is)

My first thought was to create user accounts on my unix system, and call procmail from a .forward file in the users home directory.

If all the filtering is to be the same, this is unnecessary.

---
 Sean B. Straw / Professional Software Engineering

 Procmail disclaimer: <http://www.professional.org/procmail/disclaimer.html>
 Please DO NOT carbon me on list replies.  I'll get my copy from the list.


____________________________________________________________
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>