On Fri, Jan 07, 2005 at 10:42:01AM -0400, Derek Billingsley <[EMAIL PROTECTED]> wrote: > Can someone tell me how I would redirect spam to an imap mailbox in qmail? > I use .qmail files that run ifspamh (the modified version that allows > you to set a destination address to redirect email to) > So a sample .qmail file looks like this: > | /usr/bin/ifspamh derekbspam 1 > ./Maildir/ > Can I do this without procmail? (I use qmail under Plesk and I've set up > Spamassassin separately. )
I haven't messed with ifspamh in a while, but if memory serves, it resends the message to the supplied address if the message is spam, without delivering the message. If the message is not spam, it is delivered normally. So, if your username is derekb, you should change your .qmail file to be: | /usr/bin/ifspamh derekb-spam 1 ./Maildir/ and add a .qmail-spam file: ./Maildir/.SPAM and set the permissions on the latter file if necessary: chmod go-rwx .qmail-spam That will arrange for qmail to deliver the message into your .SPAM maildir when ifspamh resends the message. -- Matthew Hunter ([EMAIL PROTECTED]) Public Key: http://matthew.infodancer.org/public_key.txt Homepage: http://matthew.infodancer.org/index.jsp Politics: http://www.triggerfinger.org/weblog/index.jsp
