‚ < ‚ Day Day Up ‚ > ‚ |
The easiest way to add SpamAssassin to a qmail system is to configure qmail to pipe messages through SpamAssassin during local delivery. The advantages of this approach are:
However, qmail runs a local delivery agent only for email destined for a local recipient. You cannot create a spam-checking gateway with this approach. If you're using the installation described in the Life with qmail web site, the /var/qmail/control/defaultdelivery file contains a line that specifies either a directory (e.g., ./Maildir/ ) or a filename (e.g., ./Mailbox ). The /var/qmail/rc script passes the contents of defaultdelivery to qmail-start , and thence to qmail-lspawn and qmail-local . If you deliver to a maildir directory, change the line in your defaultdelivery file to read: /usr/bin/spamc maildir ./Maildir/ In this case, be sure you've installed the safecat package, which includes the maildir script. You can get safecat at http://www.pobox.com/~lbudney/linux/software/safecat.html. If you deliver to a mailbox file in each user's home directory, install procmail and change the line in defaultdelivery to read: preline procmail In this case, the system's /etc/procmailrc file should have a default recipe that looks like this: :0fw * <300000 /usr/bin/spamc :0: $HOME/Mailbox
|
‚ < ‚ Day Day Up ‚ > ‚ |