Re: [Dovecot] postfix + dspam + dovecot problem
indra wardhana wrote: Lars Stavholm wrote: Hi All, I'm new to dovecot (coming from cyrus) and have a bit of a problem setting up postfix + dspam + dovecot. 1. postfix + dovecot: works like a charm. Using mailbox_command = /usr/lib/dovecot/deliver in postfix main.cf 2. adding dspam to the equation: unable to deliver: net_connect(/usr/var/run/dovecot/auth-master) failed: No such file or directory where u put auth-master , on dovecot.conf Have no idea, don't use it. Since case 1. above worked as is, I didn't think I'd be meeding any more than what's in there. I've included my dovecot.conf below. Using mailbox_transport = lmtp:unix:/var/tmp/dspam.sock in postfix main.cf (instead of the above mailbox_command), and the corresponding setting in master.cf. In /etc/dspam.conf I'm using... TrustedDeliveryAgent /usr/lib/dovecot/deliver And here's the full error message: Sep 11 02:10:38 nwinnie postfix/pickup[18313]: 090F1C042: uid=0 from=root Sep 11 02:10:38 nwinnie postfix/cleanup[7010]: 090F1C042: message-id=[EMAIL PROTECTED] Sep 11 02:10:38 nwinnie postfix/qmgr[18318]: 090F1C042: from=[EMAIL PROTECTED], size=431, nrcpt=1 (queue active) Sep 11 02:10:38 nwinnie deliver([EMAIL PROTECTED]): net_connect(/usr/var/run/dovecot/auth-master) failed: No such file or directory Sep 11 02:10:38 nwinnie dspam[10379]: Delivery agent returned exit code 75: /usr/lib/dovecot/deliver -d [EMAIL PROTECTED] Sep 11 02:10:38 nwinnie postfix/lmtp[7018]: 090F1C042: to=[EMAIL PROTECTED], orig_to=stava, relay=nwinnie.telcotec.se[/var/tmp/dspam.sock], delay=0.35, delays=0.32/0.01/0.01/0.01, dsn=4.3.0, status=deferred (host nwinnie.telcotec.se[/var/tmp/dspam.sock] said: 421 4.3.0 [EMAIL PROTECTED] Delivered (in reply to end of DATA command)) So, postfix hands the message to dspam, dspam does its thing, dspam tries to deliver and fails. What throws me is that the delivery works as expected in case 1) but not in case 2), despite the fact I'm using the same delivery agent, i.e. /usr/lib/dovecot/deliver. Why would dovecot go for some other authentication method in case 2)? BTW, we're using PAM on top of LDAP. Any ideas appreciated. Cheers /Lars base_dir = /var/run/dovecot/ protocols = imap imaps pop3 pop3s listen = * disable_plaintext_auth = no shutdown_clients = yes syslog_facility = mail ssl_disable = yes login_dir = /var/run/dovecot/login login_user = dovecot mail_location = maildir:~/Mail mail_extra_groups = mail mail_full_filesystem_access = yes protocol imap { login_executable = /usr/lib/dovecot/imap-login mail_executable = /usr/lib/dovecot/imap mail_plugin_dir = /usr/lib/dovecot/modules/imap imap_client_workarounds = outlook-idle } protocol pop3 { login_executable = /usr/lib/dovecot/pop3-login mail_executable = /usr/lib/dovecot/pop3 pop3_uidl_format = %v.%u mail_plugin_dir = /usr/lib/dovecot/modules/pop3 pop3_client_workarounds = outlook-no-nuls } protocol lda { postmaster_address = [EMAIL PROTECTED] mail_plugins = quota cmusieve mail_plugin_dir = /usr/lib/dovecot/modules/lda } auth_executable = /usr/lib/dovecot/dovecot-auth auth_verbose = yes auth_debug = yes auth_debug_passwords = yes auth default { mechanisms = plain login gssapi passdb pam { args = blocking=yes dovecot } userdb passwd { args = blocking=yes } user = root } dict { } plugin { quota = fs:storage=102400:messages=0 trash = /etc/dovecot/trash.conf sieve = .dovecot.sieve } Thanks /Lars
[Dovecot] Disconnected: Shutting down:
Hello, dovecot-1.0.3 on Fedora 6 works perfect in general but sometimes the system becomes unresponsive and the log file shows tons of messages like this: ... imap-login: Disconnected: Shutting down: 127.0.0.1, secured ... pop3-login: Disconnected: Shutting down: aa.bb.cc.dd Restarting dovecot helps, but what's behind? What can I do to prevent this? dovecot -n output: # 1.0.3: /usr/local/dovecot/etc/dovecot.conf base_dir: /var/run/dovecot/ protocols: imap imaps pop3 pop3s ssl_cert_file: /usr/local/dovecot/etc/mailbox.pem ssl_key_file: /usr/local/dovecot/etc/mailbox.key disable_plaintext_auth: no login_dir: /var/run/dovecot//login login_executable(default): /usr/local/dovecot/libexec/dovecot/imap-login login_executable(imap): /usr/local/dovecot/libexec/dovecot/imap-login login_executable(pop3): /usr/local/dovecot/libexec/dovecot/pop3-login login_greeting: TU-Berlin.DE POP3-/IMAP Service ready login_log_format_elements: %u %r %c login_processes_count: 20 verbose_proctitle: yes mail_location: maildir:/var/Mail/Boxes/%1u/%u mailbox_idle_check_interval: 15 maildir_copy_with_hardlinks: yes maildir_copy_preserve_filename: yes mail_executable(default): /usr/local/dovecot/libexec/dovecot/imap mail_executable(imap): /usr/local/dovecot/libexec/dovecot/imap mail_executable(pop3): /usr/local/dovecot/libexec/dovecot/pop3 mail_plugins(default): quota imap_quota mail_plugins(imap): quota imap_quota mail_plugins(pop3): quota mail_plugin_dir(default): /usr/local/dovecot/lib/dovecot/imap mail_plugin_dir(imap): /usr/local/dovecot/lib/dovecot/imap mail_plugin_dir(pop3): /usr/local/dovecot/lib/dovecot/pop3 mail_log_prefix: %Ls(%u): imap_client_workarounds(default): delay-newmail outlook-idle netscape-eoh tb-ext ra-mailbox-sep imap_client_workarounds(imap): delay-newmail outlook-idle netscape-eoh tb-extra- mailbox-sep imap_client_workarounds(pop3): outlook-idle pop3_uidl_format(default): pop3_uidl_format(imap): pop3_uidl_format(pop3): %08Xu%08Xv pop3_client_workarounds(default): pop3_client_workarounds(imap): pop3_client_workarounds(pop3): outlook-no-nuls oe-ns-eoh auth default: mechanisms: plain login anonymous count: 20 passdb: driver: ldap args: /usr/local/dovecot/etc/dovecot-ldap.conf userdb: driver: static args: uid=777 gid=12 plugin: quota: maildir:ignore=Trash Best regards __ Frank Elsner /c/o Technische Universitaet Berlin | / tubIT [BD], Sekr. E-N 50 | | Einsteinufer 17 | | Phone: +49 30 314 23897 D-10587 Berlin | | eMail: [EMAIL PROTECTED] Germany__| |_| in dubio pro exim
Re: [Dovecot] postfix + dspam + dovecot problem
More investigation shows the following: 1) posfix + dovecot: works like a charm, extract from mail log: Sep 11 10:08:02 nwinnie postfix/pickup[12904]: 0F2B4C03D: uid=1001 from=stava Sep 11 10:08:02 nwinnie postfix/cleanup[20596]: 0F2B4C03D: message-id=[EMAIL PROTECTED] Sep 11 10:08:02 nwinnie postfix/qmgr[12905]: 0F2B4C03D: from=[EMAIL PROTECTED], size=436, nrcpt=1 (queue active) Sep 11 10:08:02 nwinnie postfix/local[20598]: warning: dict_nis_init: NIS domain name not set - NIS lookups disabled Sep 11 10:08:02 nwinnie deliver(stava): Loading modules from directory: /usr/lib/dovecot/modules/lda Sep 11 10:08:02 nwinnie deliver(stava): Module loaded: /usr/lib/dovecot/modules/lda/lib10_quota_plugin.so Sep 11 10:08:02 nwinnie deliver(stava): Module loaded: /usr/lib/dovecot/modules/lda/lib90_cmusieve_plugin.so Sep 11 10:08:02 nwinnie deliver(stava): maildir: data=/home/stava/Mail Sep 11 10:08:02 nwinnie deliver(stava): maildir: root=/home/stava/Mail, index=/home/stava/Mail, control=, inbox= Sep 11 10:08:02 nwinnie deliver(stava): fs quota add storage dir = /home/stava/Mail Sep 11 10:08:02 nwinnie deliver(stava): fs quota block device = /dev/mapper/sys-home Sep 11 10:08:02 nwinnie deliver(stava): fs quota mount point = /home Sep 11 10:08:02 nwinnie deliver(stava): msgid=[EMAIL PROTECTED]: saved mail to INBOX Sep 11 10:08:02 nwinnie postfix/local[20598]: 0F2B4C03D: to=[EMAIL PROTECTED], orig_to=stava, relay=local, delay=0.94, delays=0.2/0.01/0/0.73, dsn=2.0.0, status=sent (delivered to command: /usr/lib/dovecot/deliver) Sep 11 10:08:02 nwinnie postfix/qmgr[12905]: 0F2B4C03D: removed 2) postfix + dspam + dovecot: fails, extract from mail log: Sep 11 10:10:48 nwinnie postfix/pickup[27124]: 612AEC03D: uid=1001 from=stava Sep 11 10:10:48 nwinnie postfix/cleanup[27441]: 612AEC03D: message-id=[EMAIL PROTECTED] Sep 11 10:10:48 nwinnie postfix/qmgr[27126]: 612AEC03D: from=[EMAIL PROTECTED], size=436, nrcpt=1 (queue active) Sep 11 10:10:48 nwinnie deliver([EMAIL PROTECTED]): Loading modules from directory: /usr/lib/dovecot/modules/lda Sep 11 10:10:48 nwinnie deliver([EMAIL PROTECTED]): Module loaded: /usr/lib/dovecot/modules/lda/lib10_quota_plugin.so Sep 11 10:10:48 nwinnie deliver([EMAIL PROTECTED]): Module loaded: /usr/lib/dovecot/modules/lda/lib90_cmusieve_plugin.so Sep 11 10:10:48 nwinnie dovecot: auth(default): master in: USER 1 [EMAIL PROTECTED] service=deliver Sep 11 10:10:48 nwinnie dovecot: auth-worker(default): passwd([EMAIL PROTECTED]): lookup Sep 11 10:10:48 nwinnie dovecot: auth-worker(default): passwd([EMAIL PROTECTED]): unknown user Sep 11 10:10:48 nwinnie dovecot: auth(default): master out: NOTFOUND1 Sep 11 10:10:48 nwinnie dspam[27127]: Delivery agent returned exit code 67: /usr/lib/dovecot/deliver -d [EMAIL PROTECTED] Sep 11 10:10:48 nwinnie postfix/lmtp[27444]: 612AEC03D: to=[EMAIL PROTECTED], orig_to=stava, relay=nwinnie.telcotec.se[/var/tmp/dspam.sock], delay=0.2, delays=0.17/0.01/0.01/0.01, dsn=4.3.0, status=deferred (host nwinnie.telcotec.se[/var/tmp/dspam.sock] said: 421 4.3.0 [EMAIL PROTECTED] Delivered (in reply to end of DATA command)) One big difference is that in case 1) the user being looked up is stava, whereas in case 2) it's [EMAIL PROTECTED], which fails. auth_username_format = %n is set in dovecot.conf, but to no avail. dovecot -n: # 1.0.5: /etc/dovecot/dovecot.conf base_dir: /var/run/dovecot/ protocols: imap imaps pop3 pop3s 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 mail_extra_groups: mail mail_location: maildir:~/Mail mail_debug: yes mail_full_filesystem_access: yes dotlock_use_excl: yes maildir_copy_with_hardlinks: yes mail_executable(default): /usr/lib/dovecot/imap mail_executable(imap): /usr/lib/dovecot/imap mail_executable(pop3): /usr/lib/dovecot/pop3 mail_plugins: quota trash 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 imap_client_workarounds(default): delay-newmail outlook-idle imap_client_workarounds(imap): delay-newmail outlook-idle imap_client_workarounds(pop3): outlook-idle pop3_uidl_format(default): pop3_uidl_format(imap): pop3_uidl_format(pop3): %v.%u pop3_client_workarounds(default): pop3_client_workarounds(imap): pop3_client_workarounds(pop3): outlook-no-nuls oe-ns-eoh auth default: mechanisms: plain login gssapi username_format: %n verbose: yes debug: yes debug_passwords: yes passdb: driver: pam args: blocking=yes dovecot userdb: driver: passwd args: blocking=yes socket: type: listen master: path: /var/run/dovecot/auth-master mode: 384 plugin: quota: fs:storage=102400:messages=0 trash: /etc/dovecot/trash.conf sieve: .dovecot.sieve Any ideas appreciated Cheers /Lars
[Dovecot] Does the list work?
Hi all Does the list work? I have sent two mail without answer up today. I want to change Courrier-imap by dovecot but i have problems with quota and sieve in dovecot. would you help validating dovecot? I this does not work i would have to stay with courier-imap. This is the mail I sent before. Hi Well my problem is with quota it is not taken into account by deliver i compiled dovecot from sorces and the resault is the same. thoses are my files: File /etc/dovecot/dovecot.conf ssl_cert_file = /etc/apache2/ssl/server.crt ssl_key_file = /etc/apache2/ssl/server.key #ssl_ca_file = /etc/pki/dovecot/certs/ca-bundle.crt protocols = imap pop3 imaps pop3s log_timestamp = %Y-%m-%d %H:%M:%S #mail_location = maildir:/export/mail/%d/%u mail_location = maildir:/var/vmail/%d/%u/Maildir mail_extra_groups = mail first_valid_uid = 5000 last_valid_uid = 5000 maildir_copy_with_hardlinks = yes disable_plaintext_auth = no protocol imap { mail_plugins = quota imap_quota imap_client_workarounds = outlook-idle delay-newmail } protocol pop3 { mail_plugins = quota pop3_client_workarounds = outlook-no-nuls oe-ns-eoh protocol lda { postmaster_address = [EMAIL PROTECTED] mail_plugins = quota log_path = /var/log/dovecot-deliver.log info_log_path = /var/log/dovecot-deliver.log mail_plugins = cmusieve # sieve_global_dir = /etc/dovecot/sieve/ global_script_path =/etc/dovecot/sieve/dovecot.sieve } auth default { # Having login also as a mechanism make sure outlook can use the auth smtpd as well # http://wiki.dovecot.org/Authentication/Mechanisms mechanisms = plain login passdb sql { args = /etc/dovecot/sql.conf } userdb sql { args = /etc/dovecot/sql.conf } userdb prefetch { } user = nobody socket listen { master { path = /var/run/dovecot/auth-master mode = 0660 user = vmail group = mail } client { path = /var/spool/postfix/private/auth mode = 0660 user = postfix group = mail } } } dict { } plugin { quota = maildir:storage=10240:messages=1000 acl = vfile:/etc/dovecot/acls trash = /etc/dovecot/trash.conf } file /etc/dovecot/sql.conf driver = mysql default_pass_scheme = MD5 connect = host=localhost dbname=postfix user=postfix password=password user_query = SELECT concat('/var/vmail/', maildir, 'Maildir') as home, concat('maildir:/var/vmail/', maildir, 'Maildir') as mail, 5000 AS uid, 8 AS gid, concat('maildir:storage=', floor(quota/1024)) AS quota FROM mailbox WHERE username = '%u' AND active = '1' password_query = SELECT username as user, password, concat('/var/vmail/', maildir, 'Maildir') as userdb_home, concat('maildir:/var/vmail/', maildir, 'Maildir') as userdb_mail, 5000 as userdb_uid, 12 as userdb_gid FROM mailbox WHERE username = '%u' AND active = '1' Thanks Thanks in advance
Re: [Dovecot] Does the list work?
Hello, What is your dovecot version? If you are not using dovecot-1.0.5 (below versions are buggy) you cannot set the users' quota from mysqldb. I had tried with one of buggy version two days. regards, Osvaldo Alvarez Pozo wrote: Hi all Does the list work? I have sent two mail without answer up today. I want to change Courrier-imap by dovecot but i have problems with quota and sieve in dovecot. would you help validating dovecot? I this does not work i would have to stay with courier-imap. This is the mail I sent before. Hi Well my problem is with quota it is not taken into account by deliver i compiled dovecot from sorces and the resault is the same. thoses are my files: File /etc/dovecot/dovecot.conf ssl_cert_file = /etc/apache2/ssl/server.crt ssl_key_file = /etc/apache2/ssl/server.key #ssl_ca_file = /etc/pki/dovecot/certs/ca-bundle.crt protocols = imap pop3 imaps pop3s log_timestamp = %Y-%m-%d %H:%M:%S #mail_location = maildir:/export/mail/%d/%u mail_location = maildir:/var/vmail/%d/%u/Maildir mail_extra_groups = mail first_valid_uid = 5000 last_valid_uid = 5000 maildir_copy_with_hardlinks = yes disable_plaintext_auth = no protocol imap { mail_plugins = quota imap_quota imap_client_workarounds = outlook-idle delay-newmail } protocol pop3 { mail_plugins = quota pop3_client_workarounds = outlook-no-nuls oe-ns-eoh protocol lda { postmaster_address = [EMAIL PROTECTED] mail_plugins = quota log_path = /var/log/dovecot-deliver.log info_log_path = /var/log/dovecot-deliver.log mail_plugins = cmusieve # sieve_global_dir = /etc/dovecot/sieve/ global_script_path =/etc/dovecot/sieve/dovecot.sieve } auth default { # Having login also as a mechanism make sure outlook can use the auth smtpd as well # http://wiki.dovecot.org/Authentication/Mechanisms mechanisms = plain login passdb sql { args = /etc/dovecot/sql.conf } userdb sql { args = /etc/dovecot/sql.conf } userdb prefetch { } user = nobody socket listen { master { path = /var/run/dovecot/auth-master mode = 0660 user = vmail group = mail } client { path = /var/spool/postfix/private/auth mode = 0660 user = postfix group = mail } } } dict { } plugin { quota = maildir:storage=10240:messages=1000 acl = vfile:/etc/dovecot/acls trash = /etc/dovecot/trash.conf } file /etc/dovecot/sql.conf driver = mysql default_pass_scheme = MD5 connect = host=localhost dbname=postfix user=postfix password=password user_query = SELECT concat('/var/vmail/', maildir, 'Maildir') as home, concat('maildir:/var/vmail/', maildir, 'Maildir') as mail, 5000 AS uid, 8 AS gid, concat('maildir:storage=', floor(quota/1024)) AS quota FROM mailbox WHERE username = '%u' AND active = '1' password_query = SELECT username as user, password, concat('/var/vmail/', maildir, 'Maildir') as userdb_home, concat('maildir:/var/vmail/', maildir, 'Maildir') as userdb_mail, 5000 as userdb_uid, 12 as userdb_gid FROM mailbox WHERE username = '%u' AND active = '1' Thanks Thanks in advance
Re: [Dovecot] Does the list work?
Hi I thank you very much for your answer I am testing with dovecot-1.0.5.tar.gz i configured it like this: ./configure --prefix=/usr/local/dovecot --with-deliver --with-sql-drivers --with-ioloop=epoll --with-notify=dnotify --with-pop3d --with-mysql --with-static-userdb --with-prefetch-userdb --with-sql --with-ssl=openssl I think i 'am a litle lost with the configuration parametres. I was reading the wiki but maybe I 'm missing something. Thanks Very much. On 9/11/07, Umut Arus [EMAIL PROTECTED] wrote: Hello, What is your dovecot version? If you are not using dovecot-1.0.5 (below versions are buggy) you cannot set the users' quota from mysqldb. I had tried with one of buggy version two days. regards, Osvaldo Alvarez Pozo wrote: Hi all Does the list work? I have sent two mail without answer up today. I want to change Courrier-imap by dovecot but i have problems with quota and sieve in dovecot. would you help validating dovecot? I this does not work i would have to stay with courier-imap. This is the mail I sent before. Hi Well my problem is with quota it is not taken into account by deliver i compiled dovecot from sorces and the resault is the same. thoses are my files: File /etc/dovecot/dovecot.conf ssl_cert_file = /etc/apache2/ssl/server.crt ssl_key_file = /etc/apache2/ssl/server.key #ssl_ca_file = /etc/pki/dovecot/certs/ca-bundle.crt protocols = imap pop3 imaps pop3s log_timestamp = %Y-%m-%d %H:%M:%S #mail_location = maildir:/export/mail/%d/%u mail_location = maildir:/var/vmail/%d/%u/Maildir mail_extra_groups = mail first_valid_uid = 5000 last_valid_uid = 5000 maildir_copy_with_hardlinks = yes disable_plaintext_auth = no protocol imap { mail_plugins = quota imap_quota imap_client_workarounds = outlook-idle delay-newmail } protocol pop3 { mail_plugins = quota pop3_client_workarounds = outlook-no-nuls oe-ns-eoh protocol lda { postmaster_address = [EMAIL PROTECTED] mail_plugins = quota log_path = /var/log/dovecot-deliver.log info_log_path = /var/log/dovecot-deliver.log mail_plugins = cmusieve # sieve_global_dir = /etc/dovecot/sieve/ global_script_path =/etc/dovecot/sieve/dovecot.sieve } auth default { # Having login also as a mechanism make sure outlook can use the auth smtpd as well # http://wiki.dovecot.org/Authentication/Mechanisms mechanisms = plain login passdb sql { args = /etc/dovecot/sql.conf } userdb sql { args = /etc/dovecot/sql.conf } userdb prefetch { } user = nobody socket listen { master { path = /var/run/dovecot/auth-master mode = 0660 user = vmail group = mail } client { path = /var/spool/postfix/private/auth mode = 0660 user = postfix group = mail } } } dict { } plugin { quota = maildir:storage=10240:messages=1000 acl = vfile:/etc/dovecot/acls trash = /etc/dovecot/trash.conf } file /etc/dovecot/sql.conf driver = mysql default_pass_scheme = MD5 connect = host=localhost dbname=postfix user=postfix password=password user_query = SELECT concat('/var/vmail/', maildir, 'Maildir') as home, concat('maildir:/var/vmail/', maildir, 'Maildir') as mail, 5000 AS uid, 8 AS gid, concat('maildir:storage=', floor(quota/1024)) AS quota FROM mailbox WHERE username = '%u' AND active = '1' password_query = SELECT username as user, password, concat('/var/vmail/', maildir, 'Maildir') as userdb_home, concat('maildir:/var/vmail/', maildir, 'Maildir') as userdb_mail, 5000 as userdb_uid, 12 as userdb_gid FROM mailbox WHERE username = '%u' AND active = '1' Thanks Thanks in advance
Re: [Dovecot] Does the list work?
Hello, I had compiled only those parameters, ./configure --with-ssl=openssl --with-mysql --with-ldap --prefix=/usr/local/dovecot My mysql.conf running user_query configuration is, user_query = SELECT home, uid, gid, concat('maildir:storage=',quota) as quota, mail_plugins FROM users WHERE userid = '%u' Check your, dovecot-deliver.log Healtly dovecot's (in maillog) log, Sep 10 17:05:30 mail2 dovecot: auth(default): pam(umuta,10.10.1.121): lookup service=dovecot Sep 10 17:05:30 mail2 dovecot: auth(default): client out: OK1 user=umuta Sep 10 17:05:30 mail2 dovecot: auth(default): master in: REQUEST 1 26162 1 Sep 10 17:05:30 mail2 dovecot: auth-worker(default): sql(umuta,10.10.1.125): SELECT home, uid, gid, concat('maildir:storage=',quota) as quota, mail_plugins FROM users WHERE userid = 'umuta' Sep 10 17:05:30 mail2 dovecot: auth(default): master out: USER 1 umuta home=/home/umutauid=8287gid=100 quota=maildir:storage=2048 mail_plugins=quota imap_quota regards, Osvaldo Alvarez Pozo wrote: Hi I thank you very much for your answer I am testing with dovecot-1.0.5.tar.gz i configured it like this: ./configure --prefix=/usr/local/dovecot --with-deliver --with-sql-drivers --with-ioloop=epoll --with-notify=dnotify --with-pop3d --with-mysql --with-static-userdb --with-prefetch-userdb --with-sql --with-ssl=openssl I think i 'am a litle lost with the configuration parametres. I was reading the wiki but maybe I 'm missing something. Thanks Very much. On 9/11/07, Umut Arus [EMAIL PROTECTED] wrote: Hello, What is your dovecot version? If you are not using dovecot-1.0.5 (below versions are buggy) you cannot set the users' quota from mysqldb. I had tried with one of buggy version two days. regards, Osvaldo Alvarez Pozo wrote: Hi all Does the list work? I have sent two mail without answer up today. I want to change Courrier-imap by dovecot but i have problems with quota and sieve in dovecot. would you help validating dovecot? I this does not work i would have to stay with courier-imap. This is the mail I sent before. Hi Well my problem is with quota it is not taken into account by deliver i compiled dovecot from sorces and the resault is the same. thoses are my files: File /etc/dovecot/dovecot.conf ssl_cert_file = /etc/apache2/ssl/server.crt ssl_key_file = /etc/apache2/ssl/server.key #ssl_ca_file = /etc/pki/dovecot/certs/ca-bundle.crt protocols = imap pop3 imaps pop3s log_timestamp = %Y-%m-%d %H:%M:%S #mail_location = maildir:/export/mail/%d/%u mail_location = maildir:/var/vmail/%d/%u/Maildir mail_extra_groups = mail first_valid_uid = 5000 last_valid_uid = 5000 maildir_copy_with_hardlinks = yes disable_plaintext_auth = no protocol imap { mail_plugins = quota imap_quota imap_client_workarounds = outlook-idle delay-newmail } protocol pop3 { mail_plugins = quota pop3_client_workarounds = outlook-no-nuls oe-ns-eoh protocol lda { postmaster_address = [EMAIL PROTECTED] mail_plugins = quota log_path = /var/log/dovecot-deliver.log info_log_path = /var/log/dovecot-deliver.log mail_plugins = cmusieve # sieve_global_dir = /etc/dovecot/sieve/ global_script_path =/etc/dovecot/sieve/dovecot.sieve } auth default { # Having login also as a mechanism make sure outlook can use the auth smtpd as well # http://wiki.dovecot.org/Authentication/Mechanisms mechanisms = plain login passdb sql { args = /etc/dovecot/sql.conf } userdb sql { args = /etc/dovecot/sql.conf } userdb prefetch { } user = nobody socket listen { master { path = /var/run/dovecot/auth-master mode = 0660 user = vmail group = mail } client { path = /var/spool/postfix/private/auth mode = 0660 user = postfix group = mail } } } dict { } plugin { quota = maildir:storage=10240:messages=1000 acl = vfile:/etc/dovecot/acls trash = /etc/dovecot/trash.conf } file /etc/dovecot/sql.conf driver = mysql default_pass_scheme = MD5 connect = host=localhost dbname=postfix user=postfix password=password user_query = SELECT concat('/var/vmail/', maildir, 'Maildir') as home, concat('maildir:/var/vmail/', maildir, 'Maildir') as mail, 5000 AS uid, 8 AS gid, concat('maildir:storage=', floor(quota/1024)) AS quota FROM mailbox WHERE username = '%u' AND active = '1' password_query = SELECT username as user, password, concat('/var/vmail/', maildir, 'Maildir') as userdb_home, concat('maildir:/var/vmail/', maildir, 'Maildir') as userdb_mail, 5000 as userdb_uid, 12 as userdb_gid FROM mailbox WHERE username = '%u' AND active = '1' Thanks Thanks in advance -- Umut ARUS System Specialist Sabanci University Information Technology Tel: 0216 483 9172
Re: [Dovecot] Does the list work?
My sql.conf: user_query = SELECT concat('/var/vmail/', maildir, 'Maildir') as home, concat('maildir:/var/vmail/', maildir, 'Maildir') as mail, 5000 AS uid, 8 AS gid, concat('maildir:storage=', floor(quota/1024)) AS quota FROM mailbox WHERE username = '%u' AND active = '1' password_query = SELECT username as user, password, concat('/var/vmail/', maildir, 'Maildir') as home, concat('maildir:/var/vmail/', maildir, 'Maildir') as mail , 5000 as uid, 12 as gid FROM mailbox WHERE username = '%u' AND active = '1' Dovecot logs: dovecot: 2007-09-11 15:01:55 Info: auth(default): master in: USER 1 [EMAIL PROTECTED]service=deliver dovecot: 2007-09-11 15:01:55 Info: auth-worker(default): sql([EMAIL PROTECTED]): SELECT concat('/var/vmail/', maildir, 'Maildir') as home, concat('maildir:/var/vmail/', maildir, 'Maildir') as mail, 5000 AS uid, 8 AS gid, concat('maildir:storage=', floor(quota/1024)) AS quota FROM mailbox WHERE username = '[EMAIL PROTECTED]' AND active = '1' dovecot: 2007-09-11 15:01:55 Info: auth(default): master out: USER 1 [EMAIL PROTECTED] home=/var/vmail/exemple.com/contact/Maildir mail=maildir:/var/vmail/exemple.com/contact/Maildiruid=5000 gid=8 quota=maildir:storage=1000 dovecot: 2007-09-11 15:12:21 Info: auth(default): master in: USER 1 [EMAIL PROTECTED]service=deliver dovecot: 2007-09-11 15:12:21 Info: auth-worker(default): sql([EMAIL PROTECTED]): SELECT concat('/var/vmail/', maildir, 'Maildir') as home, concat('maildir:/var/vmail/', maildir, 'Maildir') as mail, 5000 AS uid, 8 AS gid, concat('maildir:storage=', floor(quota/1024)) AS quota FROM mailbox WHERE username = '[EMAIL PROTECTED]' AND active = '1' dovecot: 2007-09-11 15:12:21 Info: auth(default): master out: USER 1 [EMAIL PROTECTED] home=/var/vmail/exemple.com/contact/Maildir mail=maildir:/var/vmail/exemple.com/contact/Maildiruid=5000 gid=8 quota=maildir:storage=1000 But quota does not work Thanks On 9/11/07, Umut Arus [EMAIL PROTECTED] wrote: Hello, I had compiled only those parameters, ./configure --with-ssl=openssl --with-mysql --with-ldap --prefix=/usr/local/dovecot My mysql.conf running user_query configuration is, user_query = SELECT home, uid, gid, concat('maildir:storage=',quota) as quota, mail_plugins FROM users WHERE userid = '%u' Check your, dovecot-deliver.log Healtly dovecot's (in maillog) log, Sep 10 17:05:30 mail2 dovecot: auth(default): pam(umuta,10.10.1.121): lookup service=dovecot Sep 10 17:05:30 mail2 dovecot: auth(default): client out: OK1 user=umuta Sep 10 17:05:30 mail2 dovecot: auth(default): master in: REQUEST1 26162 1 Sep 10 17:05:30 mail2 dovecot: auth-worker(default): sql(umuta,10.10.1.125): SELECT home, uid, gid, concat('maildir:storage=',quota) as quota, mail_plugins FROM users WHERE userid = 'umuta' Sep 10 17:05:30 mail2 dovecot: auth(default): master out: USER 1 umuta home=/home/umutauid=8287gid=100 quota=maildir:storage=2048 mail_plugins=quota imap_quota regards, Osvaldo Alvarez Pozo wrote: Hi I thank you very much for your answer I am testing with dovecot-1.0.5.tar.gz i configured it like this: ./configure --prefix=/usr/local/dovecot --with-deliver --with-sql-drivers --with-ioloop=epoll --with-notify=dnotify --with-pop3d --with-mysql --with-static-userdb --with-prefetch-userdb --with-sql --with-ssl=openssl I think i 'am a litle lost with the configuration parametres. I was reading the wiki but maybe I 'm missing something. Thanks Very much. On 9/11/07, Umut Arus [EMAIL PROTECTED] wrote: Hello, What is your dovecot version? If you are not using dovecot-1.0.5 (below versions are buggy) you cannot set the users' quota from mysqldb. I had tried with one of buggy version two days. regards, Osvaldo Alvarez Pozo wrote: Hi all Does the list work? I have sent two mail without answer up today. I want to change Courrier-imap by dovecot but i have problems with quota and sieve in dovecot. would you help validating dovecot? I this does not work i would have to stay with courier-imap. This is the mail I sent before. Hi Well my problem is with quota it is not taken into account by deliver i compiled dovecot from sorces and the resault is the same. thoses are my files: File /etc/dovecot/dovecot.conf ssl_cert_file = /etc/apache2/ssl/server.crt ssl_key_file = /etc/apache2/ssl/server.key #ssl_ca_file = /etc/pki/dovecot/certs/ca-bundle.crt protocols = imap pop3 imaps pop3s log_timestamp = %Y-%m-%d %H:%M:%S #mail_location = maildir:/export/mail/%d/%u mail_location = maildir:/var/vmail/%d/%u/Maildir mail_extra_groups = mail first_valid_uid = 5000 last_valid_uid = 5000 maildir_copy_with_hardlinks = yes disable_plaintext_auth = no protocol imap { mail_plugins = quota imap_quota imap_client_workarounds = outlook-idle delay-newmail } protocol pop3 { mail_plugins = quota pop3_client_workarounds =
Re: [Dovecot] Does the list work?
Please check /var/run/dovecot/auth-master files Is this file writeable or you can change mode=0777 in dovecot.conf and restart dovecot (file attributes will be change) then test quota. Regards, Osvaldo Alvarez Pozo wrote: My sql.conf: user_query = SELECT concat('/var/vmail/', maildir, 'Maildir') as home, concat('maildir:/var/vmail/', maildir, 'Maildir') as mail, 5000 AS uid, 8 AS gid, concat('maildir:storage=', floor(quota/1024)) AS quota FROM mailbox WHERE username = '%u' AND active = '1' password_query = SELECT username as user, password, concat('/var/vmail/', maildir, 'Maildir') as home, concat('maildir:/var/vmail/', maildir, 'Maildir') as mail , 5000 as uid, 12 as gid FROM mailbox WHERE username = '%u' AND active = '1' Dovecot logs: dovecot: 2007-09-11 15:01:55 Info: auth(default): master in: USER 1 [EMAIL PROTECTED]service=deliver dovecot: 2007-09-11 15:01:55 Info: auth-worker(default): sql([EMAIL PROTECTED]): SELECT concat('/var/vmail/', maildir, 'Maildir') as home, concat('maildir:/var/vmail/', maildir, 'Maildir') as mail, 5000 AS uid, 8 AS gid, concat('maildir:storage=', floor(quota/1024)) AS quota FROM mailbox WHERE username = '[EMAIL PROTECTED]' AND active = '1' dovecot: 2007-09-11 15:01:55 Info: auth(default): master out: USER 1 [EMAIL PROTECTED] home=/var/vmail/exemple.com/contact/Maildir mail=maildir:/var/vmail/exemple.com/contact/Maildiruid=5000 gid=8 quota=maildir:storage=1000 dovecot: 2007-09-11 15:12:21 Info: auth(default): master in: USER 1 [EMAIL PROTECTED]service=deliver dovecot: 2007-09-11 15:12:21 Info: auth-worker(default): sql([EMAIL PROTECTED]): SELECT concat('/var/vmail/', maildir, 'Maildir') as home, concat('maildir:/var/vmail/', maildir, 'Maildir') as mail, 5000 AS uid, 8 AS gid, concat('maildir:storage=', floor(quota/1024)) AS quota FROM mailbox WHERE username = '[EMAIL PROTECTED]' AND active = '1' dovecot: 2007-09-11 15:12:21 Info: auth(default): master out: USER 1 [EMAIL PROTECTED] home=/var/vmail/exemple.com/contact/Maildir mail=maildir:/var/vmail/exemple.com/contact/Maildiruid=5000 gid=8 quota=maildir:storage=1000 But quota does not work Thanks On 9/11/07, Umut Arus [EMAIL PROTECTED] wrote: Hello, I had compiled only those parameters, ./configure --with-ssl=openssl --with-mysql --with-ldap --prefix=/usr/local/dovecot My mysql.conf running user_query configuration is, user_query = SELECT home, uid, gid, concat('maildir:storage=',quota) as quota, mail_plugins FROM users WHERE userid = '%u' Check your, dovecot-deliver.log Healtly dovecot's (in maillog) log, Sep 10 17:05:30 mail2 dovecot: auth(default): pam(umuta,10.10.1.121): lookup service=dovecot Sep 10 17:05:30 mail2 dovecot: auth(default): client out: OK1 user=umuta Sep 10 17:05:30 mail2 dovecot: auth(default): master in: REQUEST1 26162 1 Sep 10 17:05:30 mail2 dovecot: auth-worker(default): sql(umuta,10.10.1.125): SELECT home, uid, gid, concat('maildir:storage=',quota) as quota, mail_plugins FROM users WHERE userid = 'umuta' Sep 10 17:05:30 mail2 dovecot: auth(default): master out: USER 1 umuta home=/home/umutauid=8287gid=100 quota=maildir:storage=2048 mail_plugins=quota imap_quota regards, Osvaldo Alvarez Pozo wrote: Hi I thank you very much for your answer I am testing with dovecot-1.0.5.tar.gz i configured it like this: ./configure --prefix=/usr/local/dovecot --with-deliver --with-sql-drivers --with-ioloop=epoll --with-notify=dnotify --with-pop3d --with-mysql --with-static-userdb --with-prefetch-userdb --with-sql --with-ssl=openssl I think i 'am a litle lost with the configuration parametres. I was reading the wiki but maybe I 'm missing something. Thanks Very much. On 9/11/07, Umut Arus [EMAIL PROTECTED] wrote: Hello, What is your dovecot version? If you are not using dovecot-1.0.5 (below versions are buggy) you cannot set the users' quota from mysqldb. I had tried with one of buggy version two days. regards, Osvaldo Alvarez Pozo wrote: Hi all Does the list work? I have sent two mail without answer up today. I want to change Courrier-imap by dovecot but i have problems with quota and sieve in dovecot. would you help validating dovecot? I this does not work i would have to stay with courier-imap. This is the mail I sent before. Hi Well my problem is with quota it is not taken into account by deliver i compiled dovecot from sorces and the resault is the same. thoses are my files: File /etc/dovecot/dovecot.conf ssl_cert_file = /etc/apache2/ssl/server.crt ssl_key_file = /etc/apache2/ssl/server.key #ssl_ca_file = /etc/pki/dovecot/certs/ca-bundle.crt protocols = imap pop3 imaps pop3s log_timestamp = %Y-%m-%d %H:%M:%S #mail_location = maildir:/export/mail/%d/%u mail_location = maildir:/var/vmail/%d/%u/Maildir mail_extra_groups = mail first_valid_uid = 5000 last_valid_uid = 5000 maildir_copy_with_hardlinks = yes disable_plaintext_auth = no protocol imap { mail_plugins =
[Dovecot] Deliver parameter problem
Hello, I'm using dovecot-1.0.5 with postfix. I have to use deliver from procmail because I have some filters. There is no document about how to using deliver parameters (-d) other than http://wiki.dovecot.org/LDA . If I set -d parameters manually as a username everything is ok. I can not set users' mail quota (don't lookup) with mysql db if I haven't set -d parameter as receipt username in procmail. How can I describe user (-d) parameter's variable in procmail? Procmail configuration, :0 | /usr/local/dovecot/libexec/dovecot/deliver -f $blabla -d $blabla2 Output of the configuration, # 1.0.5: /usr/local/dovecot/etc/dovecot.conf protocols: imap imaps pop3 pop3s listen: 10.1.1.168 ssl_cert_file: /usr/local/dovecot/etc/dovecot.cert.pem ssl_key_file: /usr/local/dovecot/etc/dovecot.key.pem disable_plaintext_auth: no login_dir: /usr/local/dovecot/var/run/dovecot/login login_executable(default): /usr/local/dovecot/libexec/dovecot/imap-login login_executable(imap): /usr/local/dovecot/libexec/dovecot/imap-login login_executable(pop3): /usr/local/dovecot/libexec/dovecot/pop3-login mail_location: maildir:%h/Maildir:INDEX=/var/no-quotas/index/%u:CONTROL=/var/no-quotas/control/%u mail_debug: yes mail_full_filesystem_access: yes mail_executable(default): /usr/local/dovecot/libexec/dovecot/imap mail_executable(imap): /usr/local/dovecot/libexec/dovecot/imap mail_executable(pop3): /usr/local/dovecot/libexec/dovecot/pop3 mail_plugins(default): quota imap_quota mail_plugins(imap): quota imap_quota mail_plugins(pop3): mail_plugin_dir(default): /usr/local/dovecot/lib/dovecot/imap mail_plugin_dir(imap): /usr/local/dovecot/lib/dovecot/imap mail_plugin_dir(pop3): /usr/local/dovecot/lib/dovecot/pop3 pop3_uidl_format(default): pop3_uidl_format(imap): pop3_uidl_format(pop3): %08Xv%08Xu namespace: type: private separator: / location: maildir:~/Maildir:INDEX=/var/no-quotas/index/%u:CONTROL=/var/no-quotas/control/%u inbox: yes namespace: type: private separator: / prefix: mail/ location: maildir:~/Maildir/.mail:INDEX=/var/no-quotas/index/%u:CONTROL=/var/no-quotas/control/%u auth default: verbose: yes debug: yes passdb: driver: pam userdb: driver: sql args: /usr/local/dovecot/etc/dovecot-sql.conf userdb: driver: prefetch socket: type: listen master: path: /var/run/dovecot/auth-master mode: 438 plugin: quota: maildir:storage=50:ignore=trash regards,
[Dovecot] dovecot sieve notify example?
Dear list, I was trying to use the notify action with dovecot sieve but I just couldn't get it work. The relevant lines look as follows: , |require [fileinto, notyfy]; | if header :contains [to, cc] [[EMAIL PROTECTED], [EMAIL PROTECTED]] { | notify | :method mailto | :options [EMAIL PROTECTED] | :low | :message notification; | keep; | stop; | } ` But I get in log file the error , | Sep 11 10:51:25 host30 deliver([EMAIL PROTECTED]): sieve runtime error: Notify: Generic Error ` Can someone please give me a hint what I did wrong, or give an example how a sieve notify action should look like? I appended my configuration below, in case it matters. I am running linux debian etch, and use the postfix/dovecot packages from debian repository. Thanks for your consideration, Thanh Output from 'dovecot -n': , | ssl_listen: *:993 | ssl_ca_file: /etc/ssl/certs/cacert.pem | ssl_cert_file: /etc/ssl/certs/cert.pem | ssl_key_file: /etc/ssl/private/key.pem | disable_plaintext_auth: no | login_dir: /var/run/dovecot/login | login_executable: /usr/lib/dovecot/imap-login | mail_extra_groups: mail | mail_location: maildir:/var/mail/vmail/%n | auth default: | user: nobody | passdb: | driver: ldap | args: /etc/dovecot/dovecot-ldap.conf | userdb: | driver: static | args: uid=520 gid=520 home=/var/mail/vmail/%n allow_all_users=yes | 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: vmail ` dovecot-ldap.conf: , | hosts = 192.168.100.20:389 | ldap_version = 3 | base = ou=People,dc=example,dc=com | deref = never | scope = onelevel | auth_bind = yes | auth_bind_userdn = uid=%n,ou=People,dc=example,dc=com `
Re: [Dovecot] dovecot sieve notify example?
sorry for the noise, I found the answer: http://article.gmane.org/gmane.mail.imap.dovecot/20813/match Thanh On Tue, Sep 11, 2007 at 02:06:06PM +0200, The Thanh Han wrote: Dear list, I was trying to use the notify action with dovecot sieve but I just couldn't get it work. The relevant lines look as follows: , |require [fileinto, notyfy]; | if header :contains [to, cc] [[EMAIL PROTECTED], [EMAIL PROTECTED]] { | notify | :method mailto | :options [EMAIL PROTECTED] | :low | :message notification; | keep; | stop; | } ` But I get in log file the error , | Sep 11 10:51:25 host30 deliver([EMAIL PROTECTED]): sieve runtime error: Notify: Generic Error ` Can someone please give me a hint what I did wrong, or give an example how a sieve notify action should look like? I appended my configuration below, in case it matters. I am running linux debian etch, and use the postfix/dovecot packages from debian repository. Thanks for your consideration, Thanh Output from 'dovecot -n': , | ssl_listen: *:993 | ssl_ca_file: /etc/ssl/certs/cacert.pem | ssl_cert_file: /etc/ssl/certs/cert.pem | ssl_key_file: /etc/ssl/private/key.pem | disable_plaintext_auth: no | login_dir: /var/run/dovecot/login | login_executable: /usr/lib/dovecot/imap-login | mail_extra_groups: mail | mail_location: maildir:/var/mail/vmail/%n | auth default: | user: nobody | passdb: | driver: ldap | args: /etc/dovecot/dovecot-ldap.conf | userdb: | driver: static | args: uid=520 gid=520 home=/var/mail/vmail/%n allow_all_users=yes | 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: vmail ` dovecot-ldap.conf: , | hosts = 192.168.100.20:389 | ldap_version = 3 | base = ou=People,dc=example,dc=com | deref = never | scope = onelevel | auth_bind = yes | auth_bind_userdn = uid=%n,ou=People,dc=example,dc=com `
Re: [Dovecot] dovecot sieve notify example?
Thanh Han The wrote: sorry for the noise, I found the answer: http://article.gmane.org/gmane.mail.imap.dovecot/20813/match Thanh You found old answer... :) there is new version of patch and it included in latest source code of sieve plugin [ check downloads page]. Uldis
[Dovecot] still having problems with deliver , quota , mysql
Hi I have problems with deliver? I can not make it work with mysql. I mean I can write over the space declared on mysql. does any have a way of setting up deliver to read quota from mysql??? Thanks
[Dovecot] Possible bug in authentication cache in dovecot 1.1.alpha4
Hello, it seems that there is some bug in authentication cache code in dovecot version 1.1.alpha4 - after login attempt with wrong password the correct password also will fail. I can reproduce it very easy: $telnet 10.10.10.30 110 +OK Server. [EMAIL PROTECTED] user testuser +OK pass pass +OK Logged in. quit +OK Logging out. Connection closed by foreign host. $telnet 10.10.10.30 110 +OK Server. [EMAIL PROTECTED] user testuser +OK pass wrongpass -ERR Authentication failed. quit +OK Logging out Connection closed by foreign host. $telnet 10.10.10.30 110 +OK Server. [EMAIL PROTECTED] user testuser +OK pass pass -ERR [IN-USE] Internal login failure. Refer to server log for more information. Connection closed by foreign host. here is debug log: Sep 11 19:46:39 server2 dovecot: Dovecot v1.1.alpha4 starting up Sep 11 19:46:40 server2 dovecot: auth-worker(default): mysql: Connected to /tmp/mysql.sock (mail) Sep 11 19:47:03 server2 dovecot: auth(default): client in: AUTH^I1^IPLAIN^Iservice=pop3^Ilip=10.10.10.30^Irip=10.10.10.20^Iresp=AHRlc3R1c2VyAHBhc3M= Sep 11 19:47:03 server2 dovecot: auth(default): cache(testuser,10.10.10.20): miss Sep 11 19:47:03 server2 dovecot: auth-worker(default): sql(testuser,10.10.10.20): query: SELECT user, password, home as userdb_home, uid as userdb_uid, gid as userdb_gid FROM users WHERE user = 'testuser' Sep 11 19:47:03 server2 dovecot: auth(default): client out: OK^I1^Iuser=testuser Sep 11 19:47:03 server2 dovecot: auth(default): master in: REQUEST^I1^I2148^I1 Sep 11 19:47:03 server2 dovecot: auth(default): prefetch(testuser,10.10.10.20): success Sep 11 19:47:03 server2 dovecot: auth(default): master out: USER^I1^Itestuser^Itestuser=^Ihome=/vmail/00/testuser^Iuid=95^Igid=95 Sep 11 19:47:03 server2 dovecot: pop3-login: Login: user=testuser, method=PLAIN, rip=10.10.10.20, lip=10.10.10.30 Sep 11 19:47:08 server2 dovecot: POP3(testuser): Disconnected: Logged out top=0/0, retr=0/0, del=0/0, size=0 Sep 11 19:47:34 server2 dovecot: auth(default): client in: AUTH^I2^IPLAIN^Iservice=pop3^Ilip=10.10.10.30^Irip=10.10.10.20^Iresp=AHRlc3R1c2VyAHdyb25ncGFzcw== Sep 11 19:47:34 server2 dovecot: auth(default): cache(testuser,10.10.10.20): hit Sep 11 19:47:34 server2 dovecot: auth(default): cache(testuser,10.10.10.20): Password mismatch Sep 11 19:47:34 server2 dovecot: auth(default): cache(testuser,10.10.10.20): PLAIN(wrongpass) != 'pass' Sep 11 19:47:34 server2 dovecot: auth-worker(default): sql(testuser,10.10.10.20): query: SELECT user, password, home as userdb_home, uid as userdb_uid, gid as userdb_gid FROM users WHERE user = 'testuser' Sep 11 19:47:34 server2 dovecot: auth-worker(default): sql(testuser,10.10.10.20): Password mismatch Sep 11 19:47:34 server2 dovecot: auth-worker(default): sql(testuser,10.10.10.20): PLAIN(wrongpass) != 'pass' Sep 11 19:47:35 server2 dovecot: auth(default): client out: FAIL^I2^Iuser=testuser Sep 11 19:47:37 server2 dovecot: pop3-login: Aborted login: user=testuser, method=PLAIN, rip=10.10.10.20, lip=10.10.10.30 Sep 11 19:47:46 server2 dovecot: auth(default): client in: AUTH^I3^IPLAIN^Iservice=pop3^Ilip=10.10.10.30^Irip=10.10.10.20^Iresp=AHRlc3R1c2VyAHBhc3M= Sep 11 19:47:46 server2 dovecot: auth(default): cache(testuser,10.10.10.20): hit Sep 11 19:47:46 server2 dovecot: auth(default): client out: OK^I3^Iuser=testuser Sep 11 19:47:46 server2 dovecot: auth(default): master in: REQUEST^I2^I2148^I3 Sep 11 19:47:46 server2 dovecot: auth(default): prefetch(testuser,10.10.10.20): passdb didn't return userdb entries Sep 11 19:47:46 server2 dovecot: auth(default): userdb(testuser,10.10.10.20): user not found from userdb Sep 11 19:47:46 server2 dovecot: auth(default): master out: NOTFOUND^I2 Sep 11 19:47:46 server2 dovecot: pop3-login: Internal login failure: user=testuser, method=PLAIN, rip=10.10.10.20, lip=10.10.10.30 dovecot -n output: # 1.1.alpha4: /usr/local/dovecot/etc/dovecot.conf base_dir: /var/run/dovecot/ syslog_facility: local0 protocols: pop3 ssl_disable: yes disable_plaintext_auth: no login_dir: /var/run/dovecot/login login_executable: /usr/local/dovecot/libexec/dovecot/pop3-login login_greeting: Server. login_process_per_connection: no login_process_size: 64 verbose_proctitle: yes first_valid_uid: 95 first_valid_gid: 95 mail_uid: 95 mail_gid: 95 mail_location: maildir:~/Maildir fsync_disable: yes mail_executable: /usr/local/dovecot/libexec/dovecot/pop3 mail_plugin_dir: /usr/local/dovecot/lib/dovecot/pop3 pop3_enable_last: yes pop3_client_workarounds: outlook-no-nuls oe-ns-eoh auth default: mechanisms: plain login digest-md5 cram-md5 apop cache_size: 2048 cache_ttl: 28800 cache_negative_ttl: 60 user: doveauth verbose: yes debug: yes debug_passwords: yes passdb: driver: sql args: /usr/local/dovecot/etc/dovecot-sql.conf userdb: driver: prefetch Regards, Arvids
Re: [Dovecot] 'r' flag in ACL stomping on 'l' flag effect
Thank you for the fast reply! I'm a novice when it comes to IMAP. Timo Sirainen wrote: On 11.9.2007, at 0.54, Phil Edwards wrote: 2 list * * LIST (\Noselect \HasChildren) . Testing/ * LIST (\HasNoChildren) . Testing/TestTwo * LIST (\HasNoChildren) . Testing/TestOne 2 OK List completed. 3 subscribe Testing/TestTwo 3 NO Permission denied This isn't about ACL, this is because your hieraracy separator is . and / isn't then allowed in mailbox names. I've no idea how you've managed to create mailboxes with / in them in the first place, or how LIST is showing them. Any ideas? :) They weren't created over IMAP; I couldn't get Dovecot+Thunderbird to see the public area until I had created mailboxes by hand. (That restriction may be by design, and seems perfectly reasonable to me, so I'm not complaining.) The bits in the dovecot conf file are: namespace shared { prefix = Testing/ location = maildir:/.../Maildir } and in that Maildir are: # ls -lFa total 20 drwxr-s--- 4 ... 4096 Sep 10 17:04 ./ drwxr-xr-t 4 ... 4096 Aug 24 16:20 ../ drwxrws--- 5 ... 4096 Sep 10 18:04 .TestOne/ drwxrws--- 5 ... 4096 Sep 10 17:16 .TestTwo/ -rw-rw 1 ...0 Aug 24 16:21 dovecot-shared -rw-r--r-- 1 ... 16 Sep 10 18:02 subscriptions # and 'subscriptions' consists of: TestOne TestTwo From what you've just said, I'm guessing that I need to go back and add a 'separator=???' assignment to both the private and public namespace blocks in the dovecot conf file. Currently they're all just using whatever the default is (depends on the underlying mail storage format, apparently a . but it's a pain finding an authoritative description). I've been hesitant to change that from the default, because I can find so little documentation on how those changes appear to client software. -- Phil Edwards
[Dovecot] [Debian] Sarge packages for dovecot 1.0.5 available
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Sun, Sep 09, 2007 at 07:21:26AM +0300, Timo Sirainen may have written: http://dovecot.org/releases/1.0/dovecot-1.0.5.tar.gz http://dovecot.org/releases/1.0/dovecot-1.0.5.tar.gz.sig Packages dovecot-common, dovecot-pop3d, and dovecot-imapd are available from the delink.net repository. Add the following line to /etc/apt/sources.list: deb http://debian.delink.net/ sarge-delink main Any problems with the package should be reported to me offlist. Just remove the tag from the left hand side of my email address above. Thanks, Brian - -- http://www.delink.net/ -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQFG5w5vFy/L+4MovqIRApgfAKCSbqHNTZYHArAJNhRb9ZIc0fXm1ACfZLJ9 QNA9XIqzFEGi8tpxCX9mNjU= =APhD -END PGP SIGNATURE-
[Dovecot] Datehandling bug?
Hi, I am testing dovecot 1.0.3 alongside my existing courier installation and a number of my emails are heading to the top of the inbox even though they are rather old. Closer inspection shows that my mailclient (Thunderbird on Win32) is showing me some screwey dates for a number of messages. One example is an email which says: Date: 2007-08-21 11:42:43 But in TB I see the date shown as only: 03:27 ie just a time and no date OK, the date above is clearly not an RFC date, but any idea why this is showing up only under Dovecot? Is it a dovecot date handling issue? Cheers Ed W
Re: [Dovecot] Datehandling bug?
At 1:40 AM +0100 9/12/07, Ed W wrote: Hi, I am testing dovecot 1.0.3 alongside my existing courier installation and a number of my emails are heading to the top of the inbox even though they are rather old. Closer inspection shows that my mailclient (Thunderbird on Win32) is showing me some screwey dates for a number of messages. It would be very wrong for any IMAP or POP server to do anything more than just pass along the Date header of a message as-is to a client. One example is an email which says: Date: 2007-08-21 11:42:43 But in TB I see the date shown as only: 03:27 ie just a time and no date OK, the date above is clearly not an RFC date, but any idea why this is showing up only under Dovecot? Is it a dovecot date handling issue? Are you able to look at the same message store via Courier? If so, what does TBird show on that message when seen through Courier? I expect it will be the same. You should also look at the message on disk to see what it looks like if you want absolute confirmation that the Date header is what it is without reference to which IMAP server you use. Dovecot or Courier don't parse message headers for clients. As you say, that Date header is improperly formatted. Whatever generated that message is broken, and it is not really a bug for mail clients (i.e. TBird) to choke on parsing it, although presenting ANYTHING as a Date when the Date header can easily be detected as improper is arguably a bug. -- Bill Cole [EMAIL PROTECTED]