Hervé Hénoch
2008-Feb-12 11:11 UTC
[Dovecot] Postfix, dovecot and sieve - no response from sieve
Os : Linux Debian Etch Version : 1.0.rc15 Config : # /etc/dovecot/dovecot.conf log_timestamp: %Y-%m-%d %H:%M:%S protocols: pop3 imap ssl_disable: yes 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: 0 last_valid_uid: 150 first_valid_gid: 0 last_valid_gid: 150 mail_extra_groups: mail mail_location: maildir:/mnt/virtual/mail/%d/%n mail_debug: yes 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 pop3_uidl_format(default): pop3_uidl_format(imap): pop3_uidl_format(pop3): %08Xu%08Xv auth default: user: vmail verbose: yes passdb: driver: ldap args: /etc/dovecot/dovecot-ldap.conf userdb: driver: static args: uid=vmail gid=mail home=/mnt/virtual/mail/%d/%n userdb: driver: ldap args: /etc/dovecot/dovecot-ldap.conf socket: type: listen client: path: /var/run/dovecot/auth-client mode: 432 user: postfix group: postfix master: path: /var/run/dovecot/auth-master mode: 511 user: vmail group: mail My problem is the following : I can't get sieve script running but sieve script compile well automatically (i.e the file .dovecot.sieve compile in a file named .dovecot.sievec). I have followed the installation of sieve, postfix, dovecot under a Debian via apt-get. The program deliver is used correctly by Postfix (master.cf). With a reject script I have the following trace (user h.henoch at testisc84.org send to test at testisc84.org which have a sieve "reject" script), the mail seems to be rejected but I have no notification for the sender. This script run under a old postfix, cyrus installation Feb 12 11:55:33 vsmail deliver(h.henoch at testisc84.org): msgid=<dovecot-1202813723-606909-0 at vsmail.isc84.org>*: rejected* Feb 12 11:55:33 vsmail postfix/cleanup[26150]: C810F174DA7: message-id=<dovecot-1202813728-750522-0 at vsmail.isc84.org> Feb 12 11:55:33 vsmail postfix/pipe[26151]: ADDDC174DA8: to=<h.henoch at testisc84.org>, relay=dovecot, delay=5.2, delays=0.1/0/0/5.1, dsn=2.0.0, status=sent (delivered via dovecot service) Feb 12 11:55:33 vsmail postfix/qmgr[25852]: ADDDC174DA8: removed Feb 12 11:55:33 vsmail postfix/qmgr[25852]: C810F174DA7: from=<>, size=2180, nrcpt=1 (queue active) *Feb 12 11:55:33 vsmail postfix/qmgr[25852]: C810F174DA7: to=<MAILER-DAEMON@>, relay=none, delay=0.13, delays=0.08/0.04/0/0, dsn=5.1.3, status=bounced (bad address syntax)* Feb 12 11:55:33 vsmail postfix/qmgr[25852]: C810F174DA7: removed The script : require ["reject"]; reject " ############################################################################################################################################### ### Nous vous informons que XXX ne travaille plus pour YYYY ### ############################################################################################################################################### "; With a vacation script I have the following trace (same as above), no errors and sieve script seems to be found. This script run under a old postfix, cyrus installation Feb 12 12:00:42 vsmail postfix/smtpd[26277]: warning: dict_nis_init: NIS domain name not set - NIS lookups disabled Feb 12 12:00:43 vsmail postfix/smtpd[26277]: connect from unknown[172.18.101.3] Feb 12 12:00:43 vsmail postfix/smtpd[26277]: 2E1B8174DA6: client=unknown[172.18.101.3] Feb 12 12:00:43 vsmail postfix/cleanup[26280]: 2E1B8174DA6: message-id=<47B17C5C.3010203 at testisc84.org> Feb 12 12:00:43 vsmail postfix/qmgr[25852]: 2E1B8174DA6: from=<h.henoch at testisc84.org>, size=564, nrcpt=1 (queue active) Feb 12 12:00:43 vsmail postfix/smtpd[26277]: disconnect from unknown[172.18.101.3] Feb 12 12:00:43 vsmail deliver(test at testisc84.org): auth input: test at testisc84.org Feb 12 12:00:43 vsmail deliver(test at testisc84.org): auth input: uid=150 Feb 12 12:00:43 vsmail deliver(test at testisc84.org): auth input: gid=8 Feb 12 12:00:43 vsmail deliver(test at testisc84.org): auth input: home=/mnt/virtual/mail/testisc84.org/test Feb 12 12:00:43 vsmail deliver(test at testisc84.org): Loading modules from directory: /usr/lib/dovecot/modules/lda Feb 12 12:00:43 vsmail deliver(test at testisc84.org): Module loaded: /usr/lib/dovecot/modules/lda/lib90_cmusieve_plugin.so Feb 12 12:00:43 vsmail deliver(test at testisc84.org): maildir: data=/mnt/virtual/mail/testisc84.org/test Feb 12 12:00:43 vsmail deliver(test at testisc84.org): maildir: root=/mnt/virtual/mail/testisc84.org/test, index=/mnt/virtual/mail/testisc84.org/test, control=, inboxFeb 12 12:00:43 vsmail deliver(test at testisc84.org): *cmusieve: Using sieve path: /mnt/virtual/mail/testisc84.org/test/.dovecot.sieve* Feb 12 12:00:43 vsmail deliver(test at testisc84.org): msgid=<47B17C5C.3010203 at testisc84.org>: saved mail to INBOX Feb 12 12:00:43 vsmail postfix/pipe[26281]: 2E1B8174DA6: to=<test at testisc84.org>, relay=dovecot, delay=0.12, delays=0.09/0/0/0.03, dsn=2.0.0, status=sent (delivered via dovecot service) Feb 12 12:00:43 vsmail postfix/qmgr[25852]: 2E1B8174DA6: removed The script : require ["vacation"]; vacation :addresses ["test at testisc84.org"] :subject "Absences vacances" "Je serais absente du 01 novembre au 25 novembre merci de me contacter plus tard";