[Dovecot] can deliver filter through spamc?
I'm using maildrop to filter mail like:
xfilter "/usr/bin/spamc" xfilter "/usr/bin/bogofilter -ep"
I want to change to deliver (so I can use sieve) but can deliver do this?
On Sat, 2008-12-13 at 15:04 -0500, Neal Becker wrote:
I'm using maildrop to filter mail like:
xfilter "/usr/bin/spamc" xfilter "/usr/bin/bogofilter -ep"
I want to change to deliver (so I can use sieve) but can deliver do this?
deliver can't execute external programs. Typically you'd run these programs first and then deliver. I don't know about spamc/bogofilter, but spamassassin for example:
spamassassin | deliver
Timo Sirainen wrote:
On Sat, 2008-12-13 at 15:04 -0500, Neal Becker wrote:
I'm using maildrop to filter mail like:
xfilter "/usr/bin/spamc" xfilter "/usr/bin/bogofilter -ep"
I want to change to deliver (so I can use sieve) but can deliver do this?
deliver can't execute external programs. Typically you'd run these programs first and then deliver. I don't know about spamc/bogofilter, but spamassassin for example:
spamassassin | deliver
I use qmail/vpopmail. I haven't gotten around to replacing vdelivermail with deliver. I run both maildrop and procmail globally, but don't have them do final delivery unless it's part of the filter. This allows me to still run personal .qmail-default's, like vacations and forwards. The trick is to make sure that maildrop and procmail don't set ERRORLEVEL = 0 when they don't have any matching rules. This lets qmail continue through the .qmail-default script.
I don't know if deliver is a full vdelivermail replacement in the above example, but the errorlevel magic is an option (and a headache - let me know if you want scripts..). I don't run Sieve.
Rick
-- Rick Romero Need IT assistance? VF IT Services / VFEmail.net www.vfit.biz / www.vfemail.net
Rick Romero wrote:
Timo Sirainen wrote:
On Sat, 2008-12-13 at 15:04 -0500, Neal Becker wrote:
I'm using maildrop to filter mail like:
xfilter "/usr/bin/spamc" xfilter "/usr/bin/bogofilter -ep"
I want to change to deliver (so I can use sieve) but can deliver do this?
deliver can't execute external programs. Typically you'd run these programs first and then deliver. I don't know about spamc/bogofilter, but spamassassin for example:
Here's what I did:
spam_and_deliver.sh:
#!/bin/bash cat - | /usr/bin/spamc | /usr/bin/bogofilter -ep | /usr/libexec/dovecot/deliver
.fetchmailrc
blah blah ... mta /path/to/spam_and_deliver.sh
seems to work.
Neal Becker a écrit :
I'm using maildrop to filter mail like:
xfilter "/usr/bin/spamc" xfilter "/usr/bin/bogofilter -ep"
I want to change to deliver (so I can use sieve) but can deliver do this?
After mail has been filtered by spamassassin and/or bogofilter, you can use the To "|someprogram" syntax to pass it to dovecot LDA.
don't use xfilter to deliver to dovecot. xfilter expects mail back to maildrop, not delivered without maildrop knowing...
participants (4)
-
mouss
-
Neal Becker
-
Rick Romero
-
Timo Sirainen