[Dovecot] Need help for configure sieve
Hello,
i just did set up a mail server with postfix+dovecot+mysql+roundcube everything work fine.
Now i'm trying to configure dovecot to get sieve working, and i probably missing something, cause i can not get it to fall in work...
Thanks in advance, if you can help me a bit...
here is my dovecot (2.1.10) conf :
20:07 root@curzio /home/mathieu # dovecot -n # 2.1.10: /etc/dovecot/dovecot.conf # OS: Linux 3.2.30-xenU-7157-x86_64 x86_64 Arch Linux mail_home = /srv/vmail/%d/%u mail_location = maildir:~ managesieve_notify_capability = mailto managesieve_sieve_capability = fileinto reject envelope encoded-character vacation subaddress comparator-i;ascii-numeric relational regex imap4flags copy include variables body enotify environment mailbox date ihave passdb { args = /etc/dovecot/dovecot-sql.conf driver = sql } plugin { sieve = ~/.dovecot.sieve sieve_dir = ~/sieve } protocols = imap pop3 sieve service auth { unix_listener auth-client { group = postfix mode = 0660 user = postfix } user = root } ssl_cert =
here is my postfix conf : 20:07 root@curzio /home/mathieu # postconf -n alias_database = $alias_maps alias_maps = hash:/etc/postfix/aliases broken_sasl_auth_clients = yes command_directory = /usr/sbin config_directory = /etc/postfix daemon_directory = /usr/lib/postfix data_directory = /var/lib/postfix debug_peer_level = 2 debugger_command = PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin ddd $daemon_directory/$process_name $process_id & sleep 5 html_directory = no inet_protocols = ipv4 local_recipient_maps = $virtual_mailbox_maps local_transport = virtual mail_owner = postfix mailq_path = /usr/bin/mailq manpage_directory = /usr/share/man newaliases_path = /usr/bin/newaliases queue_directory = /var/spool/postfix readme_directory = /usr/share/doc/postfix relay_domains = * sample_directory = /etc/postfix/sample sendmail_path = /usr/sbin/sendmail setgid_group = postdrop smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination smtpd_sasl_auth_enable = yes smtpd_sasl_local_domain = $mydomain smtpd_sasl_path = /var/run/dovecot/auth-client smtpd_sasl_security_options = noanonymous smtpd_sasl_tls_security_options = $smtpd_sasl_security_options smtpd_sasl_type = dovecot smtpd_tls_auth_only = yes smtpd_tls_cert_file = /etc/ssl/private/server.crt smtpd_tls_key_file = /etc/ssl/private/server.key smtpd_tls_loglevel = 1 transport_maps = hash:/etc/postfix/transport unknown_local_recipient_reject_code = 550 virtual_alias_maps = proxy:mysql:/etc/postfix/virtual_alias_maps.cf virtual_gid_maps = static:5000 virtual_mailbox_base = /srv/vmail virtual_mailbox_domains = proxy:mysql:/etc/postfix/virtual_domains_maps.cf virtual_mailbox_limit = 512000000 virtual_mailbox_maps = proxy:mysql:/etc/postfix/virtual_mailbox_maps.cf virtual_minimum_uid = 5000 virtual_transport = virtual virtual_uid_maps = static:5000
i use the roundcube plugin managesieve, wich seems to work correctly.
-- Mathieu R.
On 11/20/2012 08:10 PM Mathieu R. wrote:
… Now i'm trying to configure dovecot to get sieve working, and i probably missing something, cause i can not get it to fall in work...
Thanks in advance, if you can help me a bit...
here is my dovecot (2.1.10) conf :
20:07 root@curzio /home/mathieu # dovecot -n # 2.1.10: /etc/dovecot/dovecot.conf # OS: Linux 3.2.30-xenU-7157-x86_64 x86_64 Arch Linux … protocol lda { mail_plugins = " sieve" }
here is my postfix conf : 20:07 root@curzio /home/mathieu # postconf -n … transport_maps = hash:/etc/postfix/transport … … virtual_transport = virtual …
i use the roundcube plugin managesieve, wich seems to work correctly.
What is the content of your /etc/postfix/transport?
"virtual_transport = virtual" let Postfix deliver your mails to the mail store.
You have to use Dovecot's LMTP http://master.wiki2.dovecot.org/HowTo/PostfixDovecotLMTP or Dovecot's LDA http://master.wiki2.dovecot.org/LDA/Postfix in order to apply Sieve rules on mail delivery.
Regards, Pascal
The trapper recommends today: cafebabe.1232520@localdomain.org
Le 20/11/2012 20:51, Pascal Volk a écrit :
On 11/20/2012 08:10 PM Mathieu R. wrote:
… Now i'm trying to configure dovecot to get sieve working, and i probably missing something, cause i can not get it to fall in work...
Thanks in advance, if you can help me a bit...
here is my dovecot (2.1.10) conf :
20:07 root@curzio /home/mathieu # dovecot -n # 2.1.10: /etc/dovecot/dovecot.conf # OS: Linux 3.2.30-xenU-7157-x86_64 x86_64 Arch Linux … protocol lda { mail_plugins = " sieve" }
here is my postfix conf : 20:07 root@curzio /home/mathieu # postconf -n … transport_maps = hash:/etc/postfix/transport … … virtual_transport = virtual …
i use the roundcube plugin managesieve, wich seems to work correctly.
What is the content of your /etc/postfix/transport?
it's empty, come with archlinux default conf.
"virtual_transport = virtual" let Postfix deliver your mails to the mail store.
You have to use Dovecot's LMTP http://master.wiki2.dovecot.org/HowTo/PostfixDovecotLMTP or Dovecot's LDA http://master.wiki2.dovecot.org/LDA/Postfix in order to apply Sieve rules on mail delivery.
i added
dovecot unix - n n - - pipe flags=DRhu user=vmail:vmail argv=/usr/local/libexec/dovecot/dovecot-lda -f ${sender} -d ${recipient}
in master.cf in order to use LDA, is that enough ?
Regards, Pascal
-- Mathieu R.
On 11/20/2012 09:01 PM Mathieu R. wrote:
i added
dovecot unix - n n - - pipe flags=DRhu user=vmail:vmail argv=/usr/local/libexec/dovecot/dovecot-lda -f ${sender} -d ${recipient}
in master.cf in order to use LDA, is that enough ?
don't forget:
postconf -e virtual_transport=dovecot:
postfix reload
Regards, Pascal
The trapper recommends today: 5e1f1e55.1232521@localdomain.org
Le 20/11/2012 21:10, Pascal Volk a écrit :
On 11/20/2012 09:01 PM Mathieu R. wrote:
i added
dovecot unix - n n - - pipe flags=DRhu user=vmail:vmail argv=/usr/local/libexec/dovecot/dovecot-lda -f ${sender} -d ${recipient}
in master.cf in order to use LDA, is that enough ?
don't forget:
postconf -e virtual_transport=dovecot: postfix reload
just did what you tell me, broke my config (gave me : virtual_transport = dovecot: and then got that error :
2012-11-20T22:03:23.108392+00:00 localhost pipe[28359] fatal: pipe_command: execvp /usr/local/libexec/dovecot/dovecot-lda: No such file or directory
switched back to previous config...
Regards, Pascal
-- Mathieu R.
On 11/20/2012 11:08 PM Mathieu R. wrote:
Le 20/11/2012 21:10, Pascal Volk a écrit :
On 11/20/2012 09:01 PM Mathieu R. wrote:
i added
dovecot unix - n n - - pipe flags=DRhu user=vmail:vmail argv=/usr/local/libexec/dovecot/dovecot-lda -f ${sender} -d ${recipient}
in master.cf in order to use LDA, is that enough ?
don't forget:
postconf -e virtual_transport=dovecot: postfix reload
just did what you tell me, broke my config (gave me : virtual_transport = dovecot: and then got that error :
2012-11-20T22:03:23.108392+00:00 localhost pipe[28359] fatal: pipe_command: execvp /usr/local/libexec/dovecot/dovecot-lda: No such file or directory
switched back to previous config...
Are you sure your dovecot-lda binary is located in /usr/local/libexec/dovecot/? You have to use an existing path - not just copy and paste something.
Regards, Pascal
The trapper recommends today: face1e55.1232523@localdomain.org
Le 20/11/2012 23:11, Pascal Volk a écrit :
On 11/20/2012 11:08 PM Mathieu R. wrote:
Le 20/11/2012 21:10, Pascal Volk a écrit :
On 11/20/2012 09:01 PM Mathieu R. wrote:
i added
dovecot unix - n n - - pipe flags=DRhu user=vmail:vmail argv=/usr/local/libexec/dovecot/dovecot-lda -f ${sender} -d ${recipient}
in master.cf in order to use LDA, is that enough ?
don't forget:
postconf -e virtual_transport=dovecot: postfix reload
just did what you tell me, broke my config (gave me : virtual_transport = dovecot: and then got that error :
2012-11-20T22:03:23.108392+00:00 localhost pipe[28359] fatal: pipe_command: execvp /usr/local/libexec/dovecot/dovecot-lda: No such file or directory
switched back to previous config...
Are you sure your dovecot-lda binary is located in /usr/local/libexec/dovecot/? You have to use an existing path - not just copy and paste something.
of course you're right, i was stupid.
corrected the path (to /usr/lib/dovecot/dovecot-lda), executed postconf -e virtual_transport=dovecot: postfix reload
and got this error now : 2012-11-20T22:50:03.121109+00:00 localhost postfix/pipe[28785]: 7D9F825269: to=mathieu@400iso.net, relay=dovecot, de lay=8620, delays=8619/0.06/0/0.07, dsn=4.3.0, status=deferred (temporary failure. Command output: lda: Error: user mat hieu@400iso.net: Error reading configuration: Invalid settings: postmaster_address setting not given lda: Fatal: Inter nal error occurred. Refer to server log for more information. )
thank a lot for your help
Regards, Pascal
-- Mathieu R.
On 11/20/2012 11:53 PM Mathieu R. wrote:
and got this error now : … lda: Error: user mathieu@400iso.net: Error reading configuration: Invalid settings: postmaster_address setting not given …
You have to configure a valid postmaster_address in conf.d/15-lda.conf
Regards, Pascal
The trapper recommends today: face1e55.1232523@localdomain.org
Le 20/11/2012 23:57, Pascal Volk a écrit :
On 11/20/2012 11:53 PM Mathieu R. wrote:
and got this error now : … lda: Error: user mathieu@400iso.net: Error reading configuration: Invalid settings: postmaster_address setting not given …
You have to configure a valid postmaster_address in conf.d/15-lda.conf
Regards, Pascal
just made it falling in work... thanks a lot, again
Mathieu R.
participants (2)
-
Mathieu R.
-
Pascal Volk