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

Reply via email to