Niall O Broin said on Sat, Feb 14, 2004 at 12:09:32AM +0000:
> For quite some time I've been meaning to integrate SA and postfix, and
> now a customer requirement means that it comes off the "some fine day"
> list and gets put on the "real soon now" list.
>> The ideal solution will integrate nicely with postifx with a minimum
> disturbance of the existing configuration and will provide ease of
> maintenance.
>The way I do it (and the simplest way I can think of) is to install procmail,
then in /etc/postfix/main.cf, do:
mailbox_command = /some/where/procmail -a "$EXTENSION"
Then, simply invoke spamc from /etc/procmailrc something like this (this
assumes maildir and verbose logging, YMMV).
DROPPRIVS=yes
MAILDIR=$HOME/Maildir/
DEFAULT=$HOME/Maildir/
LOGFILE=/var/log/procmail
VERBOSE=yes
:0fw
* < 256000
| spamc
This has been working just dandy for me in production for over a year now.
- DoC
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!