You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Derek Billingsley <de...@geeknet.ca> on 2005/01/07 15:42:01 UTC
Redirecting SPAM directly to a folder in qmail
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 have an IMAP folder set up as 'SPAM' and the qmail directory structure is:
./derekb/Maildir/(new|cur|tmp)
./derekb/Maildir/.SPAM/(new|cur|tmp)
Thanks
Derek
Re: Redirecting SPAM directly to a folder in qmail
Posted by Matthew Hunter <ma...@infodancer.org>.
On Fri, Jan 07, 2005 at 10:42:01AM -0400, Derek Billingsley <de...@geeknet.ca> 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 (matthew@infodancer.org)
Public Key: http://matthew.infodancer.org/public_key.txt
Homepage: http://matthew.infodancer.org/index.jsp
Politics: http://www.triggerfinger.org/weblog/index.jsp