Hi Again Susers! I run jhardins Sanitizer on my mailserver, and as far as I can tell it works nicely. I've tried reading the man pages for procmail and a few other items but I'm still unsure about one issue. Postfix uses procmail for delivery and in /etc I have the relevant files for the system, however what about locally for each user..if I create a procmailrc file in $home/user will that file run instead of the procmailrc file in /etc ?, or will it run after the /etc/procmailrc file? I would like hardins sanitizer to execute and after that for individual users to be able to add their on filtering rules or whatever? Anyway, which order are the procmailrc files executed, which takes precedence? Thomas
On Tue, 2002-08-27 at 07:10, Thomas Nyman wrote:
Hi Again Susers!
I run jhardins Sanitizer on my mailserver, and as far as I can tell it works nicely. I've tried reading the man pages for procmail and a few other items but I'm still unsure about one issue.
Postfix uses procmail for delivery and in /etc I have the relevant files for the system, however what about locally for each user..if I create a procmailrc file in $home/user will that file run instead of the procmailrc file in /etc ?, or will it run after the /etc/procmailrc file?
I would like hardins sanitizer to execute and after that for individual users to be able to add their on filtering rules or whatever?
Anyway, which order are the procmailrc files executed, which takes precedence?
Thomas
This is way I *think* it works: If you have postfix configured to use procmail for local delivery _and_ you have set up an /etc/procmailrc file, then that file processes all incoming mail first. Next, if a user has a .forward file set up to send incoming mail to procmail, then that users .procmailrc file gets processed next. You should set up a test to prove this, but that is my recollection. Best Regards, Keith -- LPIC-2, MCSE, N+ Right behind you, I see the millions Got spam? Get spastic http://spastic.sourceforge.net
* Keith Winston <kwinston@twmi.rr.com> [Aug 27. 2002 15:46]:
If you have postfix configured to use procmail for local delivery _and_ you have set up an /etc/procmailrc file, then that file processes all incoming mail first.
Next, if a user has a .forward file set up to send incoming mail to procmail, then that users .procmailrc file gets processed next.
You should set up a test to prove this, but that is my recollection.
If a user has a .procmailrc procmail will use that when delivering mail to that account. -- Mads Martin Jørgensen, http://mmj.dk "Why make things difficult, when it is possible to make them cryptic and totally illogic, with just a little bit more effort?" -- A. P. J.
In other words if an individual has a procmailrc file it must contain the same stuff as the /etc/procmailrc file plus whatever that particular user wants otherwise the rules in the /etc/procmailrc file will be bypassed? On Tue, 27 Aug 2002, Mads Martin Joergensen wrote:
* Keith Winston <kwinston@twmi.rr.com> [Aug 27. 2002 15:46]:
If you have postfix configured to use procmail for local delivery _and_ you have set up an /etc/procmailrc file, then that file processes all incoming mail first.
Next, if a user has a .forward file set up to send incoming mail to procmail, then that users .procmailrc file gets processed next.
You should set up a test to prove this, but that is my recollection.
If a user has a .procmailrc procmail will use that when delivering mail to that account.
-- Mads Martin Jørgensen, http://mmj.dk "Why make things difficult, when it is possible to make them cryptic and totally illogic, with just a little bit more effort?" -- A. P. J.
-- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
* Thomas Nyman <thomas@teg.pp.se> [Aug 27. 2002 20:02]:
In other words if an individual has a procmailrc file it must contain the same stuff as the /etc/procmailrc file plus whatever that particular user wants otherwise the rules in the /etc/procmailrc file will be bypassed?
Man-pages people. They are great for that kind of info. You should learn to read them. From procmail(1) If no rcfiles and no -p have been specified on the command line, procmail will, prior to reading $HOME/.procmailrc, interpret commands from /etc/procmailrc (if present). Care must be taken when creating /etc/procmailrc, because, if circum stances permit, it will be executed with root privileges (contrary to the $HOME/.procmailrc file of course). -- Mads Martin Jørgensen, http://mmj.dk "Why make things difficult, when it is possible to make them cryptic and totally illogic, with just a little bit more effort?" -- A. P. J.
participants (3)
-
Keith Winston
-
Mads Martin Joergensen
-
Thomas Nyman