Re: [Dovecot] sieve vacation reply
Hi, I get the same error ! Any idea to fix it ? Regards, Stephane Le 17/05/2011 18:03, Wojciech Giel a écrit : Hi, I'm configuring postfix with dovecot and roundcube. I'm using flat files as passwdb userdb. Everything works fine except sieve vacation reply. when i send mail from ex. user dennis to tytus I get discarding vacation response for message implicitly delivered to. What Am i doing wrong? thanks sieve: using sieve path for user's script: /home/tytus/.dovecot.sieve 2011-05-17 16:56:45 deliver(tytus): Info: sieve: opening script /home/tytus/.dovecot.sieve 2011-05-17 16:56:45 deliver(tytus): Info: sieve: executing compiled script /home/tytus/.dovecot.sieve 2011-05-17 16:56:45 deliver(tytus): Info: sieve: msgid=20110517155641.ga3...@badger.example.com: discarding vacation response for message implicitly delivered to tytus@badger /etc/postfix/main.cf ... mailbox_command = /usr/lib/dovecot/deliver -n -m ${EXTENSION} ... # 1.2.15: /etc/dovecot/dovecot.conf # OS: Linux 2.6.32-5-amd64 x86_64 Debian 6.0.1 log_path: /var/log/dovecot.log log_timestamp: %Y-%m-%d %H:%M:%S protocols: imap imaps managesieve listen(default): * listen(imap): * listen(managesieve): 127.0.0.1:2000 ssl_ca_file: /etc/postfix/ssl/cacert.pem ssl_cert_file: /etc/postfix/ssl/servercrt.pem ssl_key_file: /etc/postfix/ssl/serverkey.pem ssl_cipher_list: ALL:!LOW:!SSLv2 login_dir: /var/run/dovecot/login login_executable(default): /usr/lib/dovecot/imap-login login_executable(imap): /usr/lib/dovecot/imap-login login_executable(managesieve): /usr/lib/dovecot/managesieve-login mail_location: maildir:~/Maildir:INDEX=~/Maildir/indexes mail_debug: yes mbox_write_locks: fcntl dotlock mail_executable(default): /usr/lib/dovecot/imap mail_executable(imap): /usr/lib/dovecot/imap mail_executable(managesieve): /usr/lib/dovecot/managesieve mail_plugins(default): quota imap_quota autocreate mail_plugins(imap): quota imap_quota autocreate mail_plugins(managesieve): mail_plugin_dir(default): /usr/lib/dovecot/modules/imap mail_plugin_dir(imap): /usr/lib/dovecot/modules/imap mail_plugin_dir(managesieve): /usr/lib/dovecot/modules/managesieve imap_client_workarounds(default): tb-extra-mailbox-sep netscape-eoh delay-newmail outlook-idle imap_client_workarounds(imap): tb-extra-mailbox-sep netscape-eoh delay-newmail outlook-idle imap_client_workarounds(managesieve): lda: postmaster_address: postmaster mail_plugins: sieve quota autocreate quota_full_tempfail: yes deliver_log_format: msgid=%m: %$ rejection_reason: Your message to %t was automatically rejected:%n%r log_path: /var/log/sieve.log auth default: mechanisms: plain login cram-md5 verbose: yes debug: yes debug_passwords: yes passdb: driver: pam passdb: driver: passwd-file args: scheme=cram-md5 /etc/dovecot/passwd userdb: driver: passwd-file args: /etc/dovecot/passwd userdb: driver: passwd socket: type: listen client: path: /var/spool/postfix/private/dovecot-auth mode: 432 user: postfix group: postfix master: path: /var/run/dovecot/auth-master mode: 384 plugin: sieve: ~/.dovecot.sieve sieve_dir: ~/sieve autocreate: INBOX autocreate2: Sent autocreate3: Trash autocreate4: Drafts autocreate5: Junk autosubscribe: INBOX autosubscribe2: Sent autosubscribe3: Trash autosubscribe4: Drafts autosubscribe5: Junk quota: maildir:User quota quota_rule: Trash:storage=10M quota_warning: storage=85%% /usr/bin/dovecot-quota-warning.sh 85 quota_warning2: storage=90%% /usr/bin/dovecot-quota-warning.sh 90 quota_warning3: storage=95%% /usr/bin/dovecot-quota-warning.sh 95
Re: [Dovecot] sieve vacation reply
Hi Stephan, Yep, after some tests you 're right, it's not possible. So, I use :addresses in sieve script and will try -a or -r arguments in LDA command from postfix with the next release. Bye, Stephane Le 02/08/2011 18:02, Stephan Bosch a écrit : On 8/2/2011 4:08 PM, Stephan Bosch wrote: On 8/2/2011 2:43 PM, swar...@zero-spam.fr wrote: Hi Stephan, Thanks for your reply. After some more tests, it appears that mail aliases is the reason of this error. The vacation mode has been enabled on a mailbox that contains many aliases and one of them has been used as the recipient. We used dovecot 2.0.12-0~auto+5 from debian old-stable repo. Is there anything we can do ? If you can access the original recipient from your MTA, you can use both -a and -r (if needed) arguments of dovecot-lda as outlined on this wiki page: http://wiki2.dovecot.org/LDA This will make the vacation command perform the checks against the original recipient. Please let me know whether this is an adequate solution for you. Hmm, apparently this was not possible yet, so I've added it now: http://hg.rename-it.nl/dovecot-2.0-pigeonhole/rev/81f7acac82f2 This also adds support to disable this check completely (as explained in doc/vacation.txt). I recommend using that only when all other methods fail. I've still got some more TODO items about this issue, particularly about adding support to check some external aliases database. I am still not sure how I should approach that though. Regards, Stephan.
[Dovecot] Support not compiled in for passdb driver ldap
Hello, From repo, the lastest release 2.0.11-0~auto+32 does not have ldap support :/ auth: Fatal: Support not compiled in for passdb driver 'ldap' Regards, Stephane
Re: [Dovecot] Support not compiled in for passdb driver ldap
Sorry, solved by installing dovecot-ldap. Stephane Le 28/03/2011 14:40, Stéphane Wartel a écrit : auth: Fatal: Support not compiled in for passdb driver 'ldap'
Re: [Dovecot] Problems with pam+ldap + quota
Hi, Just take a look on pam_ldap for authentification of user against pam in LDAP Database so that your dovecot settings should only be based on Ldap attributes for both user and password. Regards, Stephane Le 15 mars 2011 à 20:26, Antonio Perez-Aranda aperezara...@yaco.es a écrit : Ok I will try to use passdb with pam and userdb with ldap driver, although in another conf, this two fail together. El 15/03/2011 19:28, Sven Hartge s...@svenhartge.de escribió: Antonio Perez-Aranda aperezara...@yaco.es wrote: Yes I know and I have some nodes with dovecot+ldap But this node need to login with module pam_imap, because it's use a closed one time password system. I'm trying with something like this: userdb { driver = passwd args = uid=exim gid=exim quota=*:bytes=%$ } But I need to put the nss attribute en %$ var or another. From my experience with PAM,NSS and LDAP I don't think it is possible to achieve what you are trying to do. Grüße, Sven. -- Sig lost. Core dumped.
[Dovecot] 2.0.10 Auth failed while binding ldap
Dear all, Since new release has been installed, auth process crash with io loop : 2011-03-05 11:22:44 auth: Panic: file db-ldap.c: line 1113 (db_ldap_result_change_attr): assertion failed: (ctx-vals == NULL) 2011-03-05 11:22:44 auth: Error: Raw backtrace: /usr/lib/dovecot/libdovecot.so.0 [0xb76ceab1] - /usr/lib/dovecot/libdovecot.so.0 [0xb76ceb2f] - /usr/lib/dovecot/libdovecot.so.0(i_error+0) [0xb76cee04] - dovecot/auth(db_ldap_result_iterate_next+0x3be) [0x806aa8e] - dovecot/auth [0x806c857] - dovecot/auth [0x806cd91] - dovecot/auth [0x806c314] - /usr/lib/dovecot/libdovecot.so.0(io_loop_call_io+0x51) [0xb76db781] - /usr/lib/dovecot/libdovecot.so.0(io_loop_handler_run+0xe0) [0xb76dc840] - /usr/lib/dovecot/libdovecot.so.0(io_loop_run+0x40) [0xb76db700] - /usr/lib/dovecot/libdovecot.so.0(master_service_run+0x2a) [0xb76c73da] - dovecot/auth(main+0x300) [0x805ea50] - /lib/i686/cmov/libc.so.6(__libc_start_main+0xe5) [0xb7147455] - dovecot/auth [0x8052a51] 2011-03-05 11:22:44 master: Error: service(auth): child 23136 killed with signal 6 (core dumps disabled) 2011-03-05 11:22:44 master: Error: service(auth): command startup failed, throttling dovecot --version 2.0.10 (d757b13d84ff) # 2.0.10 (d757b13d84ff): /etc/dovecot/dovecot.conf # OS: Linux 2.6.26-2-686 i686 Debian 5.0.8 auth_failure_delay = 5 secs auth_mechanisms = plain login debug_log_path = /var/log/dovecot-debug.log dict/acl = mysql:/etc/dovecot/dovecot-dict-sql.conf.ext info_log_path = /var/log/dovecot-info.log lda_mailbox_autocreate = yes lda_mailbox_autosubscribe = yes listen = 127.0.0.1 log_path = /var/log/dovecot.log log_timestamp = %Y-%m-%d %H:%M:%S mail_access_groups = mail mail_debug = yes mail_fsync = always mail_gid = mail mail_location = maildir:~/Maildir mail_nfs_index = yes mail_nfs_storage = yes mail_plugins = quota trash zlib mail_uid = vmail 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 mmap_disable = yes namespace { inbox = yes location = prefix = separator = . type = private } namespace { list = children location = maildir:%%h/Maildir:INDEX=~/Maildir/Shared/%%n prefix = Shared.%%n. separator = . subscriptions = no type = shared } passdb { args = /etc/dovecot/dovecot-ldap.conf.ext driver = ldap } plugin/acl = vfile plugin/acl_shared_dict = proxy::acl plugin/autocreate = Junk plugin/autosubscribe = Junk plugin/quota = maildir:User quota plugin/quota_rule2 = Trash:storage=+100M plugin/quota_warning = storage=95%% quota-warning 95 %u plugin/quota_warning2 = storage=80%% quota-warning 80 %u plugin/sieve = ~/.dovecot.sieve plugin/sieve_before = /etc/dovecot/global_script/dovecot.sieve plugin/sieve_dir = ~/sieve plugin/trash = /etc/dovecot/dovecot-trash.conf.ext plugin/zlib_save = bz2 plugin/zlib_save_level = 6 postmaster_address = postmaster protocols = imap pop3 lmtp sieve quota_full_tempfail = yes service auth { unix_listener /var/spool/postfix/private/auth { group = mail mode = 0660 user = postfix } unix_listener auth-master { group = mail mode = 0660 user = vmail } unix_listener auth-userdb { group = mail mode = 0660 user = vmail } } service dict { unix_listener dict { group = mail mode = 0660 user = vmail } } service imap-login { process_min_avail = 10 service_count = 1 } service managesieve-login { process_min_avail = 3 service_count = 1 } service quota-warning { executable = script /usr/local/bin/quota-warning.sh unix_listener quota-warning { user = vmail } user = dovecot } ssl_ca = /etc/ssl/certs/GandiStandardSSLCA.pem ssl_cert = /etc/ssl/certs/imap.zero-spam.fr.pem ssl_key = /etc/ssl/private/imap.zero-spam.fr.key userdb { args = /etc/dovecot/dovecot-ldap-userdb.conf.ext driver = ldap } protocol lda { auth_socket_path = /var/run/dovecot/auth-master mail_plugins = quota trash zlib sieve autocreate acl } protocol imap { mail_plugins = quota trash zlib acl imap_quota imap_acl imap_zlib } protocol sieve { managesieve_logout_format = bytes=%i/%o 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 } dovecot-ldap.conf.ext hosts = 127.0.0.1 dn = cn=sup,dc=domain,dc=com dnpass = ** auth_bind = yes ldap_version = 3 base = dc=domain, dc=com user_attrs = mailbox=home,mailuserquota=quota_rule=*:storage user_filter = ((objectClass=mailAccount)(mail=%u)(mailenable=OK)) pass_attrs = mail=user,userPassword=password pass_filter = ((objectClass=mailAccount)(mail=%u)(mailenable=OK)) iterate_attrs = mail=user iterate_filter = ((objectClass=mailAccount)(mailenable=OK)) Hope this could help you ! Many thanks by advance, Stephane
[Dovecot] 2.0.10 Auth failed while binding ldap
Everything is ok, Thanks Timo ;)