postfix - Problem to use sieve and dovcot to move spam mail to Junk folder - Ask Ubuntu


i have working mailserver postfix, dovecot , spamassassin. spamassassin marks mail spam, cant use sieve move spammail junk folder.

if run dovecot -n can see

protocol lda {    mail_plugins = " sieve" }    protocol lmtp {   mail_plugins = " sieve"     } 

if try test sieve telnet looks works

$ telnet localhost 4190 trying 127.0.0.1... connected localhost. 

but spammail lands in inbox , not junk

if run following sieve-filter cmd roules in .dovecot.sieve works , move spammail junk

$ sieve-filter -v -c -e -w -u jesper .dovecot.sieve 'inbox' 

it looks adding

mailbox_command = /usr/lib/dovecot/deliver

to

/etc/postfix/main.cf

and

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

to

master.cf

solved problem


Comments

Popular posts from this blog

download - Firefox cannot save files (most of the time), how to solve? - Super User

windows - "-2146893807 NTE_NOT_FOUND" when repair certificate store - Super User