Re: [Dovecot] Migrating existing local Maildir structure to dovecot server Maildir
On Friday 13 November 2009 15:00:09 Halim Issa wrote: Hello, I'm about to migrate a number of existing users who have been using POP3 with emails stored locally in KMail's Maildir format into an IMAP solution based on Dovecot. Will it be possible to simply move all the KDE Maildir folders from the local PCs to the Maildir folder on the IMAP server running Dovecot and then have the emails accessible on the server, or will this most likely mess up the Dovecot index files? If this causes index file trouble, is there any way to force a re-indexing of all these files, or is there another recommended way of migrating up to 7 years of email communication from local hosts to the IMAP server, for later putting them in folders? I don't think the migration of the Maildir structure itself is the problem. Dovecot has no problem reading it, no matter where it came from, as long as it is a proper Maildir structure. Existing indexes should not be affected. The indexes that KMail writes, however, will probably not migrate well or at all. I do not know anything about the index format KMail uses but converting it to something Dovecot understands and accepts seems troublesome and difficult to me. This means that you can copy all existing, local Maildirs over to the server (you can even put them in subfolders in existing accounts) and Dovecot will read them just fine. But it also means that Dovecot will very probably present them to the user as new messages, never seen before. But do yourself a favour and test any procedure you plan on implementing properly and extensively before actually implementing it. Otherwise it could end up messy and irreparable. HTH Andreas -- Andreas Ntaflos Vienna, Austria GPG Fingerprint: 6234 2E8E 5C81 C6CB E5EC 7E65 397C E2A8 090C A9B4 signature.asc Description: This is a digitally signed message part.
Re: [Dovecot] Migrating existing local Maildir structure to dovecot server Maildir
On 16/11/2009, Andreas Ntaflos d...@dword.org wrote: On Friday 13 November 2009 15:00:09 Halim Issa wrote: Hello, I'm about to migrate a number of existing users who have been using POP3 with emails stored locally in KMail's Maildir format into an IMAP solution based on Dovecot. Will it be possible to simply move all the KDE Maildir folders from the local PCs to the Maildir folder on the IMAP server running Dovecot and then have the emails accessible on the server, or will this most likely mess up the Dovecot index files? If this causes index file trouble, is there any way to force a re-indexing of all these files, or is there another recommended way of migrating up to 7 years of email communication from local hosts to the IMAP server, for later putting them in folders? I don't think the migration of the Maildir structure itself is the problem. Dovecot has no problem reading it, no matter where it came from, as long as it is a proper Maildir structure. Existing indexes should not be affected. The indexes that KMail writes, however, will probably not migrate well or at all. I do not know anything about the index format KMail uses but converting it to something Dovecot understands and accepts seems troublesome and difficult to me. This means that you can copy all existing, local Maildirs over to the server (you can even put them in subfolders in existing accounts) and Dovecot will read them just fine. But it also means that Dovecot will very probably present them to the user as new messages, never seen before. But do yourself a favour and test any procedure you plan on implementing properly and extensively before actually implementing it. Otherwise it could end up messy and irreparable. Thanks much for your thorough answer! I'll make sure to test extensively. One thing came to mind - would it be possible to use Dovecot and Disconnected IMAP itself for the transfer, and perhaps thus keep the indexes? If I move the messages from the local mailbox to the IMAP mailbox from within Kmail it should perhaps keep the status? Also - is there any documentation anywhere (or tips on better google search terms) on what is stored in these indexes? I suppose apart from Read/New status, it also contains whether or not there have been replies to the mail and on what date the email was replied to? Thanks again!
Re: [Dovecot] Migrating existing local Maildir structure to dovecot server Maildir
On Monday 16 November 2009 12:35:35 Halim Issa wrote: On 16/11/2009, Andreas Ntaflos d...@dword.org wrote: On Friday 13 November 2009 15:00:09 Halim Issa wrote: Hello, I'm about to migrate a number of existing users who have been using POP3 with emails stored locally in KMail's Maildir format into an IMAP solution based on Dovecot. Will it be possible to simply move all the KDE Maildir folders from the local PCs to the Maildir folder on the IMAP server running Dovecot and then have the emails accessible on the server, or will this most likely mess up the Dovecot index files? If this causes index file trouble, is there any way to force a re-indexing of all these files, or is there another recommended way of migrating up to 7 years of email communication from local hosts to the IMAP server, for later putting them in folders? I don't think the migration of the Maildir structure itself is the problem. Dovecot has no problem reading it, no matter where it came from, as long as it is a proper Maildir structure. Existing indexes should not be affected. The indexes that KMail writes, however, will probably not migrate well or at all. I do not know anything about the index format KMail uses but converting it to something Dovecot understands and accepts seems troublesome and difficult to me. This means that you can copy all existing, local Maildirs over to the server (you can even put them in subfolders in existing accounts) and Dovecot will read them just fine. But it also means that Dovecot will very probably present them to the user as new messages, never seen before. But do yourself a favour and test any procedure you plan on implementing properly and extensively before actually implementing it. Otherwise it could end up messy and irreparable. Thanks much for your thorough answer! I'll make sure to test extensively. One thing came to mind - would it be possible to use Dovecot and Disconnected IMAP itself for the transfer, and perhaps thus keep the indexes? If I move the messages from the local mailbox to the IMAP mailbox from within Kmail it should perhaps keep the status? Interesting idea, but I don't know how well or even if KMail handles moving messages from one account to another. In any case it seems worth a try. Also - is there any documentation anywhere (or tips on better google search terms) on what is stored in these indexes? I suppose apart from Read/New status, it also contains whether or not there have been replies to the mail and on what date the email was replied to? If you are talking about the indexes KMail keeps I suppose you should try one of the KDE-PIM-related mailing lists. For Dovecot's index files you should ask Timo or browse the wiki, maybe there is some documentation about it somewhere. I myself don't know anything about the format of any of the index files, sorry. Andreas -- Andreas Ntaflos Vienna, Austria GPG Fingerprint: 6234 2E8E 5C81 C6CB E5EC 7E65 397C E2A8 090C A9B4 signature.asc Description: This is a digitally signed message part.
[Dovecot] Dovecot+Sieve Please Help!...
Dovecot Sieve Plugin... 1. ./configure --with-dovecot=/usr/lib/dovecot make make install protocol lda { postmaster_address = postmas...@kipalex.ru mail_plugins = sieve } plugin { sieve = /home/vmail/kipalex.ru/and...@kipalex.ru/dovecot.sieve } 2. dovecot.sieve file in /home/vmail/kipalex.ru/and...@kipalex.ru require fileinto; if header :contains Subject ***SPAM*** { fileinto /home/vmail/kipalex.ru/and...@kipalex.ru/.Spam/new; } And in the dovecot.log I see: 2009-11-16 13:45:55 deliver(and...@kipalex.ru): Error: sieve: msgid=351009bd0911160227r6ef9f39fja32c2893cb7fc...@mail.gmail.com: failed to store into mailbox '/home/vmail/kipalex.ru/and...@kipalex.ru/.Spam/new': Invalid mailbox name 2009-11-16 13:45:55 deliver(and...@kipalex.ru): Error: sieve: execution of script /home/vmail/kipalex.ru/and...@kipalex.ru/dovecot.sieve failed, but implicit keep was successful Mail system is already up and working... Please Help... Why Dovecot plugin is not working???
Re: [Dovecot] Dovecot+Sieve Please Help!...
Andrey Garkin schrieb: Dovecot Sieve Plugin... 2. dovecot.sieve file in /home/vmail/kipalex.ru/and...@kipalex.ru require fileinto; if header :contains Subject ***SPAM*** { fileinto /home/vmail/kipalex.ru/and...@kipalex.ru/.Spam/new; } AFAIK it should just be fileinto Spam Thomas
Re: [Dovecot] Dovecot+Sieve Please Help!...
On 11/16/2009 05:12 PM Andrey Garkin wrote: Dovecot Sieve Plugin... 1. ./configure --with-dovecot=/usr/lib/dovecot make make install protocol lda { postmaster_address = postmas...@kipalex.ru mail_plugins = sieve } plugin { sieve = /home/vmail/kipalex.ru/and...@kipalex.ru/dovecot.sieve } 2. dovecot.sieve file in /home/vmail/kipalex.ru/and...@kipalex.ru require fileinto; if header :contains Subject ***SPAM*** { fileinto /home/vmail/kipalex.ru/and...@kipalex.ru/.Spam/new; } And in the dovecot.log I see: 2009-11-16 13:45:55 deliver(and...@kipalex.ru): Error: sieve: msgid=351009bd0911160227r6ef9f39fja32c2893cb7fc...@mail.gmail.com: failed to store into mailbox '/home/vmail/kipalex.ru/and...@kipalex.ru/.Spam/new': Invalid mailbox name 2009-11-16 13:45:55 deliver(and...@kipalex.ru): Error: sieve: execution of script /home/vmail/kipalex.ru/and...@kipalex.ru/dovecot.sieve failed, but implicit keep was successful Mail system is already up and working... Please Help... Why Dovecot plugin is not working??? The plugin is working fine. Your sieve script contains an error. Use: fileinto INBOX.Spam; Regards, Pascal -- The trapper recommends today: deadbeef.0932...@localdomain.org
Re: [Dovecot] Dovecot+Sieve Please Help!...
Pascal Volk пишет: On 11/16/2009 05:12 PM Andrey Garkin wrote: Dovecot Sieve Plugin... 1. ./configure --with-dovecot=/usr/lib/dovecot make make install protocol lda { postmaster_address = postmas...@kipalex.ru mail_plugins = sieve } plugin { sieve = /home/vmail/kipalex.ru/and...@kipalex.ru/dovecot.sieve } 2. dovecot.sieve file in /home/vmail/kipalex.ru/and...@kipalex.ru require fileinto; if header :contains Subject ***SPAM*** { fileinto /home/vmail/kipalex.ru/and...@kipalex.ru/.Spam/new; } And in the dovecot.log I see: 2009-11-16 13:45:55 deliver(and...@kipalex.ru): Error: sieve: msgid=351009bd0911160227r6ef9f39fja32c2893cb7fc...@mail.gmail.com: failed to store into mailbox '/home/vmail/kipalex.ru/and...@kipalex.ru/.Spam/new': Invalid mailbox name 2009-11-16 13:45:55 deliver(and...@kipalex.ru): Error: sieve: execution of script /home/vmail/kipalex.ru/and...@kipalex.ru/dovecot.sieve failed, but implicit keep was successful Mail system is already up and working... Please Help... Why Dovecot plugin is not working??? The plugin is working fine. Your sieve script contains an error. Use: fileinto INBOX.Spam; Regards, Pascal Yes Thanks! it Works!!! But: As to me to adjust that it is global for all domains and users worked. Or so it is impossible? Thanks for All!!!
[Dovecot] Dovecot and SATA Backend
Hi all, I plan to run a dovecot IMAPS and POPS service on our network. We handle about 3 000 mailboxes. I thought first buying a topnotch server (8 cores and 16 Go RAM) with equalogic iSCSI SAN SAS 15K for storage backend. On second though (and after a comprhensive read of dovecot features), I saw in http://wiki.dovecot.org/MailLocation that index files can be created on a separete local filesystem. My question is : for 3000 users, is it possible to have only a SATA backend attached to my topnotch server (to handle bigger mail quotas) by storing index on local hard drives (SAS drives) ? Extra question, what is the better : iSCSI SATA backend or NFS share ? NFS share is more convenient to have a failover server. Thanks for your help. Regards, -- Nicolas Grenèche - Orléans University - France http://blog.garnett.fr (in french)
[Dovecot] file_dotlock_create(~/.dovecot.lda-dupes) failed: No such file or directory
Hi, I am having some problems with my vacation messages using dovecot. The mail is send without problems, and the auto-respond is working as well. But its always auto-responding, because the lda-dupes file can't be created. See mail log below: Nov 16 13:43:03 mail003 postfix/smtpd[6501]: connect from mail-bw0-f211.google.com[209.85.218.211] Nov 16 13:43:03 mail003 postfix/smtpd[6501]: D6FE6F64F: client=mail-bw0-f211.google.com[209.85.218.211] Nov 16 13:43:03 mail003 postfix/cleanup[6505]: D6FE6F64F: message-id=4b014929.1000...@gmail.com Nov 16 13:43:03 mail003 postfix/qmgr[27330]: D6FE6F64F: from=[my.gmail.account], size=1946, nrcpt=1 (queue active) Nov 16 13:43:03 mail003 deliver([my.test.account]): file_dotlock_create(~/.dovecot.lda-dupes) failed: No such file or directory Nov 16 13:43:03 mail003 postfix/pickup[5934]: F202DF690: uid=5000 from= Nov 16 13:43:03 mail003 deliver([my.test.account]): msgid=4b014929.1000...@gmail.com: sent vacation response to [my.gmail.account] Nov 16 13:43:03 mail003 postfix/cleanup[6505]: F202DF690: message-id=dovecot-1258375383-94762...@mail003 Nov 16 13:43:04 mail003 postfix/qmgr[27330]: F202DF690: from=, size=570, nrcpt=1 (queue active) Nov 16 13:43:04 mail003 deliver([my.test.account]): msgid=4b014929.1000...@gmail.com: saved mail to INBOX Nov 16 13:43:04 mail003 postfix/pipe[6506]: D6FE6F64F: to=[my.test.account], relay=dovecot, delay=0.21, delays=0.08/0.01/0/0.12, dsn=2.0.0, status=sent (delivered via dovecot service) Nov 16 13:43:04 mail003 postfix/qmgr[27330]: D6FE6F64F: removed Nov 16 13:43:05 mail003 postfix/smtp[6510]: F202DF690: to=[my.gmail.account], relay=gmail-smtp-in.l.google.com[74.125.93.114]:25, delay=1.6, delays=0.07/0.01/0.32/1.2, dsn=2.0.0, status=sent (250 2.0.0 OK 1258375453 7si18156568qwb.35) Nov 16 13:43:05 mail003 postfix/qmgr[27330]: F202DF690: removed I manually created the file, but its keeping getting the message: r...@mail003:/home/vmail/mydomain.com/info/.Maildir# ls -la drwx-- 6 vmail vmail 4096 2009-11-16 14:04 . drwx-- 3 vmail vmail 4096 2009-11-16 12:37 .. drwx-- 2 vmail vmail 4096 2009-11-16 14:04 cur -rw--- 1 vmail vmail 340 2009-11-16 13:49 dovecot.index -rw--- 1 vmail vmail 22528 2009-11-16 14:04 dovecot.index.cache -rw--- 1 vmail vmail 7000 2009-11-16 14:04 dovecot.index.log -rwx-- 1 vmail vmail 0 2009-11-16 14:03 .dovecot.lda-dupes -rwx-- 1 vmail vmail 485 2009-11-16 12:33 .dovecot.sieve -rw--- 1 vmail vmail 208 2009-11-16 12:56 .dovecot.sievec -rw--- 1 vmail vmail 522 2009-11-16 14:04 dovecot-uidlist -rw--- 1 vmail vmail 8 2009-11-11 14:31 dovecot-uidvalidity -rw--- 1 vmail vmail 0 2009-11-11 14:31 dovecot-uidvalidity.4afabcaa drwx-- 2 vmail vmail 4096 2009-11-16 14:04 new -rw--- 1 vmail vmail 6 2009-11-11 14:45 subscriptions drwx-- 2 vmail vmail 4096 2009-11-16 14:04 tmp drwx-- 5 vmail vmail 4096 2009-11-11 14:45 .Trash Is the ~/.dovecot.lda-dupes linking to another path, and how can I adjust this so it searches for /home/vmail/%d/%n/.Maildir/ ? Thanks, - Rene
[Dovecot] dovecot ignoring folder permissions on directory creation
Ubuntu 8.04lts Dovecot 1.2.6 So, further to the 'deliver' problem posted yesterday I've also discovered another issue regarding permissions: files and directories are being created 0600/0700 by the IMAP and deliver process (depending on who gets there first!) preventing use of shared mailboxes. According to documentation: When creating a new mailbox, Dovecot v1.2+ copies the permissions from the mailbox root directory. and When creating new files inside a mailbox, Dovecot v1.2+ copies the read/write permissions from the mailbox's directory. (http://wiki.dovecot.org/SharedMailboxes/Permissions) So, with an empty directory of: drwxr-xr-x 3 root root 21 2009-11-16 13:36 /home drwxrwx--x 3 nobody maildir 21 2009-11-16 13:36 /home/mail I would expect a user logging in to have their mail directory created automatically with the same permissions (but not necessarily the same group). What I see post-login is: drwxrwx--x 3 nobody maildir 21 2009-11-16 13:42 /home/mail drwx-- 3 auser adomain 18 2009-11-16 13:42 /home/mail/adomain drwx-- 3 auser adomain 20 2009-11-16 13:42 /home/mail/adomain/auser drwx-- 5 auser adomain 4096 2009-11-16 13:42 /home/mail/adomain/auser/Maildir drwx-- 2 auser adomain6 2009-11-16 13:42 /home/mail/adomain/auser/Maildir/cur -rw--- 1 auser adomain0 2009-11-16 13:42 /home/mail/adomain/auser/Maildir/dovecot-acl-list -rw--- 1 auser adomain 156 2009-11-16 13:42 /home/mail/adomain/auser/Maildir/dovecot.index.log -rw--- 1 auser adomain 17 2009-11-16 13:42 /home/mail/adomain/auser/Maildir/dovecot-uidlist -rw--- 1 auser adomain8 2009-11-16 13:42 /home/mail/adomain/auser/Maildir/dovecot-uidvalidity -rw--- 1 auser adomain0 2009-11-16 13:42 /home/mail/adomain/auser/Maildir/dovecot-uidvalidity.4b0156e2 drwx-- 2 auser adomain6 2009-11-16 13:42 /home/mail/adomain/auser/Maildir/new drwx-- 2 auser adomain6 2009-11-16 13:42 /home/mail/adomain/auser/Maildir/tmp I've tried pre-creation of /home/mail/adomain, /home/mail/adomain/auser and /home/mail/adomain/auser/Maildir in each case with permissions 0770 but in each case subsequent subdirectories and files are 0700/0600. I've also tried use of a dovecot-shared file, but this also has no effect under any permutation I can create. Anyone else seen this?
Re: [Dovecot] file_dotlock_create(~/.dovecot.lda-dupes) failed: No such file or directory
On 11/16/2009 02:10 PM Rene Bakkum wrote: Hi, I am having some problems with my vacation messages using dovecot. The mail is send without problems, and the auto-respond is working as well. But its always auto-responding, because the lda-dupes file can't be created. See mail log below: … Nov 16 13:43:03 mail003 deliver([my.test.account]): file_dotlock_create(~/.dovecot.lda-dupes) failed: No such file or directory … I manually created the file, but its keeping getting the message: r...@mail003:/home/vmail/mydomain.com/info/.Maildir# ls -la drwx-- 6 vmail vmail 4096 2009-11-16 14:04 . drwx-- 3 vmail vmail 4096 2009-11-16 12:37 .. drwx-- 2 vmail vmail 4096 2009-11-16 14:04 cur -rw--- 1 vmail vmail 340 2009-11-16 13:49 dovecot.index -rw--- 1 vmail vmail 22528 2009-11-16 14:04 dovecot.index.cache -rw--- 1 vmail vmail 7000 2009-11-16 14:04 dovecot.index.log -rwx-- 1 vmail vmail 0 2009-11-16 14:03 .dovecot.lda-dupes -rwx-- 1 vmail vmail 485 2009-11-16 12:33 .dovecot.sieve -rw--- 1 vmail vmail 208 2009-11-16 12:56 .dovecot.sievec -rw--- 1 vmail vmail 522 2009-11-16 14:04 dovecot-uidlist -rw--- 1 vmail vmail 8 2009-11-11 14:31 dovecot-uidvalidity -rw--- 1 vmail vmail 0 2009-11-11 14:31 dovecot-uidvalidity.4afabcaa drwx-- 2 vmail vmail 4096 2009-11-16 14:04 new -rw--- 1 vmail vmail 6 2009-11-11 14:45 subscriptions drwx-- 2 vmail vmail 4096 2009-11-16 14:04 tmp drwx-- 5 vmail vmail 4096 2009-11-11 14:45 .Trash Is the ~/.dovecot.lda-dupes linking to another path, and how can I adjust this so it searches for /home/vmail/%d/%n/.Maildir/ ? Thanks, - Rene Mildir != ~ Why are you storing the sieve files in the Maildir? Let your userdb return /home/vmail/%d/%n as home, and ~/.Maildir as mail. If the permissions on the directories are set correctly, everything should work fine. Regards, Pascal -- The trapper recommends today: decade.0932...@localdomain.org
Re: [Dovecot] file_dotlock_create(~/.dovecot.lda-dupes) failed: No such file or directory
Pascal Volk wrote: Mildir != ~ Why are you storing the sieve files in the Maildir? Let your userdb return /home/vmail/%d/%n as home, and ~/.Maildir as mail. If the permissions on the directories are set correctly, everything should work fine. Thanks I got it working now! Too be honest... I have no idea why I stored them in the Maildir. I just configured it like that. Changed it to /home/vmail/%d/%n/ now. :) For feature reference, the following change I made to get it working... I configured my server that it gets the information from the database. I have the following set in /etc/dovecot/dovecot.conf: mail_location = maildir:/home/vmail/%d/%n/.Maildir # SQL database doc/wiki/AuthDatabase.SQL.txt userdb sql { # Path for SQL configuration file args = /etc/dovecot/dovecot-sql.conf } In /etc/dovecot/dovecot-sql.conf I had it standing on: user_query = \ SELECT uid, gid \ FROM users WHERE username = '%u' I changed this to: user_query = \ SELECT home, uid, gid \ FROM users WHERE username = '%u' this made it working. Basically looking back, I can't believe why I removed the check for 'home'. As it clearly was stated in the example as needed. Should RTFM more often I guess! - Rene
[Dovecot] read() failed with subscription file
Hello Dovecot folks, I have Dovecot running reasonably well against my Postfix SMPTd. All mail is stored in Maildir format only. In my Thunderbird client I can see the Inbox, Trash and Sent folders in the Thunderbird pane but no other directories. I have very many Maildir format directories under my Inbox directory but I cannot see them in the Thunderbird client. I have the Dovecot info and debug log runnning with the solitary error message being displayed in the log when ever I access the Thunderbird client folders pane as stated below. Particulars follow and please advise, David. OS: CentOS 5.2 Postfix: 2.3.3 Dovecot: 1.2 Dovecot log: dovecot: IMAP(user): read() failed with subscription file /home/user/Maildir/subscriptions: Is a directory
Re: [Dovecot] Dovecot and SATA Backend
Quoting Nicolas GRENECHE nicolas.grene...@gmail.com: I plan to run a dovecot IMAPS and POPS service on our network. We handle about 3 000 mailboxes. I thought first buying a topnotch server (8 cores and 16 Go RAM) with equalogic iSCSI SAN SAS 15K for storage backend. Sounds like overkill to me, but if you have the money go for it. :) I run mine on an 8 core (dual quad core) system with 4G RAM, using SATA (would have preferred SAS, but cost was an issue for us). created on a separete local filesystem. My question is : for 3000 users, is it possible to have only a SATA backend attached to my topnotch server (to handle bigger mail quotas) by storing index on local hard drives (SAS drives) ? Sure. If you only have one dovecot server without any failover this is fine. If you have multiple (active or passive) servers then more care is required, and you need to decide on the level of risk you want to take. Extra question, what is the better : iSCSI SATA backend or NFS share ? iSCSI would be better than NFS IMHO. NFS share is more convenient to have a failover server. If you introduce NFS and/or a failover server, your local index question gets much more complex... Is that a design requirement, desire, or future option? Thanks for your help. Regards, -- Nicolas Grenèche - Orléans University - France http://blog.garnett.fr (in french) -- Eric Rostetter The Department of Physics The University of Texas at Austin This message is provided AS IS without warranty of any kind, either expressed or implied. Use this message at your own risk.
Re: [Dovecot] More dovecot-2.0.alpha2 problems
3. imap crashed when using mdbox: Fri Oct 30 14:54:49 server dovecot[11491]: imap(pid 11938 user userZ): dbox /Volumes/Mail/userZ/mailboxes/INBOX/Sent/dbox-Mails: map uidvalidity mismatch (1256918863 vs 1256919073) I'll look at this later. Although could it be HFS+ related problem, similar to what was worked around with maildir? I won't rule that out, but I'm not seeing EINVAL or ENOENT errors like with maildir. These mdbox errors appear to have another cause. What further information do you need to fix this?
Re: [Dovecot] Dovecot and SATA Backend
2009/11/16 Eric Jon Rostetter eric.rostet...@physics.utexas.edu: Quoting Nicolas GRENECHE nicolas.grene...@gmail.com: I plan to run a dovecot IMAPS and POPS service on our network. We handle about 3 000 mailboxes. I thought first buying a topnotch server (8 cores and 16 Go RAM) with equalogic iSCSI SAN SAS 15K for storage backend. Sounds like overkill to me, but if you have the money go for it. :) I prefer disk space to useless storage velocity ;-) I run mine on an 8 core (dual quad core) system with 4G RAM, using SATA (would have preferred SAS, but cost was an issue for us). created on a separete local filesystem. My question is : for 3000 users, is it possible to have only a SATA backend attached to my topnotch server (to handle bigger mail quotas) by storing index on local hard drives (SAS drives) ? Sure. If you only have one dovecot server without any failover this is fine. If you have multiple (active or passive) servers then more care is required, and you need to decide on the level of risk you want to take. Extra question, what is the better : iSCSI SATA backend or NFS share ? iSCSI would be better than NFS IMHO. NFS share is more convenient to have a failover server. If you introduce NFS and/or a failover server, your local index question gets much more complex... I know it, index may be handled on NFS server on fast local hardrives. The whole stuff should be exported to dovecot server. Is that a design requirement, desire, or future option? It should be a future option, but index management will be more tricky as you stated. Thanks for your help. Regards, -- Nicolas Grenèche - Orléans University - France http://blog.garnett.fr (in french) -- Eric Rostetter The Department of Physics The University of Texas at Austin This message is provided AS IS without warranty of any kind, either expressed or implied. Use this message at your own risk.
[Dovecot] Problem with stored procedure
Hi Timo/all I am trying to use stored procedure for password query when it try to connect i get authenticated only for the first user after that for subsequent user it gives me this error. Password query failed: Commands out of sync; you can't run this command now You might have solved this issue before, did some search just found this http://www.dovecot.org/list/dovecot/2006-October/017041.html (not resloved) Could you please guide me how to resolve this issue. thanks in advance. *dovecot-mysql.conf* connect = host= dbname=dovecot user=xxx password=x client_flags=65536 user_query = SELECT xx as uid, xx as gid, home FROM table WHERE User = '%u' password_query = call proxyMayBe('%u','%w','%r'); *Dovecot -n : *# 1.2.6: /etc/dovecot.conf # OS: Linux 2.6.18-164.el5 x86_64 CentOS release 5.4 (Final) base_dir: /var/run/dovecot/ log_path: /var/log/dovecot.log info_log_path: /var/log/dovecot-info.log protocols: imap pop3 listen: * ssl: no login_dir: /var/run/dovecot//login login_executable(default): /usr/libexec/dovecot/imap-login login_executable(imap): /usr/libexec/dovecot/imap-login login_executable(pop3): /usr/libexec/dovecot/pop3-login login_process_per_connection: no login_processes_count: 30 mail_location: maildir:~/ mail_executable(default): /usr/libexec/dovecot/imap mail_executable(imap): /usr/libexec/dovecot/imap mail_executable(pop3): /usr/libexec/dovecot/pop3 mail_plugin_dir(default): /usr/lib64/dovecot/imap mail_plugin_dir(imap): /usr/lib64/dovecot/imap mail_plugin_dir(pop3): /usr/lib64/dovecot/pop3 auth default: passdb: driver: sql args: /etc/dovecot-mysql.conf userdb: driver: sql args: /etc/dovecot-mysql.conf
Re: [Dovecot] Dovecot and SATA Backend
Quoting Nicolas GRENECHE nicolas.grene...@gmail.com: It should be a future option, but index management will be more tricky as you stated. If you want to do any kind of clustering/failover, even in the future, then I would go with iSCSI/SAN of some sort instead of NFS... Just my $0.02. The other way to think about it is that if it is a future plan then it won't matter much as Timo will probably get NFS support working so well by then it won't matter any more. :) But, right now, NFS support is a bit tricky, though constantly improving, and I'd still recommend you stay away from it if possible... -- Eric Rostetter The Department of Physics The University of Texas at Austin This message is provided AS IS without warranty of any kind, either expressed or implied. Use this message at your own risk.
Re: [Dovecot] Migrating existing local Maildir structure to dovecot server Maildir
On Mon, 2009-11-16 at 12:35 +0100, Halim Issa wrote: One thing came to mind - would it be possible to use Dovecot and Disconnected IMAP itself for the transfer, and perhaps thus keep the indexes? If I move the messages from the local mailbox to the IMAP mailbox from within Kmail it should perhaps keep the status? Also - is there any documentation anywhere (or tips on better google search terms) on what is stored in these indexes? I suppose apart from Read/New status, it also contains whether or not there have been replies to the mail and on what date the email was replied to? I doubt you need to worry about the indexes. The messages' flag state should be stored in the maildir filenames, and I'd hope that kmail does that too. signature.asc Description: This is a digitally signed message part
Re: [Dovecot] fetch bodystructure filename problem rfc2231
On Mon, 2009-11-16 at 07:37 +0100, myleetl...@gmx.de wrote: I think name should be name* (rfc 2231?) Yes, fixed: http://hg.dovecot.org/dovecot-1.2/rev/96b5d6d8dd2c sorry, but the patch do not change anything - still the same output. You need to delete dovecot.index.cache file. signature.asc Description: This is a digitally signed message part
Re: [Dovecot] Replace message headers
On Mon, 2009-11-16 at 01:50 +0100, Matthias-Christian Ott wrote: I'm looking for a way to replace specific message headers of a mail via the mail storage API. Any suggestions? Emails are immutable. IMAP requires it. If you want to change something, you need to create a new message and delete the original. signature.asc Description: This is a digitally signed message part
Re: [Dovecot] FW: Panic: Message unexpectedly expunged from index
On Sun, 2009-11-15 at 17:05 -0600, Cliff Hayes wrote: Nevermind. I figured it out. I left off the INDEX command. Sorry to spam the mail list :( Here is my mail_location for future reference / searches: mail_location = mbox:/var/spool/mail:INBOX=/var/spool/mail/%u:INDEX=/var/indexes/%u You shouldn't use /var/spool/mail as the mail root anyway. I suppose you're using only POP3, but if you ever happen to (even accidentally) enable IMAP access the above configuration may give access to other users' mails (although I suppose the filesystem permissions will prevent that if you're using system users). In any case, I'd suggest something like: mbox:/var/empty:INBOX=/var/spool/mail/%u:INDEX=/var/indexes/%u signature.asc Description: This is a digitally signed message part
Re: [Dovecot] deliver is ignoring mail_access_groups
On Sun, 2009-11-15 at 12:59 +, Peter wrote: Opening the permissions on /home/mail (6771) allows deliver to succeed suggesting that mail_access_groups is being ignored by deliver. How are you calling deliver? Either it needs to be started up as root, or you need to make it setuid-root (and call it with -d parameter). Otherwise it can't use mail_access_groups. signature.asc Description: This is a digitally signed message part
Re: [Dovecot] expire_dict - Folder names with spaces
On Sat, 2009-11-14 at 19:03 +0100, mich...@euroinfissi.eu wrote: How to deal with IMAP foldernames that include spaces when setting up the expire tool for them? I hoped no one would ever want that.. signature.asc Description: This is a digitally signed message part
Re: [Dovecot] read() failed with subscription file
On Mon, 2009-11-16 at 09:18 -0600, da...@davidwbrown.name wrote: Dovecot log: dovecot: IMAP(user): read() failed with subscription file /home/user/Maildir/subscriptions: Is a directory /home/user/Maildir/subscriptions is a directory. It really shouldn't be a directory, it should be a file. What created it? Anyway, just rmdir it away. signature.asc Description: This is a digitally signed message part
Re: [Dovecot] How unimportant would be mailstore-tidy utility? :-)
Timo Sirainen t...@iki.fi wrote: On Mon, 2009-11-16 at 12:35 +0100, Halim Issa wrote: One thing came to mind - would it be possible to use Dovecot and Disconnected IMAP itself for the transfer, and perhaps thus keep the indexes? If I move the messages from the local mailbox to the IMAP mailbox from within Kmail it should perhaps keep the status? Also - is there any documentation anywhere (or tips on better google search terms) on what is stored in these indexes? I suppose apart from Read/New status, it also contains whether or not there have been replies to the mail and on what date the email was replied to? I doubt you need to worry about the indexes. The messages' flag state should be stored in the maildir filenames, and I'd hope that kmail does that too. How low on your list of priorities would land idea of utility make-mailstore-tidy? :-) P.S. I have personal mail store migrated from cyrus (by my own *ugly* migration script) via maildir to dbox. I would like to convert all file names to more uniform format before next migration I sure I will see in a few years perspective :-) -- [plen: Andrew] Andrzej Adam Filip : a...@onet.eu Not that I have anything much against redundancy. But I said that already. -- Larry Wall in 199702271735.jaa04...@wall.org
Re: [Dovecot] expire_dict - Folder names with spaces
Hi again! The problem is that polish versions of standard windows email clients like Windows Mail, Outlook Express and Microsoft Outlook create mail folders with spaces, like Skrzynka odbiorcza, Elementy wysłane, Elementy usunięte... How to set then the expire or quota plugins for them ? Best regards Michael Lattari
Re: [Dovecot] deliver is ignoring mail_access_groups
Doh. Of course knew it would be something obvious. What threw me is that it had correct permissions aside from this. It's being called by postfix with -d through mailbox_command - I'm digging through postfix config now, if there's a way I can do this without making deliver setuid I'd be much happier Thanks, Timo, Peter. -Original Message- From: dovecot-bounces+dovecot=peter-b@dovecot.org [mailto:dovecot-bounces+dovecot=peter-b@dovecot.org] On Behalf Of Timo Sirainen Sent: 16 November 2009 18:07 To: Peter Cc: 'Dovecot Mailing List' Subject: Re: [Dovecot] deliver is ignoring mail_access_groups On Sun, 2009-11-15 at 12:59 +, Peter wrote: Opening the permissions on /home/mail (6771) allows deliver to succeed suggesting that mail_access_groups is being ignored by deliver. How are you calling deliver? Either it needs to be started up as root, or you need to make it setuid-root (and call it with -d parameter). Otherwise it can't use mail_access_groups.
Re: [Dovecot] expire_dict - Folder names with spaces
On 11/16/2009, mich...@euroinfissi.eu (mich...@euroinfissi.eu) wrote: The problem is that polish versions of standard windows email clients like Windows Mail, Outlook Express and Microsoft Outlook create mail folders with spaces, like Skrzynka odbiorcza, Elementy wysBane, Elementy usunite... So do English versions: Sent Items, Deleted Items -- Best regards, Charles
Re: [Dovecot] deliver is ignoring mail_access_groups
On Mon, 2009-11-16 at 19:14 +, Peter Borg wrote: Doh. Of course knew it would be something obvious. What threw me is that it had correct permissions aside from this. It's being called by postfix with -d through mailbox_command - I'm digging through postfix config now, if there's a way I can do this without making deliver setuid I'd be much happier I don't think Postfix allows running it as root. But since you're using mailbox_command, Postfix already looks up the user's groups from somewhere. Perhaps there's something you can do to make Postfix add access to the wanted extra group? I suppose the long term solution for this will be to use Dovecot's LMTP server. signature.asc Description: This is a digitally signed message part
Re: [Dovecot] Problem with stored procedure
Fcuk F wrote: Hi Timo/all I am trying to use stored procedure for password query when it try to connect i get authenticated only for the first user after that for subsequent user it gives me this error. Password query failed: Commands out of sync; you can't run this command now That message is from MySQL. If your stored procedure returns more than one dataset you'll get that error. ~Seth
Re: [Dovecot] FW: Panic: Message unexpectedly expunged from index
Would it be better to just drop the mbox part? Like this: mail_location = INBOX=/var/spool/mail/%u:INDEX=/var/indexes/%u -Original Message- From: dovecot-bounces+chayes=afo@dovecot.org [mailto:dovecot-bounces+chayes=afo@dovecot.org]on Behalf Of Timo Sirainen Sent: Monday, November 16, 2009 12:04 PM To: Cliff Hayes Cc: dovecot@dovecot.org Subject: Re: [Dovecot] FW: Panic: Message unexpectedly expunged from index On Sun, 2009-11-15 at 17:05 -0600, Cliff Hayes wrote: Nevermind. I figured it out. I left off the INDEX command. Sorry to spam the mail list :( Here is my mail_location for future reference / searches: mail_location = mbox:/var/spool/mail:INBOX=/var/spool/mail/%u:INDEX=/var/indexes/%u You shouldn't use /var/spool/mail as the mail root anyway. I suppose you're using only POP3, but if you ever happen to (even accidentally) enable IMAP access the above configuration may give access to other users' mails (although I suppose the filesystem permissions will prevent that if you're using system users). In any case, I'd suggest something like: mbox:/var/empty:INBOX=/var/spool/mail/%u:INDEX=/var/indexes/%u
Re: [Dovecot] deliver is ignoring mail_access_groups
bounces+dovecot=peter-b@dovecot.org] On Behalf Of Timo Sirainen It's being called by postfix with -d through mailbox_command - I'm digging through postfix config now, if there's a way I can do this without making deliver setuid I'd be much happier I don't think Postfix allows running it as root. But since you're using mailbox_command, Postfix already looks up the user's groups from somewhere. Perhaps there's something you can do to make Postfix add access to the wanted extra group? I suppose the long term solution for this will be to use Dovecot's LMTP server. Postfix does do group lookup, but not group set. Regardless I wouldn't want the user's group set to include maildir under normal circumstances. This is where Dovecot works well for me because I can get the dovecot process to add the specified group to the user's authentication which means that they can only get at their mail through dovecot and not through the file system. Postfix doesn't have the ability to add groups to the user's context so no joy there. LMTP will be great once it's done, I'm sure, but for now I'm stuck with whatever MTA I can get going... looks like setuid root deliver is going to be the only solution. Peter.
Re: [Dovecot] FW: Panic: Message unexpectedly expunged from index
Well, that just wouldn't work. And I don't think I really even want to make it work. On Mon, 2009-11-16 at 16:44 -0600, Cliff Hayes wrote: Would it be better to just drop the mbox part? Like this: mail_location = INBOX=/var/spool/mail/%u:INDEX=/var/indexes/%u -Original Message- From: dovecot-bounces+chayes=afo@dovecot.org [mailto:dovecot-bounces+chayes=afo@dovecot.org]on Behalf Of Timo Sirainen Sent: Monday, November 16, 2009 12:04 PM To: Cliff Hayes Cc: dovecot@dovecot.org Subject: Re: [Dovecot] FW: Panic: Message unexpectedly expunged from index On Sun, 2009-11-15 at 17:05 -0600, Cliff Hayes wrote: Nevermind. I figured it out. I left off the INDEX command. Sorry to spam the mail list :( Here is my mail_location for future reference / searches: mail_location = mbox:/var/spool/mail:INBOX=/var/spool/mail/%u:INDEX=/var/indexes/%u You shouldn't use /var/spool/mail as the mail root anyway. I suppose you're using only POP3, but if you ever happen to (even accidentally) enable IMAP access the above configuration may give access to other users' mails (although I suppose the filesystem permissions will prevent that if you're using system users). In any case, I'd suggest something like: mbox:/var/empty:INBOX=/var/spool/mail/%u:INDEX=/var/indexes/%u signature.asc Description: This is a digitally signed message part
Re: [Dovecot] deliver is ignoring mail_access_groups
On Mon, 2009-11-16 at 23:01 +, Peter Borg (General) wrote: This is where Dovecot works well for me because I can get the dovecot process to add the specified group to the user's authentication which means that they can only get at their mail through dovecot and not through the file system. Perhaps you should have just used virtual users in that case? PAM as passdb, but otherwise use the same uid/gid for all users' mails. signature.asc Description: This is a digitally signed message part
Re: [Dovecot] FW: Panic: Message unexpectedly expunged from index
Ok, I did as you suggested. It worked. Wish I knew why. Would you happen to have a link to a basic explanation of the mail_location parameter? I looked in the wiki and I'm obviously missing some fundamental knowledge which the wiki builds on. Thanks :) -Original Message- From: dovecot-bounces+chayes=afo@dovecot.org [mailto:dovecot-bounces+chayes=afo@dovecot.org]on Behalf Of Timo Sirainen Sent: Monday, November 16, 2009 6:04 PM To: Cliff Hayes Cc: Dovecot Mailing List Subject: Re: [Dovecot] FW: Panic: Message unexpectedly expunged from index Well, that just wouldn't work. And I don't think I really even want to make it work. On Mon, 2009-11-16 at 16:44 -0600, Cliff Hayes wrote: Would it be better to just drop the mbox part? Like this: mail_location = INBOX=/var/spool/mail/%u:INDEX=/var/indexes/%u -Original Message- From: dovecot-bounces+chayes=afo@dovecot.org [mailto:dovecot-bounces+chayes=afo@dovecot.org]on Behalf Of Timo Sirainen Sent: Monday, November 16, 2009 12:04 PM To: Cliff Hayes Cc: dovecot@dovecot.org Subject: Re: [Dovecot] FW: Panic: Message unexpectedly expunged from index On Sun, 2009-11-15 at 17:05 -0600, Cliff Hayes wrote: Nevermind. I figured it out. I left off the INDEX command. Sorry to spam the mail list :( Here is my mail_location for future reference / searches: mail_location = mbox:/var/spool/mail:INBOX=/var/spool/mail/%u:INDEX=/var/indexes/%u You shouldn't use /var/spool/mail as the mail root anyway. I suppose you're using only POP3, but if you ever happen to (even accidentally) enable IMAP access the above configuration may give access to other users' mails (although I suppose the filesystem permissions will prevent that if you're using system users). In any case, I'd suggest something like: mbox:/var/empty:INBOX=/var/spool/mail/%u:INDEX=/var/indexes/%u
[Dovecot] setting up home directories
Hello, I have not been using the home directory but I read in MailLocation.txt that I probably should. Does dovecot create each directory? What does it put in there? My server uses mbox format. My users all look like this: [r...@sendmail log]# finger chayes Login: chayes Name: 50387.00 Directory: /home/chayes Shell: /sbin/nologin Never logged in. Mail last read Mon Nov 16 19:56 2009 (CST) No Plan. So each user does have a home directory assigned, but it is never created. Here is my current mail_location: mail_location = mbox:/var/empty:INBOX=/var/spool/mail/%u:INDEX=/var/indexes/%u Do I just add the maildir component as follows: mail_location = mbox:/var/empty:INBOX=/var/spool/mail/%u:INDEX=/var/indexes/%u:maildir:/home /u% I'm confused by the MailLocation.txt entry below which says not to mix maildir and mbox formats. ---%--- -- mail_location = mbox:~/mail:INBOX=/var/mail/%u mail_location = maildir:~/Maildir:INBOX=~/Maildir/.INBOX ---%--- -- Note that it's still not possible to mix maildir and mbox formats this way. You need to usenamespaces [Namespaces.txt] for that. Thanks in advance, Cliff
[Dovecot] dovecot 1.2.7 : configure: error: Can't build with LDAP support: libldap not found
hi i have downloaded the dovecot 1.2.7 source when i tried to compile with ldap support it gives the error configure: error: Can't build with LDAP support: libldap not found. i am attaching the log file with this mail. i want to use it with latest apacheDS. Thanks in advance configure: error: Can't build with LDAP support: libldap not found
Re: [Dovecot] dovecot 1.2.7 : configure: error: Can't build with LDAP support: libldap not found
Santhosh A. J schrieb: hi i have downloaded the dovecot 1.2.7 source when i tried to compile with ldap support it gives the error configure: error: Can't build with LDAP support: libldap not found. i am attaching the log file with this mail. i want to use it with latest apacheDS. This usually means that no shared library with the name libldap*.so is in your library search path. Check your /etc/ld.so.sonf (and maybe ld.so.conf.d/*) for the search path of your linker and verify that you have the required LDAP shared library in place. If not, you need to install that first - either from your distribution tree or you compile e.g. OpenLDAP by hand. HTH, Jakob Curdes
Re: [Dovecot] setting up home directories
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Mon, 16 Nov 2009, Cliff Hayes wrote: I have not been using the home directory but I read in MailLocation.txt that I probably should. Does dovecot create each directory? No. What does it put in there? My server uses mbox format. My users all look like this: As far as I know, only the Sieve files and debugging stuff are located there til now. See: http://wiki.dovecot.org/VirtualUsers http://wiki.dovecot.org/VirtualUsers/Home Regards, - -- Steffen Kaiser -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (GNU/Linux) iQEVAwUBSwJQLXWSIuGy1ktrAQJWHAf/Ueax7ih+G126gd/go8Pjm9+YmQQJfDYF 4kAFghMyKvFTrb0975kCpmJO/qqgFigYcaQCctHC9YvPU5tCBBE+NSKc0Og7zK36 g1zltFFVi96Be7xLlWN2GVoLF9SAdtOV9LfmL3jMSew9tDmOK6/nB9UeDqt0vB4p leb1PQqssvItk6o81SJinwNQ+G2K8W613dCv9Sioxv32pj+5wkGBTbbYb7rTkWnx qZkT3tTM6dpSDnwaRVz14KVFAK69ZvYOe/NpCFq2ZbsWzcPL6t6j+fpzmNrLnq9E /LwTaDl2MebPK8/eFVNAOVj9LEj17KmQAf4rMl/hmadFoNujpuda8Q== =+eye -END PGP SIGNATURE-