[Dovecot] mixed MBOX and Maildir format ?
Hello would it be possible to have mixed formats in Dovecot 2.1.x userland ? I mean MBOX format for INBOXes Maildir format for IMAP folders ( to let users create subfolders ) Thank you
[Dovecot] Enforcing Dovecot Quotas
Hello, I have been looking at enforcing quotas for users of my mail system (postfix and Dovecot v1.2). Have tried to follow a few tuts on the web but its not having the desired effect. Essentially I can still send and receive mail on an account that I believe has had its quota exceeded. In my main.cf, I have: userdb sql { args = /etc/dovecot/mysql/dovecot-mysql.conf } passdb sql { args = /etc/dovecot/mysql/dovecot-mysql.conf } and... protocol lda { mail_plugins = quota } protocol imap { mail_plugins = quota imap_quota } plugin { quota_exceeded_message = You have exceeded the maximum quota for your mailbox } the dovecot sql (mysql) file has the following query for pulling out user ids and quotas etc: user_query = SELECT maildir, mymailuser as uid, mymailgroup as gid,concat('maildir:storage=',quota) as quota FROM virtual_mailbox WHERE username = '%u' I have set one of my users to have a quota of 1 (so one byte I believe) so it should be over the limit pretty much immediately. Looking at the logs I can see that the system is picking up on the quota limit but doesn't seem to enforce it. Apr 27 10:29:02 deliver(t...@testdomain.com): Info: auth input: quota=maildir:storage=1 Apr 27 10:29:02 deliver(t...@testdomain.com): Info: Quota root: name=storage=1 backend=maildir args= Any ideas? Am i missing something? -- View this message in context: http://old.nabble.com/Enforcing-Dovecot-Quotas-tp33763561p33763561.html Sent from the Dovecot mailing list archive at Nabble.com.
Re: [Dovecot] dovecot smtp authentication with sendmail
On Mon, May 07, 2012 at 10:04:02PM -0400, jeff donovan wrote: On May 7, 2012, at 9:11 PM, Hadi Salem wrote: It’s possible to use sasl dovecot smtp authentication with sendmail ? yes via postfix. Which is to say: no. Sendmail MTA has not implemented Dovecot SASL. Postfix's sendmail(1) binary receives mail via stdin, and does not authenticate. -- http://rob0.nodns4.us/ -- system administration and consulting Offlist GMX mail is seen only if /dev/rob0 is in the Subject:
[Dovecot] Exim / Dovecot and AUTH LOGIN
Hi to both adressed mailing lists, I followed the instructions in http://wiki2.dovecot.org/HowTo/EximAndDovecotSASL exim.conf: | plain: | driver = dovecot | public_name = PLAIN | server_socket = /var/run/dovecot/auth-client | server_set_id = $auth1 | | login: | driver = dovecot | public_name = LOGIN | server_socket = /var/run/dovecot/auth-client | server_set_id = $auth1 10-master.conf for dovecot: | service auth { | # auth_socket_path points to this userdb socket by default. It's typically | # used by dovecot-lda, doveadm, possibly imap process, etc. Its default | # permissions make it readable only by root, but you may need to relax these | # permissions. Users that have access to this socket are able to get a list | # of all usernames and get results of everyone's userdb lookups. | # unix_listener auth-userdb { | #mode = 0600 | #user = | #group = | # } | | # Exim SMTP AUTH | unix_listener auth-client { | mode = 0660 | user = exim | group = exim | } PLAIN Authentication works perfect, LOGIN gives 2012-05-08 15:08:43 login authenticator failed for xx.tu-berlin.de [130.149.X.YY]: 435 Unable to authenticate at present: authentication socket protocol error Where is the problem? Kind regards, Frank Elsner
Re: [Dovecot] dovecot smtp authentication with sendmail
On 8 May 2012, at 14:34, /dev/rob0 wrote: On Mon, May 07, 2012 at 10:04:02PM -0400, jeff donovan wrote: On May 7, 2012, at 9:11 PM, Hadi Salem wrote: It’s possible to use sasl dovecot smtp authentication with sendmail ? yes via postfix. Which is to say: no. Sendmail MTA has not implemented Dovecot SASL. Postfix's sendmail(1) binary receives mail via stdin, and does not authenticate. -- http://rob0.nodns4.us/ -- system administration and consulting Offlist GMX mail is seen only if /dev/rob0 is in the Subject: Hi, I do have a system that uses sendmail and SMTP authentication, which is done through the saslauthd daemon (comes as cyrus-sasl-* RPMs in RedHat/CentOS). The sasl daemon uses a tcpip imap connection to another machine which runs dovecot 2.1.5 (was working previously with 1.2). The options to set in sendmail.mc (you might want different mechanisms): define(`confAUTH_OPTIONS', `A p') TRUST_AUTH_MECH(`LOGIN PLAIN') define(`confAUTH_MECHANISMS', `LOGIN PLAIN') and then configure saslauthd to connect to your imap server. Thierry
[Dovecot] [+]: Exim / Dovecot and AUTH LOGIN
On Tue, 8 May 2012 15:22:11 +0200 Frank Elsner wrote: Hi to both adressed mailing lists, I followed the instructions in http://wiki2.dovecot.org/HowTo/EximAndDovecotSASL Forgot to mention the versions :-( exim 4.77 dovecot 2.1.6 self compiled under Fedora 14. --Frank Elsner
[Dovecot] lmtp_save_to_detail_mailbox not working?
Dovecot 2.1.6, with lmtp_save_to_detail_mailbox=yes recipient_delimiter=+ messages addressed to user+detail@domain are always delivered to INBOX regardless if detail mailbox already exists or lda_mailbox_autocreate=yes. Anything else needed to enable lmtp_save_to_detail_mailbox feature? Thanks, Oscar
[Dovecot] Thunderbird STARTTLS error
Hello, the error is still present: May 8 19:47:18 opsys dovecot: imap-login: Disconnected (no auth attempts): rip=82.113.119.140, lip=78.46.216.126 Whenever I start a session with openssl to STARTTTL (Server: mail.opsys.de) the handshake is successfull. Also I am able to login to my account via 1 login. In Thunderbird port 993 for SSL/TLS works correct, only STARTTLS on port 143 isn't working properly. The cert is Class 1 and signed by StartCom Ltd.. Dovecot.conf (for viewable reasons of this mail pasted): http://pastie.org/private/bmrymyuo16ohzxdahf0nq And here openssl output: http://pastie.org/private/3rpgll2s7hblev9ozpcq8w Note the 'Verify return code: 21 (unable to verify the first certificate)' in the output... Thanks for helping, I am working on this problem since 3 days. Kind regards Markus Fritz
Re: [Dovecot] [exim] Exim / Dovecot and AUTH LOGIN
On Tue, 08 May 2012 19:47:39 +0200 Jonas Eckerman wrote: On 2012-05-08 15:22, Frank Elsner wrote: [About exim authenticating PLAIN and LOGIN against dovecot auth socket] PLAIN Authentication works perfect, LOGIN gives 2012-05-08 15:08:43 login authenticator failed for xx.tu-berlin.de [130.149.X.YY]: 435 Unable to authenticate at present: authentication socket protocol error This is just a guess since I'm not too good at dovecot, but could it be that you need to set at least auth_mechanisms = plain login your in dovecot config? Yeah, that was it! You made my day! --Frank Elsner
[Dovecot] Director and backend on the same server
I have setup director and a backend dovecot service on the same machine using different ports. The backend service is listening on the default 24, 110 and 143 for lmtp, pop3 and imap respectively. Director is listening on 10024, 10110 and 10143 for the same respective services. I can get this setup to work if I have one backend server on a different IP listening on 10024, it seems director tries to use the same port it is listening on when making backend connections. If I point it to the local backend server, it tries to connect to itself which fails. Is there a way to specify the backend ports that director tries to connect to? I see there is a way to specify the port in director_servers but I'm not sure how I would specify the different ports for the different backend services, if this is even possible.
Re: [Dovecot] Thunderbird STARTTLS error
I'm just learning about this, but I was able to get it working recently. Also I haven't read your earlier posts. Did you receive intermediate certificates from StartCom? When I got my certificate, I had to concatenate together the contents of the domain_name.crt file and the gd_bundle.crt file. That concatenated file is the one I specify for ssl_cert_file. It has 4 certificates in it. I ask because when I run the openssl command, my certificate chain has 4 sections where yours only has one. Does your ssl.cert have the intermediate certificates in it? On 2012-05-08 14:17, Markus Fritz wrote: Hello, the error is still present: May 8 19:47:18 opsys dovecot: imap-login: Disconnected (no auth attempts): rip=82.113.119.140, lip=78.46.216.126 Whenever I start a session with openssl to STARTTTL (Server: mail.opsys.de) the handshake is successfull. Also I am able to login to my account via 1 login. In Thunderbird port 993 for SSL/TLS works correct, only STARTTLS on port 143 isn't working properly. The cert is Class 1 and signed by StartCom Ltd.. Dovecot.conf (for viewable reasons of this mail pasted): http://pastie.org/private/bmrymyuo16ohzxdahf0nq And here openssl output: http://pastie.org/private/3rpgll2s7hblev9ozpcq8w Note the 'Verify return code: 21 (unable to verify the first certificate)' in the output... Thanks for helping, I am working on this problem since 3 days. Kind regards Markus Fritz
Re: [Dovecot] Enforcing Dovecot Quotas
On Tue, May 08, 2012 at 01:59:38AM -0700, tcsmith1978 wrote: Hello, I have been looking at enforcing quotas for users of my mail system (postfix and Dovecot v1.2). Have tried to follow a few tuts on the web but its not having the desired effect. Essentially I can still send and receive mail on an account that I believe has had its quota exceeded. In my main.cf, I have: userdb sql { args = /etc/dovecot/mysql/dovecot-mysql.conf } passdb sql { args = /etc/dovecot/mysql/dovecot-mysql.conf } and... protocol lda { mail_plugins = quota } protocol imap { mail_plugins = quota imap_quota } plugin { quota_exceeded_message = You have exceeded the maximum quota for your mailbox } the dovecot sql (mysql) file has the following query for pulling out user ids and quotas etc: user_query = SELECT maildir, mymailuser as uid, mymailgroup as gid,concat('maildir:storage=',quota) as quota FROM virtual_mailbox WHERE username = '%u' I have set one of my users to have a quota of 1 (so one byte I believe) so it should be over the limit pretty much immediately. Looking at the logs I can see that the system is picking up on the quota limit but doesn't seem to enforce it. Apr 27 10:29:02 deliver(t...@testdomain.com): Info: auth input: quota=maildir:storage=1 Apr 27 10:29:02 deliver(t...@testdomain.com): Info: Quota root: name=storage=1 backend=maildir args= Any ideas? Am i missing something? i would try something like in the wiki: plugin { quota = maildir:User quota quota_exceeded_message = You have exceeded } Never used mysql for userdb or passdb though. Perhaps this would work: user_query = SELECT maildir, mymailuser as uid, mymailgroup as gid,concat('*:storage=',quota) as quota_rule FROM virtual_mailbox WHERE username = '%u -- View this message in context: http://old.nabble.com/Enforcing-Dovecot-Quotas-tp33763561p33763561.html Sent from the Dovecot mailing list archive at Nabble.com.
Re: [Dovecot] mixed MBOX and Maildir format ?
On Tue, 2012-05-08 at 09:16 +0200, Frank Bonnet wrote: Hello would it be possible to have mixed formats in Dovecot 2.1.x userland ? I mean MBOX format for INBOXes Maildir format for IMAP folders ( to let users create subfolders ) You could, although I think it's a bad idea (more complex, mbox breaks easlier, etc.) http://wiki2.dovecot.org/Namespaces#Examples
Re: [Dovecot] Director and backend on the same server
On Tue, 2012-05-08 at 12:55 -0600, James Devine wrote: I have setup director and a backend dovecot service on the same machine using different ports. The backend service is listening on the default 24, 110 and 143 for lmtp, pop3 and imap respectively. Director is listening on 10024, 10110 and 10143 for the same respective services. I'd make director listen on 24/110/143, so you don't accidentally connect there when you intended to connect to director, and end up accessing mails via wrong server. I can get this setup to work if I have one backend server on a different IP listening on 10024, it seems director tries to use the same port it is listening on when making backend connections. If I point it to the local backend server, it tries to connect to itself which fails. Is there a way to specify the backend ports that director tries to connect to? I see there is a way to specify the port in director_servers but I'm not sure how I would specify the different ports for the different backend services, if this is even possible. The passdb lookup can return which port to connect to. Director only sets the destination IP, everything else happens the same as with non-director proxying: http://wiki2.dovecot.org/PasswordDatabase/ExtraFields/Proxy
Re: [Dovecot] lmtp_save_to_detail_mailbox not working?
On Tue, 2012-05-08 at 13:36 -0400, Oscar del Rio wrote: Dovecot 2.1.6, with lmtp_save_to_detail_mailbox=yes recipient_delimiter=+ messages addressed to user+detail@domain are always delivered to INBOX regardless if detail mailbox already exists or lda_mailbox_autocreate=yes. Anything else needed to enable lmtp_save_to_detail_mailbox feature? Works fine with me. Do you have Sieve enabled? Set mail_debug=yes, what does it log when delivering a mail?
[Dovecot] IMAP NOTIFY extension
your work on NOTIFY was brought to my attention, and I see it hasn't been changed in two months, a week after you announced it. a few users and some mail admins have been wanting something like this for k9 mail, which I help develop. what is the current status? is it worth installing and starting work in getting k9 to support it yet? I'd offer help on your end, but I just know java and perl. c code usually confuses me (i keep meaning to learn, but...). thanks! -ashley -- Sent from my Android phone with K-9 Mail. Please excuse my brevity.
Re: [Dovecot] IMAP NOTIFY extension
On Tue, 2012-05-08 at 21:17 -0500, ashley willis wrote: your work on NOTIFY was brought to my attention, and I see it hasn't been changed in two months, a week after you announced it. a few users and some mail admins have been wanting something like this for k9 mail, which I help develop. what is the current status? is it worth installing and starting work in getting k9 to support it yet? I'd offer help on your end, but I just know java and perl. c code usually confuses me (i keep meaning to learn, but...). thanks! I'm planning on continuing it, but first I'll need to get dsync rewrite finished. It's getting close.. I think you should be able to already test the NOTIFY code, at least if your main purpose is to see when non-selected mailboxes change. My TODO list says: - check how FlagChange handles HIGHESTMODSEQ when it hasn't previously been enabled - fetch-att for NOTIFY and for SEARCH UPDATE - implement MailboxName, SubscriptionChange Also I think you must have mailbox_list_indexes=yes for NOTIFY to see any changes. The fetch-att means that you can't tell Dovecot to push FETCH fields for new messages.