Am 05.09.2017 um 20:00 schrieb Pol Hallen: > Sep 5 19:59:21 domain postfix/qmgr[19936]: warning: connect to > transport private/spamassassin: Connection refused > > Pol
why not simply use spamass-milter with postfix and then lmtp from dovecot, your desired way is really old fashioned...and has no benefit in any way > > On 2017-09-05 03:10, Bill Shirley wrote: >> Try main.cf: >> # dovecot 2.x >> mailbox_command = /usr/bin/spamc -e /usr/libexec/dovecot/dovecot-lda >> -a "$RECIPIENT" -f "$SENDER" -m "$EXTENSION" >> >> Bill >> >> >> On 9/3/2017 12:33 PM, doveco...@fuckaround.org wrote: >>> Hi all :) >>> >>> I will try to use /usr/lib/dovecot/deliver instead of postfix. I'd >>> like automatically move email to junk folder. I use debian 9. >>> >>> cat /etc/postfix/master.cf >>> [...] >>> spamassassin unix - n n - - pipe >>> user=debian-spamd argv=/usr/bin/spamc -f -e >>> /usr/lib/dovecot/deliver -f ${sender} -d ${recipient} >>> >>> with this line dovecot works perfectly but only with virtual users, >>> my system has also system users /etc/passwd >>> >>> How to tell dovecot to deliver email also to real system users? >>> >>> Sep 03 17:05:08 auth: Debug: master in: USER 1 t...@mydomain.org >>> service=lda >>> Sep 03 17:05:08 auth-worker(24749): Debug: passwd(t...@mydomain.org): >>> lookup >>> Sep 03 17:05:08 auth: Debug: pam(t...@mydomain.org): passdb doesn't >>> support credential lookups >>> Sep 03 17:05:08 lda(t...@mydomain.org): Debug: auth USER input: >>> Sep 03 17:05:08 auth: Debug: passwd-file(t...@mydomain.org): lookup: >>> user=t...@fuckaround.org file=/etc/dovecot/users >>> Sep 03 17:05:08 auth: Debug: userdb out: NOTFOUND 1 >>> Sep 03 17:05:08 auth: Debug: auth client connected (pid=24758) >>> Sep 03 17:05:08 auth: Debug: client in: AUTH 1 PLAIN >>> service=imap secured session=GIfuUUpY1BCXMEZw lip=192.168.0.2 >>> rip=x.x.x.x lport=993 rport=4308 local_name=imap.mydomain.org >>> Sep 03 17:05:08 auth: Debug: client passdb out: CONT 1 >>> Sep 03 17:05:08 auth: Debug: client in: CONT 1 >>> hfdskjfsdkjdshjkfd== (previous base64 data may contain sensitive data) >>> Sep 03 17:05:08 auth-worker(24749): Debug: >>> pam(user,151.48.70.112,<GIfuUUpY1BCXMEZw>): lookup service=dovecot >>> Sep 03 17:05:08 auth-worker(24749): Debug: >>> pam(user,151.48.70.112,<GIfuUUpY1BCXMEZw>): #1/1 style=1 msg=Password: >>> Sep 03 17:05:09 auth: Debug: client passdb out: OK 1 user=user >>> Sep 03 17:05:09 auth: Debug: master in: REQUEST 2331639809 24758 >>> 1 754574397549379543789547 session_pid=24760 request_auth_token >>> >>> thanks for help! >>> >>> Pol > Best Regards MfG Robert Schetterer -- [*] sys4 AG http://sys4.de, +49 (89) 30 90 46 64 Schleißheimer Straße 26/MG, 80333 München Sitz der Gesellschaft: München, Amtsgericht München: HRB 199263 Vorstand: Patrick Ben Koetter, Marc Schiffbauer Aufsichtsratsvorsitzender: Florian Kirstein