Le 07/11/2010 20:17, Bruno Costacurta a écrit :
Hello,

I setup Postfix with spamassassin and procmail.
spamassassin is configured in master.cf, and procmail in main.cf

spamassassin is executed but not procmail.

* in master.cf
...
smtp inet n - - - - smtpd
-o content_filter=spamfilter:dummy
spamfilter unix - n n - - pipe
flags=Rq user=spamfilter argv=/usr/local/bin/spamfilter.sh -f ${sender}
-- ${recipient}
...

* in main.cf:
...
mailbox_command = /usr/bin/procmail -f- -a "$USER"
...
(note : /usr/bin/procmail is fine and seems ok)

* in mail.info log file :
...
setuid to spamfilter succeeded
spamd: processing message ... for spamfilter:5001
spamd: clean message (-0.5/2.0) for spamfilter:5001 in 2.2 seconds, 1875
bytes.
...
spamd[32416]: prefork: child states: II
...
postfix/cleanup[27681]: ... status=sent (delivered via spamfilter service)
postfix/qmgr[18310]: ... removed
...

So spamassassin is correctly setup.
But after spamd I expected some trace of some mailbox_command execution,
but (apparently) nothing, and so procmail is not executed.

Why procmail is not executed ? Is there some priority or dependencies
for mailbox_command execution ?

mailbox_command works for "local" domains: domains listed under mydestination.

for more help,
- show output of 'postconf -n'
- relevant logs
if you rename domains, do so coherently (replace with the same name in logs and 'postconf -n', and do not replace two diffrent domains with a single one...)

Reply via email to