Re: [Dovecot] zlib plugin
On 279, 10 05, 2008 at 10:38:02PM +0300, Timo Sirainen wrote: On Sun, 2008-10-05 at 21:28 +0200, Luuk wrote: Last but not least, what gain will i have by using this plugin in combination with Maildir, or will it have more impact when mails are stored in mbox. I guess it depends on the size of your mails. With mboxes it can be used only with read-only archives, so it's not all that useful. With maildir it can be used transparently with read-write mailboxes. I've no idea what the performance difference or space improvements are. I guess that'll also depend on your system. I use zlib compressed maildirs on my primary server (12000+ users) and it achieves average compression ratio of 1.8, so if your system is io-bound you can spend some cpu cycles to significantly decrease disk load. -- Andrey Panin| Linux and UNIX system administrator [EMAIL PROTECTED] | PGP key: wwwkeys.pgp.net signature.asc Description: Digital signature
[Dovecot] Dovecot 1.1.x or 1.2, which way to go for Kolab Server?
Hi Timo, Hi *, was written the other day we started to use Dovecot 1.2 for our Kolab with Dovecot project, but it turned out that there are quite a bunch of issues with 1.2 (which is ok, as it hasn't even been announced as beta till now). We have a customer who should get a first test installation of Kolab with Dovecot in the first week of September and for that we need the features mentioned in my other mails, especially the enhanced name spaces for shared folders. (%%h, listing of shared folders, an checkpassword like backend for userdb). So the big decision to make is: - stay with 1.1.x and port the needed shared namespace stuff back from 1.2 or - build on 1.2 and resolve all issues caused by it Timo, do you have any opinion/advice on this? How far from being production ready is 1.2 in your view? How hard would it be to get the shared folder/namespace stuff in 1.1.x? (or for that matter: who much harder than to do it in 1.2?) We are currently evaluating these questions, but I would highly appreciate your comments on this. cheers sascha -- Sascha Wilde OpenPGP key: 4BB86568 http://www.intevation.de/~wilde/ http://www.intevation.de/ Intevation GmbH, Neuer Graben 17, 49074 Osnabrück; AG Osnabrück, HR B 18998 Geschäftsführer: Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner pgptpp8Ir37ut.pgp Description: PGP signature
Re: [Dovecot] Transition from Courier-IMAP
On Tue, 2008-10-07 at 14:17 +0200, Arno van Amersfoort wrote: Hello all, Currently we are looking at the possibility of moving from Courier-IMAP to Dovecot (the one that comes with Debian Lenny: version 1.0.15). I'm currently testing it on a non-production server and have a few questions: 1) Currently all our clients use Thunderbird as their mail client to read mail from our IMAP server. Thunderbird is configured with INBOX. as the IMAP server directory. As we certainly do NOT want to reconfigure over 150 desktops, we would like to know if it's possible to make Dovecot work with Thunderbird Configured this way - Simply make Dovecot act the same as Courier-IMAP. With the default configuration of Dovecot I can see the (IMAP) Inbox but not its subfolders when IMAP server directory is NOT empty. Is there a way to let Dovecot ignore this setting and/or make it compatible with Courier? Yes. Create the namespace as described in http://wiki.dovecot.org/Migration/Courier 2) About a year back we already test-drived Dovecot but we weren't able to get Delete as marked option to work in Thunderbird in combination with Expunge to trash. Any messages marked as deleted would simply be deleted permanently when Thunderbird was closed. This did work properly with Courier where any messages were expunged to Trash (as it should). Is this a known problem and has it been addressed yet? I know Courier has a non-standard feature that causes expunging messages to move them to Trash mailbox instead of really expunging. Dovecot doesn't support this feature and I'm not planning on implementing it. It should be possible to implement a plugin to do it though. But Thunderbird can be configured to handle deletion by copying it to Trash, which should do pretty much the same thing. Are your users not using this setting? signature.asc Description: This is a digitally signed message part
Re: [Dovecot] Transition from Courier-IMAP
On Oct 7, 2008, at 4:00 PM, Arno van Amersfoort wrote: Thanks for the info concerning the namespaces. And yes: my users (including myself) use the EXPUNGE-to-TRASH option and as I said before we can't update all computers running Thunderbird here to enable copy-to-trash. And mark-as-deleted doesn't work in combination with copy-deleted-to-trash the options are exclusive to each other OK, so your only choice then would be to implement expunge-to-trash plugin. Lazy-expunge would be a good starting place, since it does almost the same thing. http://wiki.dovecot.org/Plugins/Lazyexpunge PGP.sig Description: This is a digitally signed message part
[Dovecot] Unable telnet port 143
Hi folks, Postfix Dovecot-imap 1.0 port 143 not working. $ telnet localhost 143[code] Trying 127.0.0.1... Connected to localhost.localdomain. Escape character is '^]'. * OK Dovecot ready. 1 login satimis mypassword 1 NO Authentication failed. * BYE Disconnected for inactivity. Connection closed by foreign host. [/code] # tail /var/log/mail.log[code] Password: Oct 6 01:05:02 xen5 dovecot: imap-login: Disconnected: user=satimis, method=P LAIN, rip=127.0.0.1, lip=127.0.0.1, secured Oct 6 01:17:09 xen5 postfix/smtpd[1820]: connect from 201-43-209-60.dsl.telesp. net.br[201.43.209.60] Oct 6 01:17:11 xen5 postfix/smtpd[1820]: NOQUEUE: reject: RCPT from 201-43-209- 60.dsl.telesp.net.br[201.43.209.60]: 554 5.7.1 Service unavailable; Client host [201.43.209.60] blocked using bl.spamcop.net; Blocked - see http://www.spamcop.n et/bl.shtml?201.43.209.60; from=[EMAIL PROTECTED] to=[EMAIL PROTECTED] com proto=SMTP helo=gvaeprbc Oct 6 01:17:11 xen5 postfix/smtpd[1820]: lost connection after RCPT from 201-43 -209-60.dsl.telesp.net.br[201.43.209.60] Oct 6 01:17:11 xen5 postfix/smtpd[1820]: disconnect from 201-43-209-60.dsl.tele sp.net.br[201.43.209.60] Oct 6 01:20:31 xen5 postfix/anvil[1823]: statistics: max connection rate 1/60s for (smtp:201.43.209.60) at Oct 6 01:17:09 Oct 6 01:20:31 xen5 postfix/anvil[1823]: statistics: max connection count 1 for (smtp:201.43.209.60) at Oct 6 01:17:09 Oct 6 01:20:31 xen5 postfix/anvil[1823]: statistics: max cache size 1 at Oct 6 01:17:09 Oct 6 01:24:32 xen5 dovecot: auth-worker(default): mysql: Connected to 127.0.0. 1 (mailserver) Oct 6 01:26:06 xen5 dovecot: imap-login: Disconnected: Inactivity: user=satimi s, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured [/code] I suppose it uses MySQL authorization. But I can't find /etc/dovecot/dovecot-mysql.conf # cat /etc/dovecot/dovecot.conf[code] protocols = imap imaps disable_plaintext_auth = no log_timestamp = %Y-%m-%d %H:%M:%S ssl_cert_file = /etc/ssl/certs/xen5.pem ssl_key_file = /etc/ssl/private/xen5.pem mail_privileged_group = mail ## ## IMAP specific settings ## protocol imap { } ## ## POP3 specific settings ## protocol pop3 { pop3_uidl_format = %08Xu%08Xv } ## ## LDA specific settings ## protocol lda { log_path = /var/vmail/dovecot-deliver.log auth_socket_path = /var/run/dovecot/auth-master postmaster_address = [EMAIL PROTECTED] # Enabling Sieve plugin for server-side mail filtering mail_plugins = cmusieve global_script_path = /var/vmail/globalsieverc } ## ## Authentication processes ## auth default { # Space separated list of wanted authentication mechanisms: # plain login digest-md5 cram-md5 ntlm rpa apop anonymous gssapi mechanisms = plain login passdb sql { # Path for SQL configuration file, see /etc/dovecot/dovecot-sql.conf for example args = /etc/dovecot/dovecot-sql.conf } userdb passwd { } user = root socket listen { master { path = /var/run/dovecot/auth-master mode = 0600 # Default user/group is the one who started dovecot-auth (root) user = vmail #group = } client { # The client socket is generally safe to export to everyone. Typical use # is to export it to your SMTP server so it can do SMTP AUTH lookups # using it. path = /var/spool/postfix/private/auth mode = 0660 user = postfix group = postfix } } } dict { #quota = mysql:/etc/dovecot-dict-quota.conf } ## ## Plugin settings ## plugin { } [/code] Please help. Where can I find samples of dovecot.conf and dovecot-mysql.conf for my use. TIA B.R. satimis -- View this message in context: http://www.nabble.com/Unable-telnet-port-143-tp19831992p19831992.html Sent from the Dovecot mailing list archive at Nabble.com.
[Dovecot] Mbox problem in 1.1.3 solved in 1.1.4
Hello. This is just a FYI mail to get the problem (and solution) into a searchable archive.. I ran into the following problem with mbox: Panic: IMAP(XXX): file index-sync.c: line 39 (index_mailbox_set_recent_uid): assertion failed: (seq_range_exists(ibox-recent_flags, uid)) Which was fully reproducable in 1.1.3, but in the newly released 1.1.4 this does not happen anymore. All is well, birds are singing etc. /Tomas -- Tomas Ögren, [EMAIL PROTECTED], http://www.cs.umu.se/~stric/ `- Student and SysAdmin at Computing Science, University of Umeå
Re: [Dovecot] Dovecot 1.1.x or 1.2, which way to go for Kolab Server?
On Tue, 07 Oct 2008 15:15:38 +0300 Timo Sirainen wrote: On Tue, 2008-10-07 at 13:08 +0200, Sascha Wilde wrote: was written the other day we started to use Dovecot 1.2 for our Kolab with Dovecot project, but it turned out that there are quite a bunch of issues with 1.2 (which is ok, as it hasn't even been announced as beta till now). I'd like to hear these issues, since I'm not aware of any v1.2-specific bugs. How far from being production ready is 1.2 in your view? Depends on how fast people report bugs to me.. I've been using it for my mails without problems for weeks. And about 3 other people also reported in the last few days that they're running it for their small mail servers. Me too. --Frank Elsner
Re: [Dovecot] PAM authentication problems
Timo Sirainen escreveu: On Oct 5, 2008, at 12:37 AM, Timo Sirainen wrote: On Oct 4, 2008, at 10:27 AM, Tom Lobato wrote: Oct 3 09:00:10 coan dovecot: auth(default): pam(rodrigo.botan,121.120.119.179): pipe() failed: Too many open files Set this to non-zero: # Number of auth requests to handle before destroying the process. This may # be useful if PAM plugins leak memory. #auth_worker_max_request_count = 0 Oops, sorry, you're using v1.0.rc15 which doesn't have this setting. In that case I don't really know why it's failing. Look at /proc/`pidof dovecot-auth`/fd/. Where are all the file descriptors going? In any case I'd suggest upgrading to a newer version (from backports.org). That alone might fix the problem. great! I upgraded dovecot (with backports.org package) and now it works. I don`t know why it started to give such problems but the upgrade solved it. thank you very much, Timo! Tom Lobato
Re: [Dovecot] Transition from Courier-IMAP
Thanks for the info concerning the namespaces. And yes: my users (including myself) use the EXPUNGE-to-TRASH option and as I said before we can't update all computers running Thunderbird here to enable copy-to-trash. And mark-as-deleted doesn't work in combination with copy-deleted-to-trash the options are exclusive to each other Timo Sirainen wrote: On Tue, 2008-10-07 at 14:17 +0200, Arno van Amersfoort wrote: Hello all, Currently we are looking at the possibility of moving from Courier-IMAP to Dovecot (the one that comes with Debian Lenny: version 1.0.15). I'm currently testing it on a non-production server and have a few questions: 1) Currently all our clients use Thunderbird as their mail client to read mail from our IMAP server. Thunderbird is configured with INBOX. as the IMAP server directory. As we certainly do NOT want to reconfigure over 150 desktops, we would like to know if it's possible to make Dovecot work with Thunderbird Configured this way - Simply make Dovecot act the same as Courier-IMAP. With the default configuration of Dovecot I can see the (IMAP) Inbox but not its subfolders when IMAP server directory is NOT empty. Is there a way to let Dovecot ignore this setting and/or make it compatible with Courier? Yes. Create the namespace as described in http://wiki.dovecot.org/Migration/Courier 2) About a year back we already test-drived Dovecot but we weren't able to get Delete as marked option to work in Thunderbird in combination with Expunge to trash. Any messages marked as deleted would simply be deleted permanently when Thunderbird was closed. This did work properly with Courier where any messages were expunged to Trash (as it should). Is this a known problem and has it been addressed yet? I know Courier has a non-standard feature that causes expunging messages to move them to Trash mailbox instead of really expunging. Dovecot doesn't support this feature and I'm not planning on implementing it. It should be possible to implement a plugin to do it though. But Thunderbird can be configured to handle deletion by copying it to Trash, which should do pretty much the same thing. Are your users not using this setting? -- Ing. A.C.J. van Amersfoort (Arno) Electronics ICT Engineer Leiden Institute of Physics (LION), Electronics Department (ELD) Huygens Laboratory (Room 1007), Leiden University Postal Address: P.O. Box 9504, 2300 RA Leiden Visit Address : Niels Bohrweg 2, 2333 CA Leiden The Netherlands Phone: +31-(0)71-527.1894 Fax : +31-(0)71-527.5819 E-mail : [EMAIL PROTECTED] Homepage : http://rocky.eld.leidenuniv.nl
[Dovecot] Dovecot 1.1.4 imap core
Hello! Core was generated by `/usr/libexec/dovecot/imap'. Program terminated with signal 11, Segmentation fault. #0 0x003ab2279f8c in strcasecmp () from /lib64/libc.so.6 (gdb) backtrace #0 0x003ab2279f8c in strcasecmp () from /lib64/libc.so.6 #1 0x0041c30e in command_unregister (name=0x4986aa LOGOUT) at commands.c:80 #2 0x0041c36d in command_unregister_array (cmdarr=0x498790, count=4818602) at commands.c:98 #3 0x0041c393 in commands_deinit () at commands.c:143 #4 0x004233f9 in main (argc=value optimized out, argv=0x0, envp=0x499d37) at main.c:259 With best regards, Anton Zakatov. E-mail: [EMAIL PROTECTED]
Re: [Dovecot] Quota Issues
Peter Fraser wrote: Hi All Is there a way to test to see if the dovecot quota settings are being applied? http://www.google.com/search?q=telnet+IMAP+QUOTA I'm doing this as part of troubleshooting. I have set up dovecot + quotas with squirrelmail and I am not seeing the quota graphs in squirrelmail but I am not getting any errors. Could someone please help me with this? THanks. -- Ken Anderson Pacific.Net
[Dovecot] Zlib plugin question
http://wiki.dovecot.org/Plugins/Zlib says pop3 and imap can use this plugin. Does deliver also use it? -- Ralf Hildebrandt ([EMAIL PROTECTED]) [EMAIL PROTECTED] Postfix - Einrichtung, Betrieb und Wartung Tel. +49 (0)30-450 570-155 http://www.arschkrebs.de I'm looking for a job T-Shirt I need to see - SARAH PALIN: IN ENGLAND WE SHOOT PIT BULLS
Re: [Dovecot] Zlib plugin question
Ralf Hildebrandt wrote: http://wiki.dovecot.org/Plugins/Zlib says pop3 and imap can use this plugin. Does deliver also use it? No, the zlib plugin is only for reading compressed messages/mailboxes. You have to compress them manually. -- calc Knghtbrd: irc doesn't compile c code very well ;) Eduardo M KALINOWSKI [EMAIL PROTECTED] http://move.to/hpkb
Re: [Dovecot] Dovecot 1.1.x or 1.2, which way to go for Kolab Server?
Hi Timo, thanks for the reply, Timo Sirainen [EMAIL PROTECTED] writes: On Tue, 2008-10-07 at 13:08 +0200, Sascha Wilde wrote: was written the other day we started to use Dovecot 1.2 for our Kolab with Dovecot project, but it turned out that there are quite a bunch of issues with 1.2 (which is ok, as it hasn't even been announced as beta till now). I'd like to hear these issues, since I'm not aware of any v1.2-specific bugs. There was the dict-server startup problem, which we reported and which should be fixed now (I still need to test your fix). Then there are some (undocumented?) changes in the dict api (and the changed dict backend configuration). And then there are some more dict relates problems/changes causing the metadata/annotations plugin to fail in certain situations -- Bernhard Herzog will report/discuss them in detail soon, in case we decide to use 1.2. So the stuff we stumbled upon was all dict related till now, but on the other hand we haven't done much with 1.2 besides trying to get our changes to work with it... How far from being production ready is 1.2 in your view? Depends on how fast people report bugs to me.. I've been using it for my mails without problems for weeks. And about 3 other people also reported in the last few days that they're running it for their small mail servers. This sounds promising. How hard would it be to get the shared folder/namespace stuff in 1.1.x? (or for that matter: who much harder than to do it in 1.2?) It requires some mail-storage API changes. I'm not sure if those would be easy to backport to v1.1. Ok, I'll report the results of our own evaluation, soon. cheers sascha -- Sascha Wilde OpenPGP key: 4BB86568 http://www.intevation.de/~wilde/ http://www.intevation.de/ Intevation GmbH, Neuer Graben 17, 49074 Osnabrück; AG Osnabrück, HR B 18998 Geschäftsführer: Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner pgpVE4b7b8iSQ.pgp Description: PGP signature
Re: [Dovecot] zlib plugin
On Tue, 2008-10-07 at 11:38 +0400, Andrey Panin wrote: On 279, 10 05, 2008 at 10:38:02PM +0300, Timo Sirainen wrote: On Sun, 2008-10-05 at 21:28 +0200, Luuk wrote: Last but not least, what gain will i have by using this plugin in combination with Maildir, or will it have more impact when mails are stored in mbox. I guess it depends on the size of your mails. With mboxes it can be used only with read-only archives, so it's not all that useful. With maildir it can be used transparently with read-write mailboxes. I've no idea what the performance difference or space improvements are. I guess that'll also depend on your system. I use zlib compressed maildirs on my primary server (12000+ users) and it achieves average compression ratio of 1.8, so if your system is io-bound you can spend some cpu cycles to significantly decrease disk load. But is that 1.8 in bytes or disk blocks? Or does it make much of a difference either way? Does 2x less space per message even matter with small messages since most disk I/O probably goes to seeking, so reading a single 4 kB message takes pretty much the same time as a 8 kB message? signature.asc Description: This is a digitally signed message part
Re: [Dovecot] Dovecot 1.1.4 imap core
On Oct 7, 2008, at 5:40 PM, Anton Zakatov wrote: Core was generated by `/usr/libexec/dovecot/imap'. Program terminated with signal 11, Segmentation fault. #0 0x003ab2279f8c in strcasecmp () from /lib64/libc.so.6 (gdb) backtrace #0 0x003ab2279f8c in strcasecmp () from /lib64/libc.so.6 #1 0x0041c30e in command_unregister (name=0x4986aa LOGOUT) at commands.c:80 Does this happen every time when logging out? What plugins do you have loaded? PGP.sig Description: This is a digitally signed message part
Re: [Dovecot] Quota Issues
On Oct 7, 2008, at 1:07 AM, Peter Fraser wrote: Is there a way to test to see if the dovecot quota settings are being applied? I'm doing this as part of troubleshooting. I have set up dovecot + quotas with squirrelmail and I am not seeing the quota graphs in squirrelmail but I am not getting any errors. Could someone please help me with this? Set mail_debug=yes and look at the logs. It should say what the configured quota limits are. PGP.sig Description: This is a digitally signed message part
Re: [Dovecot] Cyrus MailDir to Dovecot mbox
On Oct 7, 2008, at 6:04 PM, CJ Keist wrote: Anyone out there know of a tool that can convert a Cyrus MailDir format to Dovecot mbox? I have a user that I need to move over from a mail server running cyrus using MailDir format. At first I told him to setup second account with Thunderbird to our mail server and then use Thunderbird to move the messages over. But he has over 100K messages so not as easy to do. Is there a tool out there for doing this sort of conversion? I tried to simply cat all the messages into a single file, but just got a Not valid mbox format when I tried to read the mail folder. You could use either cyrus2dovecot or cyrus2courier tools to convert to Maildir format (http://wiki.dovecot.org/Migration/Cyrus). From there use some maildir to mbox conversion tool (e.g. Dovecot's convert- tool). PGP.sig Description: This is a digitally signed message part
Re: [Dovecot] Dovecot 1.1.x or 1.2, which way to go for Kolab Server?
On Tue, 2008-10-07 at 14:25 +0200, Sascha Wilde wrote: Hi Timo, thanks for the reply, Timo Sirainen [EMAIL PROTECTED] writes: On Tue, 2008-10-07 at 13:08 +0200, Sascha Wilde wrote: was written the other day we started to use Dovecot 1.2 for our Kolab with Dovecot project, but it turned out that there are quite a bunch of issues with 1.2 (which is ok, as it hasn't even been announced as beta till now). I'd like to hear these issues, since I'm not aware of any v1.2-specific bugs. There was the dict-server startup problem, which we reported and which should be fixed now (I still need to test your fix). Then there are some (undocumented?) changes in the dict api (and the changed dict backend configuration). And then there are some more dict relates problems/changes causing the metadata/annotations plugin to fail in certain situations -- Bernhard Herzog will report/discuss them in detail soon, in case we decide to use 1.2. So the stuff we stumbled upon was all dict related till now, but on the other hand we haven't done much with 1.2 besides trying to get our changes to work with it... OK. I think most of the issues you'll find in 1.2 are things like these. Either something works or it doesn't (mainly because I'm so lazy at testing changes myself), but there shouldn't be any stability-related problems. And these doesn't work bugs can be fixed quickly when they're reported. signature.asc Description: This is a digitally signed message part
Re: [Dovecot] Manual verses Wiki
On Oct 7, 2008, at 12:40 AM, Roderick A. Anderson wrote: I know I'm looking at the answer but probably not seeing it on the Wiki? Is there a manual for Dovecot? Wiki is all there is. Or ... where do I find all the options for the userdb and passdb options? Different userdbs and passdbs have different options. http://wiki.dovecot.org/PasswordDatabase http://wiki.dovecot.org/UserDatabase PGP.sig Description: This is a digitally signed message part
Re: [Dovecot] Dovecot 1.1.x or 1.2, which way to go for Kolab Server?
On Tue, 2008-10-07 at 13:08 +0200, Sascha Wilde wrote: was written the other day we started to use Dovecot 1.2 for our Kolab with Dovecot project, but it turned out that there are quite a bunch of issues with 1.2 (which is ok, as it hasn't even been announced as beta till now). I'd like to hear these issues, since I'm not aware of any v1.2-specific bugs. How far from being production ready is 1.2 in your view? Depends on how fast people report bugs to me.. I've been using it for my mails without problems for weeks. And about 3 other people also reported in the last few days that they're running it for their small mail servers. How hard would it be to get the shared folder/namespace stuff in 1.1.x? (or for that matter: who much harder than to do it in 1.2?) It requires some mail-storage API changes. I'm not sure if those would be easy to backport to v1.1. signature.asc Description: This is a digitally signed message part
[Dovecot] Transition from Courier-IMAP
Hello all, Currently we are looking at the possibility of moving from Courier-IMAP to Dovecot (the one that comes with Debian Lenny: version 1.0.15). I'm currently testing it on a non-production server and have a few questions: 1) Currently all our clients use Thunderbird as their mail client to read mail from our IMAP server. Thunderbird is configured with INBOX. as the IMAP server directory. As we certainly do NOT want to reconfigure over 150 desktops, we would like to know if it's possible to make Dovecot work with Thunderbird Configured this way - Simply make Dovecot act the same as Courier-IMAP. With the default configuration of Dovecot I can see the (IMAP) Inbox but not its subfolders when IMAP server directory is NOT empty. Is there a way to let Dovecot ignore this setting and/or make it compatible with Courier? 2) About a year back we already test-drived Dovecot but we weren't able to get Delete as marked option to work in Thunderbird in combination with Expunge to trash. Any messages marked as deleted would simply be deleted permanently when Thunderbird was closed. This did work properly with Courier where any messages were expunged to Trash (as it should). Is this a known problem and has it been addressed yet? Basically both questions can be brought together as How can we make Dovecot as compatible as possible with Courier-IMAP? Thanks, -- Ing. A.C.J. van Amersfoort (Arno) Electronics ICT Engineer Leiden Institute of Physics (LION), Electronics Department (ELD) Huygens Laboratory (Room 1007), Leiden University Postal Address: P.O. Box 9504, 2300 RA Leiden Visit Address : Niels Bohrweg 2, 2333 CA Leiden The Netherlands Phone: +31-(0)71-527.1894 Fax : +31-(0)71-527.5819 E-mail : [EMAIL PROTECTED] Homepage : http://rocky.eld.leidenuniv.nl
Re: [Dovecot] Improvements to Authentication failed error
On Oct 6, 2008, at 3:47 AM, Seth Mattinen wrote: Timo Sirainen wrote: Probably one of the most commonly asked question is Why does Dovecot just say authentication failed? It would be nice to be able to get rid of these questions by having Dovecot itself point out the http://wiki.dovecot.org/WhyDoesItNotWork link. But how to do this? There are two groups of people here: .. There's no point in trying to program in fancy conditions for errors like this. It's just silly. Even if you make these changes I'll bet you it doesn't make a difference. The same group you're trying to help will see the long, wordy error message, glaze over it, and go straight to my password doesn't work and I know it's right. It doesn't help for everyone, but I think it could reduce the number of these questions. I think I'm going to do this: If /var/lib/dovecot/auth-success file doesn't exist at startup and protocols != none, print at startup: If you have trouble with authentication failures, enable auth_debug setting. http://wiki.dovecot.org/WhyDoesItNotWork If the process printed that and a successful login comes in (master process sees it easily internally), create the auth-success file. This should be only about 10-20 extra lines of code, doesn't change behavior for end users and shouldn't annoy sysadmins since it stops after the first successful authentication. PGP.sig Description: This is a digitally signed message part
Re: [Dovecot] Manual verses Wiki
Timo Sirainen wrote: On Oct 7, 2008, at 12:40 AM, Roderick A. Anderson wrote: I know I'm looking at the answer but probably not seeing it on the Wiki? Is there a manual for Dovecot? Wiki is all there is. Or ... where do I find all the options for the userdb and passdb options? Different userdbs and passdbs have different options. http://wiki.dovecot.org/PasswordDatabase http://wiki.dovecot.org/UserDatabase Thanks Timo. I discovered these after sending my message. Should have searched more before letting my frustration level get the better of me. :-( Rod --
Re: [Dovecot] IMAP and SMTP Authentication
On Oct 7, 2008, at 6:33 PM, Roderick A. Anderson wrote: Oct 7 08:17:20 mx0 dovecot: auth(default): passwd-file([EMAIL PROTECTED] ,66.193.34.88): unknown user It's looking up [EMAIL PROTECTED] from the file. info:{PLAIN}crap:5000:5000::/var/mail/vhosts/aesoft-sbcs.com/info But you have only info there. So either change it here, or: passdb: driver: passwd-file args: /var/mail/vhosts/%d/passwd From http://wiki.dovecot.org/AuthDatabase/PasswdFile: username_format=s: Look up usernames using this format instead of the full username (%u). If you want to enable [EMAIL PROTECTED] logins but have only user in the file, set this to %n. So use: passdb passwd-file { args = username_format=%n /var/mail/vhosts/%d/passwd } PGP.sig Description: This is a digitally signed message part
Re: [Dovecot] IMAP and SMTP Authentication
Roderick A. Anderson wrote: I'm a bit further along but haven't figured out why Authentication is still failing. I've tried a telnet to port 143 and openssl connection to 993. The command I issued, per the debugging page on the wiki, is: a login [EMAIL PROTECTED] crap Here is a snapshot from my logs (yup second try and blank lines to make it easier for me to read). Oct 7 08:17:20 mx0 dovecot: auth(default): client in: AUTH 2 PLAIN service=imap secured lip=216.64.180.226 rip=66.193.34.88 lport=993 rport=65026 resp=AGluZm9AYWVzb2Z0LXNiY3MuY29tAGNyYXA= Oct 7 08:17:20 mx0 dovecot: auth(default): passwd-file /var/mail/vhosts/aesoft-sbcs.com/passwd: Read 3 users Oct 7 08:17:20 mx0 dovecot: auth(default): passwd-file([EMAIL PROTECTED],66.193.34.88): lookup: [EMAIL PROTECTED] file=/var/mail/vhosts/aesoft-sbcs.com/passwd Oct 7 08:17:20 mx0 dovecot: auth(default): passwd-file([EMAIL PROTECTED],66.193.34.88): unknown user Oct 7 08:17:22 mx0 dovecot: auth(default): client out: FAIL2 [EMAIL PROTECTED] And here is the relevant line from /var/mail/vhosts/aesoft-sbcs.com/passwd info:{PLAIN}crap:5000:5000::/var/mail/vhosts/aesoft-sbcs.com/info The user is [EMAIL PROTECTED], not info. ~Seth
Re: [Dovecot] Zlib plugin question
* Eduardo M KALINOWSKI [EMAIL PROTECTED]: Ralf Hildebrandt wrote: http://wiki.dovecot.org/Plugins/Zlib says pop3 and imap can use this plugin. Does deliver also use it? No, the zlib plugin is only for reading compressed messages/mailboxes. You have to compress them manually. awww, too bad. -- Ralf Hildebrandt ([EMAIL PROTECTED]) [EMAIL PROTECTED] Postfix - Einrichtung, Betrieb und Wartung Tel. +49 (0)30-450 570-155 http://www.arschkrebs.de I'm looking for a job Applying computer technology is simply finding the right wrench to pound in the correct screw.
Re: [Dovecot] Unable telnet port 143
On Oct 6, 2008, at 8:03 AM, satimis wrote: 1 NO Authentication failed. Set auth_debug=yes and look at the logs again. # cat /etc/dovecot/dovecot.conf[code] dovecot -n output is preferred. PGP.sig Description: This is a digitally signed message part
Re: [Dovecot] Maildir++ problem
On Mon, 2008-10-06 at 17:24 +0200, Claudio Prono wrote: Hi to all, I am semi-new to the dovecot system, but i like it very much for the versatility of all the system. I have a problem: i am migrating my servers from postfix with vda patch + courier imap to dovecot. All works fine, except for one thing: i use Maildir++ format, but i don't know how to make the file maildirsize into the home of the users. This file is needed by me becouse i have a script, running every day, checking the quota status and sending me a mail of the space occuped by every mailbox on my mailserver. The format of the maildirsize file is like this: Enable Maildir++ quota in Dovecot. http://wiki.dovecot.org/Quota signature.asc Description: This is a digitally signed message part
Re: [Dovecot] Maildir++ problem
I have already done it, I use dovecot 1.1.3 on OpenSuSE 11.0. In dovecot.conf there is: mail_plugins = quota imap_quota mail_plugin_dir = /usr/lib/dovecot/modules/imap mail_plugins = quota mail_plugin_dir = /usr/lib/dovecot/modules/pop3 mail_plugins = quota mail_plugin_dir = /usr/lib/dovecot/modules/lda quota = maildir But no maildirsize file was generated, and if is already present, was not updated Any idea? Tnx, Claudio Prono. Timo Sirainen ha scritto: On Mon, 2008-10-06 at 17:24 +0200, Claudio Prono wrote: Hi to all, I am semi-new to the dovecot system, but i like it very much for the versatility of all the system. I have a problem: i am migrating my servers from postfix with vda patch + courier imap to dovecot. All works fine, except for one thing: i use Maildir++ format, but i don't know how to make the file maildirsize into the home of the users. This file is needed by me becouse i have a script, running every day, checking the quota status and sending me a mail of the space occuped by every mailbox on my mailserver. The format of the maildirsize file is like this: Enable Maildir++ quota in Dovecot. http://wiki.dovecot.org/Quota -- Claudio Prono Systems Development @ Atpss.net Srl, Divisione Implementazione Sistemi Via San Bernardino, 17 - 10137 Torino (TO) - IT Tel +39-011.32.72.100 Fax +39-011.32.46.497 PGP Fingerprint: 75C2 4049 E23D 2FBF A65F 40DB EA5C 11AC C2B0 3647 Disclaimer: http://atpss.net/disclaimer
Re: [Dovecot] IMAP and SMTP Authentication
Timo Sirainen wrote: On Oct 7, 2008, at 6:33 PM, Roderick A. Anderson wrote: Oct 7 08:17:20 mx0 dovecot: auth(default): passwd-file([EMAIL PROTECTED],66.193.34.88): unknown user It's looking up [EMAIL PROTECTED] from the file. info:{PLAIN}crap:5000:5000::/var/mail/vhosts/aesoft-sbcs.com/info But you have only info there. So either change it here, or: passdb: driver: passwd-file args: /var/mail/vhosts/%d/passwd From http://wiki.dovecot.org/AuthDatabase/PasswdFile: username_format=s: Look up usernames using this format instead of the full username (%u). If you want to enable [EMAIL PROTECTED] logins but have only user in the file, set this to %n. So use: passdb passwd-file { args = username_format=%n /var/mail/vhosts/%d/passwd } Well these did seem to be set correctly (I've been experimenting with different settings). Here is a portion of dovecot -n output passdb: driver: passwd-file args: /var/mail/vhosts/%d/passwd userdb: driver: passwd-file args: uid=vmail gid=vmail username_format=%n /var/mail/vhosts/%d/passwd Where does userdb and passdb each come into play? Should their settings be the same since I'm using one file? TIA, Rod --
Re: [Dovecot] IMAP and SMTP Authentication
On Oct 7, 2008, at 7:16 PM, Roderick A. Anderson wrote: So use: passdb passwd-file { args = username_format=%n /var/mail/vhosts/%d/passwd } Well these did seem to be set correctly (I've been experimenting with different settings). Here is a portion of dovecot -n output passdb: driver: passwd-file args: /var/mail/vhosts/%d/passwd userdb: driver: passwd-file args: uid=vmail gid=vmail username_format=%n /var/mail/vhosts/%d/ passwd passwd-file has no such settings as uid and gid. Where does userdb and passdb each come into play? Password is looked up from the passdb. After user is successfully authenticated it looks up home directory, uid and gid from userdb. Should their settings be the same since I'm using one file? Yes. PGP.sig Description: This is a digitally signed message part
Re: [Dovecot] Maildir++ problem
On Oct 7, 2008, at 7:11 PM, Claudio Prono wrote: I have already done it, I use dovecot 1.1.3 on OpenSuSE 11.0. In dovecot.conf there is: mail_plugins = quota imap_quota mail_plugin_dir = /usr/lib/dovecot/modules/imap mail_plugins = quota mail_plugin_dir = /usr/lib/dovecot/modules/pop3 mail_plugins = quota mail_plugin_dir = /usr/lib/dovecot/modules/lda quota = maildir Looks ok. But no maildirsize file was generated, It's not generated if you haven't told Dovecot what the quota limits are. In that case it uses the quota limits from maildirsize file, and if it's not present then Dovecot assumes you don't want any quota (or quota tracking). If you don't want quota limits but only tracking, you could upgrade to 1.1.4 and set: quota_rule = *: and if is already present, was not updated It should have. If the above doesn't help, set mail_debug=yes and show what the logs say. PGP.sig Description: This is a digitally signed message part
Re: [Dovecot] Dovecot 1.1.x or 1.2, which way to go for Kolab Server?
Timo Sirainen [EMAIL PROTECTED] writes: On Tue, 2008-10-07 at 14:25 +0200, Sascha Wilde wrote: There was the dict-server startup problem, which we reported and which should be fixed now (I still need to test your fix). Then there are some (undocumented?) changes in the dict api (and the changed dict backend configuration). [...] OK. I think most of the issues you'll find in 1.2 are things like these. Either something works or it doesn't (mainly because I'm so lazy at testing changes myself), but there shouldn't be any stability-related problems. And these doesn't work bugs can be fixed quickly when they're reported. This sounds very promising and fits with our decision to recommend our customer to build upon 1.2. cheers sascha -- Sascha Wilde OpenPGP key: 4BB86568 http://www.intevation.de/~wilde/ http://www.intevation.de/ Intevation GmbH, Neuer Graben 17, 49074 Osnabrück; AG Osnabrück, HR B 18998 Geschäftsführer: Frank Koormann, Bernhard Reiter, Dr. Jan-Oliver Wagner pgpHKx9H0sZNT.pgp Description: PGP signature
Re: [Dovecot] IMAP and SMTP Authentication
Timo Sirainen wrote: On Oct 7, 2008, at 7:16 PM, Roderick A. Anderson wrote: So use: passdb passwd-file { args = username_format=%n /var/mail/vhosts/%d/passwd } Well these did seem to be set correctly (I've been experimenting with different settings). Here is a portion of dovecot -n output passdb: driver: passwd-file args: /var/mail/vhosts/%d/passwd userdb: driver: passwd-file args: uid=vmail gid=vmail username_format=%n /var/mail/vhosts/%d/passwd passwd-file has no such settings as uid and gid. This appears to be the problem. So much for copy and paste then modify from a bunch of different examples! 8-| Now I can log into Dovecot (IMAP) and send mail to the accounts (Postfix/Dovecot AUTH). Thanks Timo. Rod -- Where does userdb and passdb each come into play? Password is looked up from the passdb. After user is successfully authenticated it looks up home directory, uid and gid from userdb. Should their settings be the same since I'm using one file? Yes.
[Dovecot] sieve multi-line parser bug
Dear sirs Thank you and congratulations for creating Dovecot. When a message header is split along several lines, it seems only the first one is parsed by sieve. The following header: From: =?iso-8859-1?Q?Cotiatododia=20-=20O=20Jornal=20de=20Not=EDcias=20a=20Se?= =?iso-8859-1?Q?rvi=E7o=20de=20Cotia=20e=20Regi=E3o=2E?= [EMAIL PROTECTED] was not discarded by the following rule (when it should have been due to cotiatododia): if anyof (header :contains [From, Reply-To, To, Cc] [cotiatododia, ganhedinheiro.com, 1000deaths.com, ione.correia, nsbezerra, estudenoexterior.com, [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED], [EMAIL PROTECTED]], header :contains Subject E ai!, Essa voce Tem que Ver!) { discard; } Thank you, Dennis
Re: [Dovecot] sieve multi-line parser bug
On Tue, 2008-10-07 at 14:38 -0300, info wrote: When a message header is split along several lines, it seems only the first one is parsed by sieve. The following header: From: =?iso-8859-1?Q?Cotiatododia=20-=20O=20Jornal=20de=20Not=EDcias=20a=20Se?= =?iso-8859-1?Q?rvi=E7o=20de=20Cotia=20e=20Regi=E3o=2E?= [EMAIL PROTECTED] Is that really correct? Was there no space or tab before the =?iso.. ? Or was the line just accidentally split when sending the mail? If the above really is correct, then the header is broken and Dovecot is doing the right thing.. signature.asc Description: This is a digitally signed message part
[Dovecot] Virtual domain aliases
As I said in a previous reply the server is going great. In fact I can even send mail via it. (On the really old server I'm moving from I couldn't get authentication for outbound to work.) I now have a couple of small issues to deal with before moving completely off the old system. Virtual domains aliases? My reading seems to indicate that Postfix only handles aliases in one place/file. Ie., I can't use a /var/mail/vhosts/domain.tld/aliases. This is probably a Postfix question but I'm asking anyway. I am pretty sure there are some Postfix people-of-significance hanging out here. :-) Thanks, Rod --
Re: [Dovecot] Virtual domain aliases
Roderick A. Anderson wrote: As I said in a previous reply the server is going great. In fact I can even send mail via it. (On the really old server I'm moving from I couldn't get authentication for outbound to work.) I now have a couple of small issues to deal with before moving completely off the old system. Virtual domains aliases? My reading seems to indicate that Postfix only handles aliases in one place/file. Ie., I can't use a /var/mail/vhosts/domain.tld/aliases. This is probably a Postfix question but I'm asking anyway. I am pretty sure there are some Postfix people-of-significance hanging out here. :-) You can configure multiple virtual alias tables in Postfix: virtual_alias_maps = hash:/etc/postfix/virtual, hash:/etc/postfix/virtual2, hash:/etc/postfix/virtual3 Obviously change the map type to suit your environment. ~Seth
[Dovecot] 1.1.4 and trouble over NFS
Hello, I have some trouble with the current setup (it's a testing environment): 2 server with Dovecot 1.1.4 from source (OS Debian testing 2.6.26) (name: exim and exim2) 1 NFS server (OS Debian testing 2.6.26) I use NFS v.4, indexes shared over NFS. The relavant part of Dovecot configuration: dotlock_use_excl = yes mail_nfs_storage = yes mail_nfs_index = yes mmap_disable = yes lock_method = dotlock Maildir format. /etc/exports on NFS server: /mnt 192.168.0.0/24(rw,sync,no_root_squash,no_subtree_check,fsid=0) /mnt/vexim 192.168.0.0/24(rw,sync,no_root_squash,no_subtree_check) /etc/fstab on the clients: 192.168.0.71:/vexim /mnt/nfs1 nfs4 rw 0 0 When I access a mailbox with 2 different clients (for example Outlook Express that uses exim and Thunderbird that uses exim2) and in the same time some message is delivered to the mailbox (the smtp is served by Exim 4.69) Dovecot has some trouble as you can see: *** Log from machine exim Oct 7 20:00:20 exim dovecot: IMAP([EMAIL PROTECTED]): /mnt/nfs1/minnie.tld/postmaster/Maildir/dovecot-uidlist: file size changed unexpectedly after write Oct 7 20:00:20 exim dovecot: IMAP([EMAIL PROTECTED]): Broken file /mnt/nfs1/minnie.tld/postmaster/Maildir/dovecot-uidlist line 3: Invalid data: Oct 7 20:00:21 exim dovecot: IMAP([EMAIL PROTECTED]): /mnt/nfs1/minnie.tld/postmaster/Maildir/dovecot-uidlist: Duplicate file entry at line 6: 1223402420.H172077P24365.exim.bnscr.it:2, (uid 16919 - 16922) Oct 7 20:00:23 exim dovecot: IMAP([EMAIL PROTECTED]): Log synchronization error at seq=3,offset=10612 for /mnt/nfs1/minnie.tld/postmaster/Maildir/dovecot.index: Append with UID 16925, but next_uid = 16926 Oct 7 20:00:23 exim dovecot: IMAP([EMAIL PROTECTED]): Log synchronization error at seq=3,offset=10724 for /mnt/nfs1/minnie.tld/postmaster/Maildir/dovecot.index: Extension record update for invalid uid=16926 Oct 7 20:00:23 exim dovecot: IMAP([EMAIL PROTECTED]): Synchronization corrupted index header: /mnt/nfs1/minnie.tld/postmaster/Maildir/dovecot.index Oct 7 20:00:23 exim dovecot: IMAP([EMAIL PROTECTED]): fscking index file /mnt/nfs1/minnie.tld/postmaster/Maildir/dovecot.index Oct 7 20:00:23 exim dovecot: IMAP([EMAIL PROTECTED]): Fixed index file /mnt/nfs1/minnie.tld/postmaster/Maildir/dovecot.index: first_recent_uid 16927 - 16926 Oct 7 20:00:24 exim dovecot: IMAP([EMAIL PROTECTED]): Log synchronization error at seq=3,offset=11140 for /mnt/nfs1/minnie.tld/postmaster/Maildir/dovecot.index: Extension record update for invalid uid=16928 Oct 7 20:00:24 exim dovecot: IMAP([EMAIL PROTECTED]): fscking index file /mnt/nfs1/minnie.tld/postmaster/Maildir/dovecot.index Oct 7 20:01:00 exim dovecot: imap-login: Login: user=[EMAIL PROTECTED], method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured Oct 7 20:02:00 exim dovecot: imap-login: Login: user=[EMAIL PROTECTED], method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured Oct 7 20:02:26 exim dovecot: IMAP([EMAIL PROTECTED]): Log synchronization error at seq=3,offset=11628 for /mnt/nfs1/minnie.tld/postmaster/Maildir/dovecot.index: Append with UID 16929, but next_uid = 16930 Oct 7 20:02:26 exim dovecot: IMAP([EMAIL PROTECTED]): Log synchronization error at seq=3,offset=11756 for /mnt/nfs1/minnie.tld/postmaster/Maildir/dovecot.index: Extension record update for invalid uid=16930 Oct 7 20:02:26 exim dovecot: IMAP([EMAIL PROTECTED]): fscking index file /mnt/nfs1/minnie.tld/postmaster/Maildir/dovecot.index Oct 7 20:15:23 exim dovecot: Panic: IMAP([EMAIL PROTECTED]): Message count decreased Oct 7 20:15:23 exim dovecot: IMAP([EMAIL PROTECTED]): Raw backtrace: imap [0x80d6781] - imap [0x80d6802] - imap [0x80d6199] - imap [0x8069711] - imap [0x805e98b] - imap [0x805ea40] - imap [0x809c9af] - imap(io_loop_handle_timeouts+0xe9) [0x80ddb19] - imap(io_loop_handler_run+0x82) [0x80de3d2] - imap(io_loop_run+0x20) [0x80dd8c0] - imap(main+0x46a) [0x806b5aa] - /lib/i686/cmov/libc.so.6(__libc_start_main+0xe5) [0xb7df2455] - imap [0x805c9f1] *** Log from machine exim Oct 7 20:00:20 exim2 dovecot: IMAP([EMAIL PROTECTED]): /mnt/nfs1/minnie.tld/postmaster/Maildir/dovecot-uidlist: Duplicate file entry at line 5: 1223402419.H453623P30627.exim2.bnscr.it:2, (uid 16919 - 16920) Oct 7 20:00:22 exim2 dovecot: IMAP([EMAIL PROTECTED]): Log synchronization error at seq=3,offset=10496 for /mnt/nfs1/minnie.tld/postmaster/Maildir/dovecot.index: Extension record update for invalid uid=16925 Oct 7 20:00:22 exim2 dovecot: IMAP([EMAIL PROTECTED]): fscking index file /mnt/nfs1/minnie.tld/postmaster/Maildir/dovecot.index Oct 7 20:00:25 exim2 dovecot: IMAP([EMAIL PROTECTED]): Log synchronization error at seq=3,offset=11324 for /mnt/nfs1/minnie.tld/postmaster/Maildir/dovecot.index: Append with UID 16928, but next_uid = 16929 Oct 7 20:00:25 exim2 dovecot: IMAP([EMAIL PROTECTED]): Log synchronization error at seq=3,offset=11528 for /mnt/nfs1/minnie.tld/postmaster/Maildir/dovecot.index: Extension record update
Re: [Dovecot] 1.1.4 and trouble over NFS
On Oct 7, 2008, at 9:57 PM, Igor Colombi wrote: Hello, I have some trouble with the current setup (it's a testing environment): 2 server with Dovecot 1.1.4 from source (OS Debian testing 2.6.26) (name: exim and exim2) 1 NFS server (OS Debian testing 2.6.26) I use NFS v.4, indexes shared over NFS. The relavant part of Dovecot configuration: .. Oct 7 20:00:20 exim dovecot: IMAP([EMAIL PROTECTED]): /mnt/nfs1/ minnie.tld/postmaster/Maildir/dovecot-uidlist: file size changed unexpectedly after write .. I know that with Dovecot 1.1 the use on multiple computer when users are connected randomly was discouraged, but with version 1.1.x this setup is safe. It's safe as long as Dovecot can reliably flush all NFS caches. But this clearly isn't happening. I can reproduce this kind of problem easly: 2 clients on the same mailbox connected to two different imap server and a simple bash script that send 2 email every 1 second to the mailbox. Or probably also running imaptest (http://imapwiki.org/ImapTest) on both machines? Could you run http://www.dovecot.org/tools/nfstest.c and tell me what it outputs? PGP.sig Description: This is a digitally signed message part
Re: [Dovecot] Virtual domain aliases
On 10/7/2008, Roderick A. Anderson ([EMAIL PROTECTED]) wrote: Virtual domains aliases? My reading seems to indicate that Postfix only handles aliases in one place/file. Ie., I can't use a /var/mail/vhosts/domain.tld/aliases. Do you want actual aliases, or just virtual domains/mailboxes? Seth already answered for aliases, but for just plain virtual domains/mailboxes, you want to use virtual_domain_maps and virtual_mailbox_maps. -- Best regards, Charles
Re: [Dovecot] Virtual domain aliases
Charles Marcus wrote: On 10/7/2008, Roderick A. Anderson ([EMAIL PROTECTED]) wrote: Virtual domains aliases? My reading seems to indicate that Postfix only handles aliases in one place/file. Ie., I can't use a /var/mail/vhosts/domain.tld/aliases. Do you want actual aliases, or just virtual domains/mailboxes? I need a couple but for one domain I'm moving plus I figured I need an abuse and postmaster for the others. Seth already answered for aliases, but for just plain virtual domains/mailboxes, you want to use virtual_domain_maps and virtual_mailbox_maps. I as hoping for a method based on the incoming domain. Something like hash:/var/mail/vhosts/%d/aliases in Dovecot. Damn! I just removed everything from the virtual_mailbox_maps file and now have no delivery of mail. So it looks like I have to have an entry for every user in every domain in the file/map (vmailbox/vmailbox.db). So going to a database (SQL) might be coming sooner than I planned. Rod --
Re: [Dovecot] 1.1.4 and trouble over NFS
Timo Sirainen wrote: On Oct 7, 2008, at 9:57 PM, Igor Colombi wrote: Hello, I have some trouble with the current setup (it's a testing environment): 2 server with Dovecot 1.1.4 from source (OS Debian testing 2.6.26) (name: exim and exim2) 1 NFS server (OS Debian testing 2.6.26) I use NFS v.4, indexes shared over NFS. The relavant part of Dovecot configuration: Or probably also running imaptest (http://imapwiki.org/ImapTest) on both machines? Could you run http://www.dovecot.org/tools/nfstest.c and tell me what it outputs? Hello, this is the output of nftest on exim2 (client) vs exim (the other client) ./nfstest 192.168.0.70 50 /mnt/nfs1/pippo/pluto Connected: Acting as test client ESTALE errors don't happen O_EXCL appears to be working, but this could be just faked by NFS client timestamps resolution: seconds Testing file attribute cache.. Attr cache flush open+close: failed Attr cache flush close+open: OK Attr cache flush fchown(-1, -1): failed Attr cache flush fchown(uid, -1): OK Attr cache flush fchmod(mode): OK Attr cache flush chown(-1, -1): failed Attr cache flush chown(uid, -1): OK Attr cache flush chmod(mode): OK Attr cache flush rmdir(): failed Attr cache flush rmdir(parent dir): failed Attr cache flush dup+close: failed Attr cache flush fcntl(shared): OK Attr cache flush fcntl(exclusive): OK Attr cache flush flock(shared): OK Attr cache flush flock(exclusive): OK Attr cache flush fsync(): failed Attr cache flush fcntl(O_SYNC): failed Attr cache flush O_DIRECT: failed Testing data cache.. Data cache flush no caching: failed Data cache flush open+close: failed Data cache flush close+open: failed Data cache flush fchown(-1, -1): failed Data cache flush fchown(uid, -1): failed Data cache flush fchmod(mode): failed Data cache flush chown(-1, -1): failed Data cache flush chown(uid, -1): failed Data cache flush chmod(mode): failed Data cache flush rmdir(): failed Data cache flush rmdir(parent dir): failed Data cache flush dup+close: failed Data cache flush fcntl(shared): OK Data cache flush fcntl(exclusive): OK Data cache flush flock(shared): OK Data cache flush flock(exclusive): OK Data cache flush fsync(): failed Data cache flush fcntl(O_SYNC): failed Data cache flush O_DIRECT: OK Testing write flushing.. Write flush no caching: failed Write flush open+close: OK Write flush close+open: OK Write flush fchown(-1, -1): failed Write flush fchown(uid, -1): OK Write flush fchmod(mode): OK Write flush chown(-1, -1): failed Write flush chown(uid, -1): OK Write flush chmod(mode): OK Write flush rmdir(): failed Write flush rmdir(parent dir): failed Write flush dup+close: OK Write flush fcntl(shared): OK Write flush fcntl(exclusive): OK Write flush flock(shared): OK Write flush flock(exclusive): OK Write flush fsync(): OK Write flush fcntl(O_SYNC): failed Write flush O_DIRECT: OK Testing partial writing.. OK Testing file handle cache.. File handle cache flush no caching: failed File handle cache flush open+close: failed File handle cache flush close+open: failed File handle cache flush fchown(-1, -1): failed File handle cache flush fchown(uid, -1): failed File handle cache flush fchmod(mode): failed File handle cache flush chown(-1, -1): failed File handle cache flush chown(uid, -1): failed File handle cache flush chmod(mode): failed File handle cache flush rmdir(): failed File handle cache flush rmdir(parent dir): OK File handle cache flush dup+close: failed File handle cache flush fcntl(shared): failed fcntl(setlk, write) failed: Bad file descriptor File handle cache flush fcntl(exclusive): failed File handle cache flush flock(shared): failed File handle cache flush flock(exclusive): failed File handle cache flush fsync(): failed File handle cache flush fcntl(O_SYNC): failed fcntl(/mnt/nfs1/pippo, O_DIRECT) failed: Invalid argument File handle cache flush O_DIRECT: failed Testing negative file handle cache.. Negative file handle cache flush no caching: failed Negative file handle cache flush open+close: failed Negative file handle cache flush close+open: failed Negative file handle cache flush fchown(-1, -1): failed Negative file handle cache flush fchown(uid, -1): failed Negative file handle cache flush fchmod(mode): failed Negative file handle cache flush chown(-1, -1): failed Negative file handle cache flush chown(uid, -1): failed Negative file handle cache flush chmod(mode): failed rmdir(/mnt/nfs1/pippo/pluto) failed: No such file or directory rmdir(/mnt/nfs1/pippo/pluto) failed: No such file or directory Negative file handle cache flush rmdir(): failed Negative file handle cache flush rmdir(parent dir): OK Negative file handle cache flush dup+close: failed Negative file handle cache flush fcntl(shared): failed fcntl(setlk, write) failed: Bad file descriptor Negative file handle cache flush fcntl(exclusive): failed Negative file handle cache flush flock(shared): failed Negative file handle cache flush flock(exclusive): failed Negative file handle cache flush fsync(): failed
Re: [Dovecot] Virtual domain aliases
On 10/7/2008, Roderick A. Anderson ([EMAIL PROTECTED]) wrote: Damn! I just removed everything from the virtual_mailbox_maps file and now have no delivery of mail. So it looks like I have to have an entry for every user in every domain in the file/map (vmailbox/vmailbox.db). So going to a database (SQL) might be coming sooner than I planned. Since you're using postfix, I highly recommend postfixadmin... http://sourceforge.net/projects/postfixadmin/ -- Best regards, Charles
Re: [Dovecot] Virtual domain aliases
Charles Marcus wrote: On 10/7/2008, Roderick A. Anderson ([EMAIL PROTECTED]) wrote: Damn! I just removed everything from the virtual_mailbox_maps file and now have no delivery of mail. So it looks like I have to have an entry for every user in every domain in the file/map (vmailbox/vmailbox.db). So going to a database (SQL) might be coming sooner than I planned. Since you're using postfix, I highly recommend postfixadmin... http://sourceforge.net/projects/postfixadmin/ Thanks I'll look at it. Rod --
Re: [Dovecot] Cyrus MailDir to Dovecot mbox
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Timo, Thanks. The cyrus2dovecot looks to have worked. So if I understand the process I now just move the MailDir folder that was created to the users home directory on our mail server. I will try the dovecot convert plugin. Just make sure I'm doing this correct in the config file: mail_location = mbox:~/:INBOX=/userM/mail/%u protocol imap { mail_plugins = convert } plugin { convert_mail = Maildir:~/Maildir:INBOX=/userM/mail/%u } Is this correct? The example on the website only shows how to convert from mbox to MailDir. Timo Sirainen wrote: On Oct 7, 2008, at 6:04 PM, CJ Keist wrote: Anyone out there know of a tool that can convert a Cyrus MailDir format to Dovecot mbox? I have a user that I need to move over from a mail server running cyrus using MailDir format. At first I told him to setup second account with Thunderbird to our mail server and then use Thunderbird to move the messages over. But he has over 100K messages so not as easy to do. Is there a tool out there for doing this sort of conversion? I tried to simply cat all the messages into a single file, but just got a Not valid mbox format when I tried to read the mail folder. You could use either cyrus2dovecot or cyrus2courier tools to convert to Maildir format (http://wiki.dovecot.org/Migration/Cyrus). From there use some maildir to mbox conversion tool (e.g. Dovecot's convert-tool). -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.5 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFI685lA29OFr7C6jcRAj5TAJ4pFrKhGVhLA/87U31oiEMNWW3jSQCfVfGM JhEJPPZTdgwpX/0QzpyOZug= =VpaM -END PGP SIGNATURE-
Re: [Dovecot] zlib plugin
Timo Sirainen wrote: On Tue, 2008-10-07 at 11:38 +0400, Andrey Panin wrote: On 279, 10 05, 2008 at 10:38:02PM +0300, Timo Sirainen wrote: On Sun, 2008-10-05 at 21:28 +0200, Luuk wrote: Last but not least, what gain will i have by using this plugin in combination with Maildir, or will it have more impact when mails are stored in mbox. I guess it depends on the size of your mails. With mboxes it can be used only with read-only archives, so it's not all that useful. With maildir it can be used transparently with read-write mailboxes. I've no idea what the performance difference or space improvements are. I guess that'll also depend on your system. I use zlib compressed maildirs on my primary server (12000+ users) and it achieves average compression ratio of 1.8, so if your system is io-bound you can spend some cpu cycles to significantly decrease disk load. But is that 1.8 in bytes or disk blocks? Or does it make much of a difference either way? Does 2x less space per message even matter with small messages since most disk I/O probably goes to seeking, so reading a single 4 kB message takes pretty much the same time as a 8 kB message? Just throwing in my 0.02 currency units... ... obviously, which messages you choose to compress is up to you, and should be tuned depending on your system. Certainly, I wouldn't bother compressing anything smaller than 1 allocation block (whatever that is on your FS), and even 2, unless your CPU is really idle. The larger the message, the greater the potential rewards. PS: Timo... 2x smaller? ... somehow, I expected better of you :) -- Curtis Maloney [EMAIL PROTECTED]
[Dovecot] postfix/dovecot/mysql quotas not working, default dovecot.conf does.
I'm having problems getting dovecot to set imap quotas that are defined as individual quotas for virtual users using mysql. I'm using postfix/dovecot 1.1.3, just built from source about a week ago. I've been testing using telnet and getquotaroot. when I define the quota in dovecot.conf quota = dirsize quota_rule = *:storage=102400 I get the following response from Dovecot: # telnet 127.0.0.1 143 Connected to 127.0.0.1. * OK Dovecot ready. . login [EMAIL PROTECTED] password . OK Logged in. . getquotaroot inbox * QUOTAROOT inbox * QUOTA (STORAGE 276273 102400) All is good (the mailbox IS currently very full as part of my testing). However, when I define that data in the dovecot-sql.conf file, it doesn't appear to pick the data up, either as an override, or, if I delete quota_rule = *:storage=102400 from dovecot.conf, I get no quota at all . getquotaroot inbox . OK No quota. # grep -v '^ *\(#.*\)\?$' dovecot-sql.conf driver = mysql connect = host=localhost dbname=postfix user=postfix password=password default_pass_scheme = MD5-CRYPT password_query = \ SELECT username, domain, password \ FROM mailbox WHERE username = '%u' AND domain = '%d' AND active = '1' user_query = \ SELECT 1015 as uid, 105 as gid, '/var/spool/mail/%d/%n' as home, \ 'maildir:/var/spool/mail/%d/%n/Maildir' as mail, \ 'dirsize' as quota, \ concat('*:storage=', quota, 'B') as quota_rule, \ FROM mailbox WHERE username = '%u' AND domain = '%d' and active = '1' the results remain the same in telnet. Any assistance would be appreciated. I've done a fair amount of digging, and have no idea why it's not working. ASsociated other configuration below. Thanks! Rick SQL data: mysql show columns in mailbox; +--+--+--+-+-+---+ | Field| Type | Null | Key | Default | Extra | +--+--+--+-+-+---+ | username | varchar(255) | NO | PRI | | | | password | varchar(255) | NO | | | | | name | varchar(255) | NO | | NULL| | | maildir | varchar(255) | NO | | | | | quota| bigint(20) | NO | | 0 | | | domain | varchar(255) | NO | | | | | created | datetime | NO | | -00-00 00:00:00 | | | modified | datetime | NO | | -00-00 00:00:00 | | | active | tinyint(1) | NO | | 1 | | +--+--+--+-+-+---+ 9 rows in set (0.00 sec) | [EMAIL PROTECTED] | hashedpassword | | example.com/test222/ | 15360 | example.com | 2008-10-01 12:13:54 | 2008-10-06 15:49:51 | 1 | # dovecot -n # 1.1.3: /usr/local/etc/dovecot.conf protocols: imap imaps pop3 pop3s ssl_disable: yes ssl_cert_file: /etc/httpd/host.cert ssl_key_file: /etc/httpd/host.key disable_plaintext_auth: no login_dir: /usr/local/var/run/dovecot/login login_executable(default): /usr/local/libexec/dovecot/imap-login login_executable(imap): /usr/local/libexec/dovecot/imap-login login_executable(pop3): /usr/local/libexec/dovecot/pop3-login mail_uid: 1015 mail_gid: 105 mail_location: maildir:/var/spool/mail/%d/%n/Maildir mail_executable(default): /usr/local/libexec/dovecot/imap mail_executable(imap): /usr/local/libexec/dovecot/imap mail_executable(pop3): /usr/local/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/lib/dovecot/imap mail_plugin_dir(imap): /usr/local/lib/dovecot/imap mail_plugin_dir(pop3): /usr/local/lib/dovecot/pop3 imap_client_workarounds(default): delay-newmail imap_client_workarounds(imap): delay-newmail imap_client_workarounds(pop3): pop3_client_workarounds(default): pop3_client_workarounds(imap): pop3_client_workarounds(pop3): outlook-no-nuls oe-ns-eoh auth default: mechanisms: plain login passdb: driver: sql args: /usr/local/etc/dovecot-sql.conf userdb: driver: passwd userdb: driver: sql args: /usr/local/etc/dovecot-sql.conf userdb: driver: static socket: type: listen client: path: /var/run/dovecot/auth-client mode: 432 user: vuser group: vuser master: path: /var/run/dovecot/auth-master mode: 384 user: vuser group: vuser plugin: quota: dirsize quota_rule: *:storage=102400 quota_warning: storage=95%% /usr/local/sbin/quota_notify 95 quota_warning2: storage=80%% /usr/local/sbin/quota_notify 80 Rick Steeves http://www.sinister.net The journey is the destination