[Dovecot] spamc can't seem to call /usr/lib/dovecot/deliver
Robert Schetterer
rs at sys4.de
Wed Oct 24 19:09:12 EEST 2012
Am 24.10.2012 17:47, schrieb Bill Shirley:
>
> On 10/24/2012 2:33 AM, Robert Schetterer wrote:
>> Am 24.10.2012 03:32, schrieb Bill Shirley:
>>> What is your mailbox_command in main.cf? I just use:
>>> mailbox_command = /usr/bin/spamc -u "$USER" -e
>>> /usr/lib64/dovecot/deliver -a "$RECIPIENT" -f "$SENDER" -m "$EXTENSION"
>>>
>>> I don't need anything in master.cf. But you should be using -u ${user}
>>> for spamc.
>> long time ago i tested this with dovecot lda postfix master.cf
>> with a total virtual setup
>>
>> dovecot unix - n n - - pipe
>> flags=DRhu user=vmail:vmail argv=/usr/bin/spamc -e
>> /usr/lib/dovecot/deliver -f ${sender} -d ${recipient}
>>
>> but i strongly do not recommand this !!!
>>
>> use spamass-milter, amavis etc with dovecot lmtp
>> as described on many sites
>>
>>
>> Best Regards
>> MfG Robert Schetterer
>>
>
> Can you get per-user Spamassassin configs this way?
>
> Why user=vmail:vmail? Is this for virtual domains? I didn't think we
> were talking about them.
>
> Instead of strongly recommending against this, why not elaborate on the
> problems with using spamc in the mailbox_command?
>
> Bill
>
Hi Bill, you missed
my
"i tested this with dovecot lda"
in hope you may adapt the syntax to your needs by your own
here are the recommanded setups
http://wiki.apache.org/spamassassin/IntegratedSpamdInPostfix
http://wiki.dovecot.org/LDA/Postfix
--snip
mailbox_command = /usr/bin/spamc -e /usr/lib/dovecot/deliver
--snipend
by the way using dovecot lmtp and i.e amavis or spamass-milter/clamav-milter
might be better choice in many ways
Best Regards
MfG Robert Schetterer
--
[*] sys4 AG
http://sys4.de, +49 (89) 30 90 46 64
Franziskanerstraße 15, 81669 München
Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263
Vorstand: Patrick Ben Koetter, Axel von der Ohe, Marc Schiffbauer
Aufsichtsratsvorsitzender: Joerg Heidrich
More information about the dovecot
mailing list