[Dovecot] Released Pigeonhole v0.2.1 for Dovecot v2.0.4
Hello Dovecot users, There haven't been that many Pigeonhole developments lately, not even really significant bugs were reported. That is why this release is pretty small in terms of changes. However, one issue got some attention: the fact that not recompiling Pigeonhole for Dovecot v2.0.3 would result in rather interesting message delivery. Normally, Dovecot would complain about a version mismatch, but unfortunately Pigeonhole's Sieve plugin didn't record the Dovecot version it was compiled with. Starting with this release, such problems should not occur again. Changelog v0.2.1: + Incorporated distinction between original and final envelope recipient in Sieve interpreter, as recently introduced in Dovecot. + Regex extension: added support for regex keys composed from variables. - LDA Sieve plugin: added _version symbol to enable Dovecot's plugin version check. Without this check, people can forget to recompile the plugin, which can lead to unexpected effects. - LDA Sieve plugin: turned debug message about an unconfigured home directory into a proper error and added script path information. - Fixed unnecessary reporting of dummy extensions in ManageSieve SIEVE capability; the comparator-i;octet and comparator-i;ascii-numeric 'extensions' were reported explicitly. The release is available as follows: http://www.rename-it.nl/dovecot/2.0/dovecot-2.0-pigeonhole-0.2.1.tar.gz http://www.rename-it.nl/dovecot/2.0/dovecot-2.0-pigeonhole-0.2.1.tar.gz.sig Refer to http://pigeonhole.dovecot.org and the Dovecot v2.0 wiki for more information. Have fun testing this new release and don't hesitate to notify me when there are any problems. Regards, -- Stephan Bosch step...@rename-it.nl
[Dovecot] Postfix SASL Auth
Hello, i use Postfix (2.7.1) and Dovecot (1.2.14) on my FreeBSD Server. I use Postfixadmin and Virtuell User. The login going without problems, but the SASL Auth want not work. Have someone a Idea? Regards Silvio #postconf -a dovecot # postconf -n alias_maps = hash:/etc/aliases allow_percent_hack = no biff = no command_directory = /usr/sbin config_directory = /etc/postfix content_filter = amavisfeed:[127.0.0.1]:10024 daemon_directory = /usr/libexec/postfix data_directory = /var/db/postfix disable_vrfy_command = yes home_mailbox = Maildir/ html_directory = /usr/share/doc/postfix mail_owner = postfix mailbox_size_limit = 10240 mailq_path = /usr/bin/mailq manpage_directory = /usr/share/man masquerade_exceptions = root message_size_limit = 2048 mydestination = $myhostname, localhost mydomain = silviosiefke.de myhostname = hetzner.silviosiefke.de mynetworks = 127.0.0.0/8 newaliases_path = /usr/bin/newaliases queue_directory = /var/spool/postfix readme_directory = /usr/share/doc/postfix recipient_delimiter = + sample_directory = /etc/postfix sendmail_path = /usr/sbin/sendmail setgid_group = maildrop smtp_tls_note_starttls_offer = yes smtp_use_tls = no smtpd_client_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unknown_reverse_client_hostname, permit smtpd_data_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_pipelining, permit smtpd_delay_reject = yes smtpd_helo_required = yes smtpd_helo_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_invalid_helo_hostname, reject_non_fqdn_helo_hostname, permit smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_non_fqdn_recipient, reject_unknown_recipient_domain, reject_unauth_destination, reject_rbl_client bl.spamcop.net, reject_rbl_client sbl-xbl.spamhaus.org, permit smtpd_sasl_auth_enable = yes smtpd_sasl_path = private/auth smtpd_sasl_type = dovecot smtpd_sender_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_non_fqdn_sender, reject_unknown_sender_domain, permit smtpd_tls_cert_file = /etc/postfix/ssl/smtp.pem smtpd_tls_key_file = /etc/postfix/ssl/smtp.pem smtpd_tls_loglevel = 1 smtpd_tls_received_header = yes smtpd_tls_session_cache_timeout = 3600s smtpd_use_tls = no soft_bounce = yes tls_random_source = dev:/dev/urandom unknown_local_recipient_reject_code = 550 virtual_alias_maps = proxy:mysql:/etc/postfix/mysql/mysql_virtual_alias_maps.cf virtual_gid_maps = static:125 virtual_mailbox_base = /home/vmail virtual_mailbox_domains = proxy:mysql:/etc/postfix/mysql/mysql_virtual_domains_maps.cf virtual_mailbox_maps = proxy:mysql:/etc/postfix/mysql/mysql_virtual_mailbox_maps.cf virtual_minimum_uid = 125 virtual_transport = virtual virtual_uid_maps = static:125 base_dir = /var/run/dovecot/ protocols = imap imaps pop3s disable_plaintext_auth = no log_timestamp = "%Y-%m-%d %H:%M:%S " mail_debug = yes mail_location = maildir:/home/vmail/%d/%n mail_access_groups = mail first_valid_uid = 125 first_valid_gid = 125 log_path = /var/log/dovecot/dovecot.log info_log_path = /var/log/dovecot/dovecot-info.log ssl = yes ssl_cert_file = /etc/postfix/ssl/mail_silviosiefke_de.crt ssl_key_file = /etc/postfix/ssl/mail_silviosiefke_de.key protocol imap { } protocol pop3 { pop3_uidl_format = %08Xu%08Xv } protocol lda { postmaster_address = hostmaster at silviosiefke.de } auth default { mechanisms = digest-md5 plain login passdb sql { args = /usr/local/etc/dovecot-db.conf } userdb sql { args = /usr/local/etc/dovecot-db.conf } user = root socket listen { master { path = /var/run/dovecot/auth-master mode = 0600 user = postfix #group = vmail } client { path = /var/spool/postfix/private/auth mode = 0660 user = postfix group = postfix } } } driver = mysql connect = dbname=postifx user= host=localhost password= default_pass_scheme = MD5-CRYPT password_query = SELECT password FROM mailbox WHERE username = '%u' user_query = SELECT maildir, 125 AS uid, 125 AS gid FROM mailbox WHERE username = '%u' Logeintrag: Sep 25 23:23:55 hetzner postfix/smtpd[86111]: connect from unknown Sep 25 23:23:57 hetzner postfix/smtpd[86111]: warning: unknown: SASL PLAIN authentication failed: Sep 25 23:23:59 hetzner postfix/smtpd[86111]: warning: unknown: SASL LOGIN authentication failed: UGFzc3dvcmQ6 Sep 25 23:24:01 hetzner postfix/smtpd[86111]: disconnect from unknown
Re: [Dovecot] Error: Opening INBOX failed: Mailbox doesn't exist: INBOX
Hello Timo, tmp/ was missing. Creating tmp/ and chown/chmod to dovecot user solved doveadm issue. If that user reports successful access to his maildir this issue is definitely solved. I did not delete dovecot.index* files. many thanks to you Christian Am 26.09.2010 19:29, schrieb Timo Sirainen: > Does this user have Maildir/cur/, new/ and tmp/ directories? Does it > help if you delete Maildir/dovecot.index* files?
[Dovecot] v2.0.4 released
http://dovecot.org/releases/2.0/dovecot-2.0.4.tar.gz http://dovecot.org/releases/2.0/dovecot-2.0.4.tar.gz.sig multi-dbox users: Be careful about the INDEX change. Maildir users: I hope v2.0 is now finally stable. * multi-dbox: If :INDEX=path is specified, keep storage/dovecot.map.index* files also in the index path rather than in the main storage directory. WARNING: if you specified :INDEX= with earlier mdbox installation, you must now manually move the storage indexes to the expected directory! Otherwise Dovecot won't see them and will rebuild the indexes, possibly unexpunging some mails. - Maildir: Copying messages with hard links sometimes caused the source maildir's entire tmp/ directory to be renamed to destination maildir as if it were a message. - Maildir: v2.0.3 broke expunging copied messages sometimes - Maildir: INBOX whose tmp/ directory was lost couldn't be opened - single-dbox: Messages weren't copied with hard links - vpopmail support is hopefully working again. - dsync: POP3 UIDLs weren't copied with Maildir - dict file: Fixed fd leak (showed up easily with LMTP + quota)
Re: [Dovecot] unwanted maildir directory
On Fri, 2010-09-24 at 10:16 -0500, Mike Abbott wrote: > imap(pid 5720 user user1): Error: Maildir: Symlink destination doesn't exist: > /path/to/mail/user2/cur/1285336100.M879758P1166.my.mail.server,S=41045,W=41755:2,FS This is still something I don't understand. There shouldn't be symlinks. Or maybe this is caused by HFS+'s strange hard link implementation.. > Note that user1 != user2. (As mentioned already in IRC, this is just a logging bug/missing feature when client_limit > 1.)
Re: [Dovecot] inbox doesn't exist, and quota calculation error
On Fri, 2010-09-24 at 10:31 -0500, Mike Abbott wrote: > and some clients report receiving this IMAP error: > tag NO Mailbox doesn't exist: INBOX This was caused by the lost tmp/ directories, which was fixed by that patch I sent. Also http://hg.dovecot.org/dovecot-2.0/rev/5b0a1974fc6f fixes recreating these missing tmp/ dirs.
Re: [Dovecot] Error: Opening INBOX failed: Mailbox doesn't exist: INBOX
On Sun, 2010-09-26 at 18:29 +0100, Timo Sirainen wrote: > > doveadm(u...@foo.local): Error: Opening INBOX failed: Mailbox doesn't > > exist: INBOX > > doveadm(u...@foo.local): Error: Opening mailbox INBOX failed: Mailbox > > doesn't exist: INBOX > > Does this user have Maildir/cur/, new/ and tmp/ directories? Does it > help if you delete Maildir/dovecot.index* files? No, forget it. This user most likely didn't have tmp/ directory (because of another bug) which was causing this problem. Fixed: http://hg.dovecot.org/dovecot-2.0/rev/5b0a1974fc6f
Re: [Dovecot] Error: Opening INBOX failed: Mailbox doesn't exist: INBOX
On Sun, 2010-09-26 at 09:11 +0200, Christian Felsing wrote: > there is one user which has a "Error: Opening INBOX failed: Mailbox > doesn't exist: INBOX" problem: > > doveadm mailbox status -u u...@foo.local -t all \* > > doveadm(u...@foo.local): Error: Opening INBOX failed: Mailbox doesn't > exist: INBOX > doveadm(u...@foo.local): Error: Opening mailbox INBOX failed: Mailbox > doesn't exist: INBOX Does this user have Maildir/cur/, new/ and tmp/ directories? Does it help if you delete Maildir/dovecot.index* files?
Re: [Dovecot] password_query, user_query and unrelated userid and emails
On Sat, 2010-09-25 at 15:23 +0200, Axel Luttgens wrote: > Let's say one has a SQL table with following fields for John Doe: > > login: u0007 > password: {SHA1}... > mailhome: /path/to/joeshome > email: john@example.com > > To log in, for internal policy reasons, John MUST make use of his userid > "u0007". > So, in the password_query, one would need something like: > > ... WHERE login = '%u' ... > > On the other hand, for receiving mail thru say, LMTP, one would need > something like this in the user_query: > > ... WHERE email = '%Lu' ... You could make it so that password_query changes the username to email by selecting "email AS user" and then user_query has only the email='% Lu'. Or you could make your user_query have "where (email='%Lu' or user='%u'). > I can't manage to devise a way to systematically refer to users thru their > login, nor to avoid such messages: > > prefetch(u0007): passdb didn't return userd entries, trying the next > userdb This seems like a different problem to me..
Re: [Dovecot] Settings for unlimited quota for some mailboxes
Patrick Westenberg wrote on 26.09.2010: > Hello, > I´m using Dovecot 2.0.1 with quota support (quota and imap_quota) which > works perfect. However, I´d like to give some mailboxes unlimited quota. > What quota setting (in the backend (SLQ)) is needed to tell Dovecot as > LDA that the mailbox has unlimited quota? > 0 or NULL or -1 or something else? > Regards > Patrick I don't know if "-1" is possible but "0" means unlimited. I use "0" in the SQL table and it's OK but I've never used "NULL" or something else. -- Daniel
[Dovecot] Settings for unlimited quota for some mailboxes
Hello, I´m using Dovecot 2.0.1 with quota support (quota and imap_quota) which works perfect. However, I´d like to give some mailboxes unlimited quota. What quota setting (in the backend (SLQ)) is needed to tell Dovecot as LDA that the mailbox has unlimited quota? 0 or NULL or -1 or something else? Regards Patrick
[Dovecot] Error: Opening INBOX failed: Mailbox doesn't exist: INBOX
Hello, there is one user which has a "Error: Opening INBOX failed: Mailbox doesn't exist: INBOX" problem: doveadm mailbox status -u u...@foo.local -t all \* doveadm(u...@foo.local): Error: Opening INBOX failed: Mailbox doesn't exist: INBOX doveadm(u...@foo.local): Error: Opening mailbox INBOX failed: Mailbox doesn't exist: INBOX doveadm -v force-resync -u u...@foo.local INBOX doveadm(u...@foo.local): Error: Opening INBOX failed: Mailbox doesn't exist: INBOX doveadm(u...@foo.local): Error: Opening mailbox INBOX failed: Mailbox doesn't exist: INBOX doveadm mailbox list -u u...@foo.local Archiv Old Gesendete Objekte INBOX INBOX.old INBOX.ix INBOX.ct INBOX.telepolis INBOX.bild INBOX.fotos.highres INBOX.computerbild Junk-E-Mail Trash Gesendet System has several hundred users, but this is the only user on which that happens. Users client is Microsoft Outlook 2003, but there are more users which are using Microsoft Outlook 2003. dovecot -n (some parts masked with *** for privacy reasons): # 2.0.3: /opt/dovecot/etc/dovecot/dovecot.conf # OS: Linux 2.6.26-2-amd64 x86_64 Debian 5.0.6 xfs auth_master_user_separator = * auth_mechanisms = plain login auth_realms = *** auth_username_format = %Lu disable_plaintext_auth = no first_valid_uid = 124 last_valid_uid = 124 listen = [::], * log_timestamp = %Y-%m-%d %H:%M:%S login_greeting = imap4/pop3 ready. mail_location = maildir:/mail/%d/%u/Maildir mail_privileged_group = 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 imapflags notify passdb { args = *** driver = passwd-file master = yes } passdb { args = /opt/dovecot/etc/dovecot/dovecot-ldap.conf driver = ldap } plugin { quota = maildir:User quota quota_rule = *:storage=500M quota_rule2 = Trash:storage=+100M quota_warning = storage=95%% quota-warning 95 %u quota_warning2 = storage=80%% quota-warning 80 %u sieve = ~/.dovecot.sieve sieve_dir = ~/sieve sieve_extensions = +imapflags +notify } protocols = imap pop3 sieve lmtp service auth { client_limit = 8000 unix_listener /var/run/dovecot/auth-master { group = vmail mode = 0660 user = vmail } unix_listener /var/spool/postfix/private/auth { group = postfix mode = 0660 user = postfix } user = vmail } service imap-login { process_limit = 1024 } service imap-postlogin { executable = script-login /opt/dovecot-cf/lastlogin.sh user = cadm } service imap { executable = imap imap-postlogin } service lmtp { unix_listener /var/spool/postfix/private/dovecot-lmtp { group = postfix mode = 0660 user = postfix } } service managesieve-login { inet_listener sieve-obsolete { port = 2000 } inet_listener sieve { port = 4190 } process_limit = 1024 } service pop3-login { process_limit = 1024 } service pop3-postlogin { executable = script-login /opt/dovecot-tools/lastlogin.sh user = cadm } service pop3 { executable = pop3 pop3-postlogin } service quota-warning { executable = script /opt/dovecot-tools/quota-warning.sh user = vmail } ssl_ca =