Differences between revisions 1 and 2
Revision 1 as of 2004-06-05 21:54:18
Size: 1102
Editor: JustinMason
Comment:
Revision 2 as of 2009-09-20 23:16:57
Size: 1104
Editor: localhost
Comment: converted to 1.6 markup
Deletions are marked like this. Additions are marked like this.
Line 3: Line 3:
Since qmail allows users to configure their own delivery options via ~/.qmail files, an option if you have spamd running, is to use [http://www.gbnet.net/~jrg/qmail/ifspamh/ ifspamh], which is a spamc wrapper that you can use as a command in any ~/.qmail file. Since qmail allows users to configure their own delivery options via ~/.qmail files, an option if you have spamd running, is to use [[http://www.gbnet.net/~jrg/qmail/ifspamh/|ifspamh]], which is a spamc wrapper that you can use as a command in any ~/.qmail file.

Integration into qmail using ifspamh

Since qmail allows users to configure their own delivery options via ~/.qmail files, an option if you have spamd running, is to use ifspamh, which is a spamc wrapper that you can use as a command in any ~/.qmail file.

If the message passed to ifspamh is suspected to be spam, it is redelivered to an address specified as the argument to ifspamh (typically an alias which is handled by another .qmail file). Otherwise, the message is usually allowed to be processed by the next line in the .qmail file. In either case, ~/.spamassassin/user_prefs is honored, and ifspamh returns the proper exit codes required of a command; see dot-qmail(8) and qmail-command(8).

A sample ~/.qmail to test mail to myuserid@myhost with ifspamh, delivering spam to myuserid-spam(@myhost), and feeding non-spam to procmail:

|/usr/local/bin/ifspamh myuserid-spam
|/var/qmail/bin/preline /usr/local/bin/procmail

And a ~/.qmail-spam to handle what gets sent to myuserid-spam:

 /home/myuserid/mail/spambox

IntegratedInQmailWithIfspamh (last edited 2009-09-20 23:16:57 by localhost)