Hi. I have a quite problem with dovecot and sieve on Debian Squeeze.
I'm trying to enable sieve plugin into dovecot, but something is
deeply wrong. I hope that this is the right place to give some help.
There are no errors or warning messages, simply sieve don't works.
For the big picture about my mail server you can follow this link
http://www.linux-archive.org/debian-user/555576-postfix-virtual_transport-maildrop.html
and here there is my specific request on Debian User List
http://www.linux-archive.org/debian-user/557551-sieve-dovecot-squeeze-help.html
here my dovecot -n output
# 1.2.15: /etc/dovecot/dovecot.conf
# OS: Linux 2.6.32-5-amd64 x86_64 Debian 6.0.1 ext3
log_timestamp: %Y-%m-%d %H:%M:%S
protocols: imap imaps pop3 pop3s lda
disable_plaintext_auth: no
login_dir: /var/run/dovecot/login
login_executable(default): /usr/lib/dovecot/imap-login
login_executable(imap): /usr/lib/dovecot/imap-login
login_executable(pop3): /usr/lib/dovecot/pop3-login
first_valid_uid: 102
mail_privileged_group: mail
mail_location: maildir:/home/vmail/%d/%n
mbox_write_locks: fcntl dotlock
mail_executable(default): /usr/lib/dovecot/imap
mail_executable(imap): /usr/lib/dovecot/imap
mail_executable(pop3): /usr/lib/dovecot/pop3
mail_plugin_dir(default): /usr/lib/dovecot/modules/imap
mail_plugin_dir(imap): /usr/lib/dovecot/modules/imap
mail_plugin_dir(pop3): /usr/lib/dovecot/modules/pop3
lda:
log_path: /var/vmail/dovecot-deliver.log
postmaster_address: info@**********.it
auth_socket_path: /var/run/dovecot/auth-master
mail_plugins: cmusieve
auth default:
mechanisms: cram-md5 plain login
debug: yes
passdb:
driver: sql
args: /etc/dovecot/dovecot-mysql.conf
userdb:
driver: sql
args: /etc/dovecot/dovecot-mysql.conf
socket:
type: listen
client:
path: /var/spool/postfix/private/auth
mode: 432
user: postfix
group: postfix
master:
path: /var/run/dovecot/auth-master
mode: 384
user: postfix
plugin:
sieve_global_path: /var/vmail/globalsieverc
sieve_dir: ~/sieve
sieve: ~/.dovecot.sieve
sieve_global_dir: /var/vmail/sieve
sieve_maxscriptsize: 128
Any suggestions? Thanks in advance!
-Andrea
2011/7/27 Andrea Ganduglia <nonews.org at gmail.com>> Hi. I have a quite problem with dovecot and sieve on Debian Squeeze. > > I'm trying to enable sieve plugin into dovecot, but something is > deeply wrong. I hope that this is the right place to give some help. > > There are no errors or warning messages, simply sieve don't works. > > For the big picture about my mail server you can follow this link > > http://www.linux-archive.org/debian-user/555576-postfix-virtual_transport-maildrop.html > > and here there is my specific request on Debian User List > > http://www.linux-archive.org/debian-user/557551-sieve-dovecot-squeeze-help.html > > here my dovecot -n output > > # 1.2.15: /etc/dovecot/dovecot.conf > # OS: Linux 2.6.32-5-amd64 x86_64 Debian 6.0.1 ext3 > log_timestamp: %Y-%m-%d %H:%M:%S > protocols: imap imaps pop3 pop3s lda > disable_plaintext_auth: no > login_dir: /var/run/dovecot/login > login_executable(default): /usr/lib/dovecot/imap-login > login_executable(imap): /usr/lib/dovecot/imap-login > login_executable(pop3): /usr/lib/dovecot/pop3-login > first_valid_uid: 102 > mail_privileged_group: mail > mail_location: maildir:/home/vmail/%d/%n > mbox_write_locks: fcntl dotlock > mail_executable(default): /usr/lib/dovecot/imap > mail_executable(imap): /usr/lib/dovecot/imap > mail_executable(pop3): /usr/lib/dovecot/pop3 > mail_plugin_dir(default): /usr/lib/dovecot/modules/imap > mail_plugin_dir(imap): /usr/lib/dovecot/modules/imap > mail_plugin_dir(pop3): /usr/lib/dovecot/modules/pop3 > lda: > log_path: /var/vmail/dovecot-deliver.log > postmaster_address: info@**********.it > auth_socket_path: /var/run/dovecot/auth-master > mail_plugins: cmusieve > auth default: > mechanisms: cram-md5 plain login > debug: yes > passdb: > driver: sql > args: /etc/dovecot/dovecot-mysql.conf > userdb: > driver: sql > args: /etc/dovecot/dovecot-mysql.conf > socket: > type: listen > client: > path: /var/spool/postfix/private/auth > mode: 432 > user: postfix > group: postfix > master: > path: /var/run/dovecot/auth-master > mode: 384 > user: postfix > plugin: > sieve_global_path: /var/vmail/globalsieverc > sieve_dir: ~/sieve > sieve: ~/.dovecot.sieve > sieve_global_dir: /var/vmail/sieve > sieve_maxscriptsize: 128 > > Any suggestions? Thanks in advance! > > -Andrea >I think you need to use dovecot as the LDA if you want sieve filters to be applied. Have you tried to replace virtual_tranport in the main.cf file? (ie. virtual_transport = dovecot) Antoine
On Wed, Jul 27, 2011 at 5:18 PM, Antoine Nguyen <ngu.antoine at gmail.com> wrote:> 2011/7/27 Andrea Ganduglia <nonews.org at gmail.com> >> >> On Wed, Jul 27, 2011 at 4:33 PM, Antoine Nguyen <ngu.antoine at gmail.com> >> wrote: >> > 2011/7/27 Andrea Ganduglia <nonews.org at gmail.com> >> > >> >> Hi. I have a quite problem with dovecot and sieve on Debian Squeeze. >> >> >> >> I'm trying to enable sieve plugin into dovecot, but something is >> >> deeply wrong. I hope that this is the right place to give some help. >> >> >> >> There are no errors or warning messages, simply sieve don't works. >> >> > I think you need to use dovecot as the LDA if you want sieve filters to >> > be >> > applied. >> > >> > Have you tried to replace virtual_tranport in the main.cf file? (ie. >> > virtual_transport = dovecot) >> > >> > Antoine >> > >> >> If I set virtual_transoport it said relay=none (unknown mail transport >> error) the same error that I receive if I set maildrop >> >> http://www.linux-archive.org/debian-user/555576-postfix-virtual_transport-maildrop.html >> >> Maybe, the problem is here? ... :-( >> >> -- >> Openclose.it - Idee per il software libero >> http://www.openclose.it > > You also need to add a new entry for dovecot in your master.cf file, > something like : > > dovecot?? unix? -?????? n?????? n?????? -?????? -?????? pipe > ? flags=DRhu user=<user>:<group> argv=/usr/lib/dovecot/deliver -f ${sender} > -d ${recipient} >Sure! Already done! I don't understand how insert dovecot into delivery chain # cat master.cf | grep -v '#' smtp inet n - n - - smtpd -o content_filter=spamassassin 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_relayshowq 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 maildrop unix - n n - - pipe flags=DRhu user=vmail argv=/usr/bin/maildrop -d ${recipient} uucp unix - n n - - pipe flags=Fqhu user=uucp argv=uux -r -n -z -a$sender - $nexthop!rmail ($recipient) ifmail unix - n n - - pipe flags=F user=ftn argv=/usr/lib/ifmail/ifmail -r $nexthop ($recipient) bsmtp unix - n n - - pipe flags=Fq. user=bsmtp argv=/usr/lib/bsmtp/bsmtp -t$nexthop -f$sender $recipient scalemail-backend unix - n n - 2 pipe flags=R user=scalemail argv=/usr/lib/scalemail/bin/scalemail-store ${nexthop} ${user} ${extension} mailman unix - n n - - pipe flags=FR user=list argv=/usr/lib/mailman/bin/postfix-to-mailman.py ${nexthop} ${user} spamassassin unix - n n - - pipe user=spamd argv=/usr/bin/spamc -f -e /usr/sbin/sendmail -oi -f ${sender} ${recipient} dovecot unix - n n - - pipe flags=DRhu user=postfix:postfix argv=/usr/lib/dovecot/deliver -d ${recipient}
On 7/27/11, Andrea Ganduglia wrote:> Hi. I have a quite problem with dovecot and sieve on Debian Squeeze. > > I'm trying to enable sieve plugin into dovecot, but something is > deeply wrong. I hope that this is the right place to give some help. > > There are no errors or warning messages, simply sieve don't works. > > For the big picture about my mail server you can follow this link > http://www.linux-archive.org/debian-user/555576-postfix-virtual_transport-maildrop.html > > and here there is my specific request on Debian User List > http://www.linux-archive.org/debian-user/557551-sieve-dovecot-squeeze-help.html > > here my dovecot -n output > > # 1.2.15: /etc/dovecot/dovecot.conf > # OS: Linux 2.6.32-5-amd64 x86_64 Debian 6.0.1 ext3 > log_timestamp: %Y-%m-%d %H:%M:%S > protocols: imap imaps pop3 pop3s lda > disable_plaintext_auth: no > login_dir: /var/run/dovecot/login > login_executable(default): /usr/lib/dovecot/imap-login > login_executable(imap): /usr/lib/dovecot/imap-login > login_executable(pop3): /usr/lib/dovecot/pop3-login > first_valid_uid: 102 > mail_privileged_group: mail > mail_location: maildir:/home/vmail/%d/%n > mbox_write_locks: fcntl dotlock > mail_executable(default): /usr/lib/dovecot/imap > mail_executable(imap): /usr/lib/dovecot/imap > mail_executable(pop3): /usr/lib/dovecot/pop3 > mail_plugin_dir(default): /usr/lib/dovecot/modules/imap > mail_plugin_dir(imap): /usr/lib/dovecot/modules/imap > mail_plugin_dir(pop3): /usr/lib/dovecot/modules/pop3 > lda: > log_path: /var/vmail/dovecot-deliver.log > postmaster_address: info@**********.it > auth_socket_path: /var/run/dovecot/auth-master > mail_plugins: cmusieve > auth default: > mechanisms: cram-md5 plain login > debug: yes > passdb: > driver: sql > args: /etc/dovecot/dovecot-mysql.conf > userdb: > driver: sql > args: /etc/dovecot/dovecot-mysql.conf > socket: > type: listen > client: > path: /var/spool/postfix/private/auth > mode: 432 > user: postfix > group: postfix > master: > path: /var/run/dovecot/auth-master > mode: 384 > user: postfix > plugin: > sieve_global_path: /var/vmail/globalsieverc > sieve_dir: ~/sieve > sieve: ~/.dovecot.sieve > sieve_global_dir: /var/vmail/sieve > sieve_maxscriptsize: 128 > > Any suggestions? Thanks in advance! > > -Andrea >I think you need to change: mail_plugins: cmusieve to: mail_plugins: sieve -- Gary V