Although I have a content_filter configration (master.cf):

   smtp      inet  n       -       n       -       - smtpd
       -o content_filter = filter:dummy


and a appropriate service configuration:

   filter unix -       n       n       -       10      pipe
       flags=Rq user=filter null_sender=
       argv=/usr/local/bin/spamfilter -f ${sender} -- ${recipient}

smtpd does not forward mails to the filter service.

----- maillog ------

   Oct 18 14:42:13 ahorn postfix/pickup[4623]: BA6F76370C: uid=328
   from=<testuser>
   Oct 18 14:42:13 ahorn postfix/cleanup[4704]: BA6F76370C:
   message-id=<20131018124213.ba6f763...@mx1.mydomain.de>
   Oct 18 14:42:13 ahorn postfix/qmgr[2507]: BA6F76370C:
   from=<testu...@mydomain.de>, size=493, nrcpt=1 (queue active)
   Oct 18 14:42:13 ahorn dovecot: auth: Debug: Loading modules from
   directory: /usr/lib64/dovecot/auth
   Oct 18 14:42:13 ahorn dovecot: auth: Debug: Module loaded:
   /usr/lib64/dovecot/auth/libauthdb_ldap.so
   Oct 18 14:42:13 ahorn dovecot: auth: Debug: Module loaded:
   /usr/lib64/dovecot/auth/libdriver_sqlite.so
   Oct 18 14:42:13 ahorn dovecot: auth: Debug: Module loaded:
   /usr/lib64/dovecot/auth/libmech_gssapi.so
   Oct 18 14:42:13 ahorn dovecot: auth: Debug: passwd-file
   /etc/dovecot/userdb: Read 3 users
   Oct 18 14:42:13 ahorn dovecot: auth: Debug: master in:
   USER#0111#011testmailu...@mydomain.de#011service=lda
   Oct 18 14:42:13 ahorn dovecot: auth: Debug:
   passwd-file(testmailu...@mydomain.de): lookup:
   user=testmailu...@mydomain.de file=/etc/dovecot/userdb
   Oct 18 14:42:13 ahorn dovecot: auth: Debug: master out:
   USER#0111#011testmailu...@mydomain.de
   Oct 18 14:42:13 ahorn dovecot: lda: Debug: auth input:
   testmailu...@mydomain.de
   Oct 18 14:42:13 ahorn dovecot: lda(testmailu...@mydomain.de): Debug:
   Effective uid=1000, gid=1000, home=
   Oct 18 14:42:13 ahorn dovecot: lda(testmailu...@mydomain.de): Debug:
   maildir++: root=/home/mail/mydomain.de/testmailuser/Maildir, index=,
   control=, inbox=/home/mail/mydomain.de/testmailuser/Maildir
   Oct 18 14:42:13 ahorn dovecot: lda(testmailu...@mydomain.de): Debug:
   none: root=, index=, control=, inbox=
   Oct 18 14:42:13 ahorn dovecot: lda(testmailu...@mydomain.de):
   msgid=<20131018124213.ba6f763...@mx1.mydomain.de>: saved mail to INBOX
   Oct 18 14:42:13 ahorn postfix/pipe[4707]: BA6F76370C:
   to=<testmailu...@mydomain.de>, relay=dovecot, delay=0.96,
   delays=0.81/0.01/0/0.14, dsn=2.0.0, status=sent (delivered via
   dovecot service)
   Oct 18 14:42:13 ahorn postfix/qmgr[2507]: BA6F76370C: removed

-----------------------

When I make a configuration in the main.cf with

   content_filter = filter:dummy

the filter service is invoked, and seems to work properly, but there is a endless loop and mail is rejectd with "too many hops".

I am using postfix 2.6.6 on Centos 6.

I have tried a lot and at the moment no idea what is going wrong.

What can be the reason, that smtpd do not use the "-o content_filter=filter:dummy"


--- complete master.cf ---
smtp      inet  n       -       n       -       -       smtpd
   -o content_filter=filter:dummy

pickup    fifo  n       -       n       60      1       pickup
cleanup   unix  n       -       n       -       0       cleanup
qmgr      fifo  n       -       n       300     1       qmgr
tlsmgr    unix  -       -       n       1000?   1       tlsmgr
rewrite   unix  -       -       n       -       - trivial-rewrite
bounce    unix  -       -       n       -       0       bounce
defer     unix  -       -       n       -       0       bounce
trace     unix  -       -       n       -       0       bounce
verify    unix  -       -       n       -       1       verify
flush     unix  n       -       n       1000?   0       flush
proxymap  unix  -       -       n       -       -       proxymap
proxywrite unix -       -       n       -       1       proxymap
smtp      unix  -       -       n       -       -       smtp
relay     unix  -       -       n       -       -       smtp
    -o smtp_fallback_relay=
showq     unix  n       -       n       -       -       showq
error     unix  -       -       n       -       -       error
retry     unix  -       -       n       -       -       error
discard   unix  -       -       n       -       -       discard
local     unix  -       n       n       -       -       local
virtual   unix  -       n       n       -       -       virtual
lmtp      unix  -       -       n       -       -       lmtp
anvil     unix  -       -       n       -       1       anvil
scache    unix  -       -       n       -       1       scache

filter unix -       n       n       -       10      pipe
   flags=Rq user=filter null_sender=
   argv=/usr/local/bin/spamfilter -f ${sender} -- ${recipient}

dovecot   unix  -       n       n       -       -       pipe
flags=DRhu user=vmail:vmail argv=/usr/libexec/dovecot/dovecot-lda -f ${sender} -d ${recipient}

------------------------------------

Tips welcome ;-))

Regards

Rainer

Reply via email to