Re: [Dovecot] highly available userdb
On Wed, Nov 13, 2013 at 01:52:09PM +1000, Nick Edwards wrote: On 11/12/13, Jan-Frode Myklebust janfr...@tanso.net wrote: My installation is only serving 1/10 of your size, but long time ago we migrated off mysql for userdatabase, and over to LDAP. The MySQL data source had issues (not dovecot related), and didn't seem like the right tool for the job. A database is a database, a master is a master, and a slave is a slave And some databases are better for some tasks than others. F.ex. LDAP gives dovecot free failover between servers. Handled in the ldap libraries. One could argue that you should be complaining to the MySQL developers about supporting server failover in the client library, and not to Dovecot. our mysql has never had problem, not a single one, its why I'm so annoyed dovecot is talking to master when it doesn't need to -jf
Re: [Dovecot] Experience with ALTStorage on NFS mount
Hi Daniel, thanks for your reply. I don't need director because all clients are proxied every time to the same backend. I will try it out asap. regards Urban Am 14.11.2013 19:33, schrieb Daniel Parthey: Hi Urban I would recommend you to use NFS Version 4 and director instances, especially for such content which is heavily read but seldom written. NFSv4 has way better client-side caching than older NFS versions. You will need to run idmapd on NFS server and client to map usernames between server and client and. Regards Daniel
[Dovecot] why the system give the user more size than quota
Hello i put quota rules in the dovecot 1.2.15 the quota is per user and the system read from data base but the system give to user size more than quota any help please -- View this message in context: http://dovecot.2317879.n4.nabble.com/why-the-system-give-the-user-more-size-than-quota-tp45448.html Sent from the Dovecot mailing list archive at Nabble.com.
[Dovecot] Calling dovecot-lda from maildrop/shell
Hello, I want to make final delivery for some of my mailboxes using dovecot-lda, since I'm interested in using sieve. My usual MDA which is called from postfix is and will be maildrop. First try was to call dovecot-lda from command line: /usr/lib/dovecot/dovecot-lda -d s...@xgm.de testmail which gave return code 75 (EX_TEMPFAIL) and logged: dovecot: auth-worker(3533): mysql(localhost): Connected to database system dovecot: imap-login: Login: user=s...@xgm.de, method=PLAIN, rip=::1, lip=::1, mpid=3535, secured, session=jwXWP3HrwgAB dovecot: imap(s...@xgm.de): Disconnected: Logged out in=91 out=830 dovecot: lda(s...@xgm.de): Error: user s...@xgm.de: Initialization failed: Namespace '': Mail storage autodetection failed with home=/home/flindner/Mail/spam dovecot: lda(s...@xgm.de): Fatal: Invalid user settings. Refer to server log for more information. My userdb/password is like that home == maildir == /home/flindner/Mail/spam (without prefixed maildir:). It works fine for dovecot-imap, it detects that spam is a maildir. I've also tried prefixing home and or maildir with maildir: or calling: HOME=maildir:~/Mail/spam /usr/lib/dovecot/dovecot-lda testmail which gave: dovecot: lda: Error: user flindner: Relative home directory paths not supported: maildir:/home/flindner/Mail/spam dovecot: lda: Fatal: Invalid user settings. Refer to server log for more information. What is the problem with the LDA here? Thanks, Florian
Re: [Dovecot] Calling dovecot-lda from maildrop/shell
On 11/18/2013 11:08 AM Florian Lindner wrote: … First try was to call dovecot-lda from command line: /usr/lib/dovecot/dovecot-lda -d s...@xgm.de testmail which gave return code 75 (EX_TEMPFAIL) and logged: dovecot: auth-worker(3533): mysql(localhost): Connected to database system dovecot: lda(s...@xgm.de): Error: user s...@xgm.de: Initialization failed: Namespace '': Mail storage autodetection failed with home=/home/flindner/Mail/spam dovecot: lda(s...@xgm.de): Fatal: Invalid user settings. Refer to server log for more information. My userdb/password is like that home == maildir == /home/flindner/Mail/spam (without prefixed maildir:). It works fine for dovecot-imap, it detects that spam is a maildir. I've also tried prefixing home and or maildir with maildir: or calling: HOME=maildir:~/Mail/spam /usr/lib/dovecot/dovecot-lda testmail which gave: dovecot: lda: Error: user flindner: Relative home directory paths not supported: maildir:/home/flindner/Mail/spam dovecot: lda: Fatal: Invalid user settings. Refer to server log for more information. What is the problem with the LDA here? Please provide the output from `doveconf -n` and `doveadm user flindner`. Regards, Pascal -- The trapper recommends today: decade.1332...@localdomain.org
Re: [Dovecot] Problems with dovecot 2.1.7, spamassassin 3.3.2 and antispam plugin
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Mon, 11 Nov 2013, Dean wrote: If you are on a 64bit system, maybe sa-learn is compiled 32bit only, then the library must be installed as 32bit version as well. /usr/bin/sa-learn is a perl script, calling the various Mail::SpamAssassin modules. No 32/64 bit there afaik. I have a 64bit system and use the spamassassin demon to train ham/spam without such problem. I have the 32bit lib installed: locate libgcc_s /lib/libgcc_s.so.1 /usr/lib/gcc/x86_64-linux-gnu/4.3/libgcc_s.so /usr/lib/gcc/x86_64-linux-gnu/4.3/libgcc_s_32.so /usr/lib/gcc/x86_64-linux-gnu/4.3/32/libgcc_s.so /usr/lib/gcc/x86_64-linux-gnu/4.4/libgcc_s.so /usr/lib/gcc/x86_64-linux-gnu/4.4/libgcc_s_32.so /usr/lib/gcc/x86_64-linux-gnu/4.4/32/libgcc_s.so /usr/lib32/libgcc_s.so.1 The 32bit library got onto the system via the Suggests of Debian's gcc package. - -- Steffen Kaiser -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.11 (GNU/Linux) iQEVAwUBUoothl3r2wJMiz2NAQLeYQgAmyR8m7sMJD0pFnwHNXJtZ2+ENokgYz1h yC4B9QxIe6gqA4ITdp8hx3EGQII3JYQaci+qq0IsAnqq9YimCkVE9zTBrVc6aU19 yEJ6l+lWSgoyPdMVSF41ysfv37U8BlUfqsmE6I3Yj7Pp2SkBv3P4aAxt9n0VFm6J HZUbmjdRqhBhZvl2pDAdyUmTGzQU+v8SMknllHfsuC1OYHHGJlFbCpQBobZoEkkY KxOUfGVgIxekk1o0hA+7jPzCeaxfEjXgYkLKFzQeHin8T9fEZ4ibdRG3nLezJS45 1OwX+6qlAfjTyJShwYZ/BednXIWB9m7FvBXFgbS6L1D2onIyf/Xfvg== =spQn -END PGP SIGNATURE-
Re: [Dovecot] why the system give the user more size than quota
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Mon, 18 Nov 2013, ihab wrote: i put quota rules in the dovecot 1.2.15 the quota is per user and the system read from data base but the system give to user size more than quota show us your config and evidence that the quota is not enforced. BTW consider updating to the Dovecot v2 branch, because v1 is end of maintainance. - -- Steffen Kaiser -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.11 (GNU/Linux) iQEVAwUBUoot/V3r2wJMiz2NAQLneAf9EtWB1wIXq6GuZ6KA/zbDQW7mEtOX98iU QEbOYkIfJ06Zx7X0xQOfBMLDCG9C3p3jTYurzH7QP6JI8A3EPREohCzWNU692I19 ClJr4y1Kz43h3jizGJOngOYTI20tpodZ0UEv3IxS9l3SmJw84GVcki51qIfsEZAW B1r4o1amDYNPryi1y7HLJAMV/l9q1c7qQNWeWZoCWURqMXdYvuNwFy90uEe45Jw6 OoTDA0KxHFyhNgPst0Wm4pFWSq6ZaJMZCZzRCHfPwi+0kWLDiknvvQ5J6G/lmubg NJ17fZFY0foIXF33W+Y/SkXZj2s59Hp/eb1e+80aIQGJybekZe58jg== =eWyc -END PGP SIGNATURE-
Re: [Dovecot] Calling dovecot-lda from maildrop/shell
Am 18.11.2013 13:40, schrieb Pascal Volk: On 11/18/2013 11:08 AM Florian Lindner wrote: … First try was to call dovecot-lda from command line: /usr/lib/dovecot/dovecot-lda -d s...@xgm.de testmail which gave return code 75 (EX_TEMPFAIL) and logged: dovecot: auth-worker(3533): mysql(localhost): Connected to database system dovecot: lda(s...@xgm.de): Error: user s...@xgm.de: Initialization failed: Namespace '': Mail storage autodetection failed with home=/home/flindner/Mail/spam dovecot: lda(s...@xgm.de): Fatal: Invalid user settings. Refer to server log for more information. My userdb/password is like that home == maildir == /home/flindner/Mail/spam (without prefixed maildir:). It works fine for dovecot-imap, it detects that spam is a maildir. I've also tried prefixing home and or maildir with maildir: or calling: HOME=maildir:~/Mail/spam /usr/lib/dovecot/dovecot-lda testmail which gave: dovecot: lda: Error: user flindner: Relative home directory paths not supported: maildir:/home/flindner/Mail/spam dovecot: lda: Fatal: Invalid user settings. Refer to server log for more information. What is the problem with the LDA here? Please provide the output from `doveconf -n` and `doveadm user flindner`. # doveconf -n # 2.1.7: /etc/dovecot/dovecot.conf # OS: Linux 3.2.0-4-amd64 x86_64 Debian 7.2 auth_mechanisms = plain login digest-md5 cram-md5 ntlm namespace inbox { inbox = yes location = mailbox Drafts { auto = create special_use = \Drafts } mailbox Junk { auto = create special_use = \Junk } mailbox Sent { auto = create special_use = \Sent } mailbox Sent Messages { special_use = \Sent } mailbox Spam { special_use = \Junk } mailbox Trash { auto = create special_use = \Trash } prefix = } passdb { args = /etc/dovecot/dovecot-sql.conf.ext driver = sql } protocols = imap pop3 service auth { unix_listener /var/spool/postfix/private/auth { group = postfix mode = 0660 user = postfix } } ssl_cert = /etc/ssl/astarte.centershock.net.cert ssl_key = /etc/ssl/astarte.centershock.net.key userdb { driver = prefetch } userdb { args = /etc/dovecot/dovecot-sql.conf.ext driver = sql } # doveadm user flindner userdb lookup: user flindner doesn't exist flindner is my linux system user. There are virtual user, e.g # doveadm user s...@xgm.de userdb: s...@xgm.de home : /home/flindner/Mail/spam uid : 1001 gid : 1001 /home/flindner/Mail/spam is the home and maildir of virtual user. My mail system is built like that: postfix delivers all mail of a domain to maildrop using a system user which have this domain assigned. maildrop does the final delivery. There is no 1:1 mapping of mail adresses to maildirs. postfix @xgm.de - maildrop flindner - maildrop - maildir - dovecot IMAP this should become: postfix @xgm.de - maildrop flindner - maildrop - dovecot-lda - maildir - dovecot IMAP so that I can also use sieve for filtering. Regards, Florian
[Dovecot] Question about dovecot 2.2 and LIST command
I am running dovecot 2.2 changeset 16983:d925674c4329 on AIX. We use mbox files with the / delimter. I have an imap protocol question. When I do: 1 list directory1/ * 1 OK List completed. Is that the correct answer? If I do 1 list * it shows * LIST (\Noselect \HasChildren) / directory1 I forget why I think that even with the delimiter, I should see some information about it. Is this a silly test that no imap client does? Thanks, Jonathan
Re: [Dovecot] Question about dovecot 2.2 and LIST command
Quoting Jonathan Siegle jsie...@psu.edu: I am running dovecot 2.2 changeset 16983:d925674c4329 on AIX. We use mbox files with the / delimter. I have an imap protocol question. When I do: 1 list directory1/ * 1 OK List completed. Is that the correct answer? Yes. See below. If I do 1 list * it shows * LIST (\Noselect \HasChildren) / directory1 You are asking for the list of all mailboxes under (i.e. within) the 'directory1' mailbox. According to your 2nd command, there are no visible mailboxes under directory1. \HasChildren shouldn't normally be returned in this case. But that's a SHOULD NOT - not a MUST NOT. From RFC 3348: In many cases, however, a server may not be able to efficiently compute whether a user has access to all child mailboxes, or multiple users may be accessing the same account and simultaneously changing the mailbox hierarchy. As such a client MUST be prepared to accept the \HasChildren attribute as a hint. That is, a mailbox MAY be flagged with the \HasChildren attribute, but no child mailboxes will appear in a subsequent LIST response. michael
Re: [Dovecot] status=undeliverable (lost connection with mail.larptreff.de[private/dovecot-lmtp] while sending MAIL FROM)
Is there more detail needed to finally solve this? The temporary fails caused by LMTP not reaching the 'RCPT TO' stage get pretty annoying in the light of backscatter hitting the server: Nov 19 08:16:09 spectre postfix/smtpd[21386]: NOQUEUE: reject: RCPT from emea01-am1-ndr.ptr.protection.outlook.com[157.56.116.99]: 450 4.1.1 dc21dec5-d7f9-41fe-b16c-1ecc8536c...@leuxner.net: Recipient address rejected: unverified address: lost connection with spectre.leuxner.net[private/dovecot-lmtp] while sending MAIL FROM; from=cocacola0...@mentesbrim.onmicrosoft.com to=dc21dec5-d7f9-41fe-b16c-1ecc8536c...@leuxner.net proto=ESMTP helo=emea01-am1-obe.outbound.protection.outlook.com To reproduce simply add 'reject_unverified_recipient' to 'smtpd_recipient_restrictions'... signature.asc Description: Digital signature