Eric Broch wrote: > On 8/20/2012 8:40 AM, Christian Ferrati wrote: >> There is a way to set qmail-spamassin to automatically move all >> incoming Email renamed as ***SPAM*** to a "spam folder"? >> > I have the users I consult use the email client--Thunderbird, etc...--to > move all mail marked as spam (***SPAM***) to the folder of their choice.
You might like to look at procmail (http://www.procmail.org/) as a way of providing this capability. You'll need to modify your '.qmail-' files to pass incoming mail through procmail, and then write procmail recipes to handle the spam. For example, my personal .qmail- file looks approximately like: | preline /usr/bin/procmail -p -m /path/to/my/.procmail-rc-file (obviously that '/path/to/my/.procmail-rc-file' isn't the real path, but you get the idea). A simple .procmailrc file might look something like: SHELL=/bin/sh LOGFILE=/path/to/my/procmail-log VERBOSE=on CRLF=" " MAILDIR=/path/to/my/Maildir/ SPAMDIR=/path/to/my/Maildir/.Spam/ :0: * ^X-Subject:.*\*\*\*SPAM\*\*\* $SPAMDIR :0w $MAILDIR I'm doing this on a per-user basis, so if you want to have centralized procmail management for all users (i.e. use a '.qmail-default' to route everything through procmail, then somehow use variables to construct a delivery path dynamically so that mail gets routed to the appropriate user vpopmail directory) you may need to do something cleverer. Procmail may be overkill for your application; there may be a simpler way to do this using tools already in QMT, in which case Eric will be along in a moment or two to explain it. If not, however, it's certainly something you could look at. Angus --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
