[Dovecot] migration from bincIMAP
Hello all
I am using Freebsd 4.10stable, postfix 2.1.5 with SASL and TLS,
procmail version 3.22 and binc IMAP 1.2.8 binc uses IMAPdir style mail
boxes, Spam assassin, and ClamAV. Wish to convert to dovecot but your
program does not support IMAPdir does it??? also i have many user
accounts that i wish to use untouched if possible. I guess this is a
migration question for the most part i am switching to dovecot because
of its ability to use postgre database files and real log file. Is
there a simple way to achieve this without losing any of my users mail?
-- COMPUTER KING for all your computer needs http://www.computerking.ca email luck@computerking.ca phone 403-613-LUCK (5825)
Hosting, Networking, Disaster Recovery, and Virus Removal solutions fit for royalty.
Intel based SYSTEMS Toshiba Fujutsu Sony Acer and many more LAPTOPS Full line of high quality PARTS
Current Specials
Samsung printers and HOSTING packages
On Thu, 2004-12-30 at 14:33 -0700, RYAN vAN GINNEKEN wrote:
I am using Freebsd 4.10stable, postfix 2.1.5 with SASL and TLS,
procmail version 3.22 and binc IMAP 1.2.8 binc uses IMAPdir style mail boxes, Spam assassin, and ClamAV. Wish to convert to dovecot but your program does not support IMAPdir does it??? also i have many user accounts that i wish to use untouched if possible. I guess this is a migration question for the most part i am switching to dovecot because of its ability to use postgre database files and real log file. Is there a simple way to achieve this without losing any of my users mail?
IMAPdir is almost fully compatible with Maildir++ layout which Dovecot uses. I think the only somewhat problematic part is if users had used dots in mailbox names, but even then they're not lost.
Another difference which clients would see after switching to Dovecot is that hierarchy separator changes into '.' instead of '/'. Some clients may get confused because of that. With Dovecot 1.0-tests you could configure it to use '/' as well.
There are some generic documents about migrating to Dovecot in Wiki:
http://wiki.dovecot.org/Migration http://wiki.dovecot.org/MissingMailboxes
default_mail_env = maildir:/usr/home/%u/IMAPdir i also tried this default_mail_env = maildir:/usr/home/%u/IMAPdir/ i even tried this default_mail_env = maildir:/usr/home/%u/IMAPdir/INBOX
get this error from my mail client
The current command did not succeed. The mail server responded:.
get this in the logs
map-login: Dec 30 16:04:06 Info: Login: test [192.168.0.1] imap-login: Dec 30 16:04:20 Info: Login: rmvg [192.168.0.1] imap-login: Dec 30 16:04:20 Info: Login: maillist [192.168.0.1] imap-login: Dec 30 16:04:21 Info: Login: rmvg [192.168.0.1] imap-login: Dec 30 16:04:21 Info: Login: test [192.168.0.1] imap-login: Dec 30 16:04:21 Info: Login: luck [192.168.0.1] imap-login: Dec 30 16:04:21 Info: Login: moshi [192.168.0.1] imap(test): Dec 30 16:04:24 Error: mkdir(/usr/home/test/IMAPdir/.Trash) failed: No such file or directory
I read the generic stuff you sent to me again but i cannot see anything that relates to this specific problem.
Timo Sirainen wrote:
On Thu, 2004-12-30 at 14:33 -0700, RYAN vAN GINNEKEN wrote:
I am using Freebsd 4.10stable, postfix 2.1.5 with SASL and TLS,
procmail version 3.22 and binc IMAP 1.2.8 binc uses IMAPdir style mail boxes, Spam assassin, and ClamAV. Wish to convert to dovecot but your program does not support IMAPdir does it??? also i have many user accounts that i wish to use untouched if possible. I guess this is a migration question for the most part i am switching to dovecot because of its ability to use postgre database files and real log file. Is there a simple way to achieve this without losing any of my users mail?IMAPdir is almost fully compatible with Maildir++ layout which Dovecot uses. I think the only somewhat problematic part is if users had used dots in mailbox names, but even then they're not lost.
Another difference which clients would see after switching to Dovecot is that hierarchy separator changes into '.' instead of '/'. Some clients may get confused because of that. With Dovecot 1.0-tests you could configure it to use '/' as well.
There are some generic documents about migrating to Dovecot in Wiki:
http://wiki.dovecot.org/Migration http://wiki.dovecot.org/MissingMailboxes
default_mail_env = maildir:/usr/home/%u/IMAPdir i also tried this default_mail_env = maildir:/usr/home/%u/IMAPdir/ i even tried this default_mail_env = maildir:/usr/home/%u/IMAPdir/INBOX
get this error from my mail client
The current command did not succeed. The mail server responded:.
get this in the logs
map-login: Dec 30 16:04:06 Info: Login: test [192.168.0.1] imap-login: Dec 30 16:04:20 Info: Login: rmvg [192.168.0.1] imap-login: Dec 30 16:04:20 Info: Login: maillist [192.168.0.1] imap-login: Dec 30 16:04:21 Info: Login: rmvg [192.168.0.1] imap-login: Dec 30 16:04:21 Info: Login: test [192.168.0.1] imap-login: Dec 30 16:04:21 Info: Login: luck [192.168.0.1] imap-login: Dec 30 16:04:21 Info: Login: moshi [192.168.0.1] imap(test): Dec 30 16:04:24 Error: mkdir(/usr/home/test/IMAPdir/.Trash) failed: No such file or directory
I read the generic stuff you sent to me again but i cannot see anything that relates to this specific problem.
Timo Sirainen wrote:
On Thu, 2004-12-30 at 14:33 -0700, RYAN vAN GINNEKEN wrote:
I am using Freebsd 4.10stable, postfix 2.1.5 with SASL and TLS,
procmail version 3.22 and binc IMAP 1.2.8 binc uses IMAPdir style mail boxes, Spam assassin, and ClamAV. Wish to convert to dovecot but your program does not support IMAPdir does it??? also i have many user accounts that i wish to use untouched if possible. I guess this is a migration question for the most part i am switching to dovecot because of its ability to use postgre database files and real log file. Is there a simple way to achieve this without losing any of my users mail?IMAPdir is almost fully compatible with Maildir++ layout which Dovecot uses. I think the only somewhat problematic part is if users had used dots in mailbox names, but even then they're not lost.
Another difference which clients would see after switching to Dovecot is that hierarchy separator changes into '.' instead of '/'. Some clients may get confused because of that. With Dovecot 1.0-tests you could configure it to use '/' as well.
There are some generic documents about migrating to Dovecot in Wiki:
http://wiki.dovecot.org/Migration http://wiki.dovecot.org/MissingMailboxes
I have posted this message serveral times but have not recieved a response i will attrubute this to the holiday season. However i have been working on this project the whole time. I have looked in the achrives month by month ( is there a seachable kind?) and have found nothing relating to my problem with imapdir. I hate to beg but please help.
have noticed that dovecot seems to create direcotories .drafts .trash .sent items but my mail from binc is stored in Drafts Sent and Trash is there a simple fix for this as i have looked everywhere.
have set this in my conf file
default_mail_env = maildir:/usr/home/%u/IMAPdir i also tried this default_mail_env = maildir:/usr/home/%u/IMAPdir/ i even tried this default_mail_env = maildir:/usr/home/%u/IMAPdir/INBOX
get this error from my mail client
The current command did not succeed. The mail server responded:.
get this in the logs
map-login: Dec 30 16:04:06 Info: Login: test [192.168.0.1] imap-login: Dec 30 16:04:20 Info: Login: rmvg [192.168.0.1] imap-login: Dec 30 16:04:20 Info: Login: maillist [192.168.0.1] imap-login: Dec 30 16:04:21 Info: Login: rmvg [192.168.0.1] imap-login: Dec 30 16:04:21 Info: Login: test [192.168.0.1] imap-login: Dec 30 16:04:21 Info: Login: luck [192.168.0.1] imap-login: Dec 30 16:04:21 Info: Login: moshi [192.168.0.1] imap(test): Dec 30 16:04:24 Error: mkdir(/usr/home/test/IMAPdir/.Trash) failed: No such file or directory
I read the generic stuff you sent to me again but i cannot see anything that relates to this specific problem.
Timo Sirainen wrote:
On Thu, 2004-12-30 at 14:33 -0700, RYAN vAN GINNEKEN wrote:
I am using Freebsd 4.10stable, postfix 2.1.5 with SASL and TLS,
procmail version 3.22 and binc IMAP 1.2.8 binc uses IMAPdir style mail boxes, Spam assassin, and ClamAV. Wish to convert to dovecot but your program does not support IMAPdir does it??? also i have many user accounts that i wish to use untouched if possible. I guess this is a migration question for the most part i am switching to dovecot because of its ability to use postgre database files and real log file. Is there a simple way to achieve this without losing any of my users mail?IMAPdir is almost fully compatible with Maildir++ layout which Dovecot uses. I think the only somewhat problematic part is if users had used dots in mailbox names, but even then they're not lost.
Another difference which clients would see after switching to Dovecot is that hierarchy separator changes into '.' instead of '/'. Some clients may get confused because of that. With Dovecot 1.0-tests you could configure it to use '/' as well.
There are some generic documents about migrating to Dovecot in Wiki:
http://wiki.dovecot.org/Migration http://wiki.dovecot.org/MissingMailboxes
I have posted this message serveral times but have not recieved a response i will attrubute this to the holiday season. However i have been working on this project the whole time. I have looked in the achrives month by month ( is there a seachable kind?) and have found nothing relating to my problem with imapdir. I hate to beg but please help.
have noticed that dovecot seems to create direcotories .drafts .trash .sent items but my mail from binc is stored in Drafts Sent and Trash is there a simple fix for this as i have looked everywhere.
have set this in my conf file
default_mail_env = maildir:/usr/home/%u/IMAPdir i also tried this default_mail_env = maildir:/usr/home/%u/IMAPdir/ i even tried this default_mail_env = maildir:/usr/home/%u/IMAPdir/INBOX
get this error from my mail client
The current command did not succeed. The mail server responded:.
get this in the logs
map-login: Dec 30 16:04:06 Info: Login: test [192.168.0.1] imap-login: Dec 30 16:04:20 Info: Login: rmvg [192.168.0.1] imap-login: Dec 30 16:04:20 Info: Login: maillist [192.168.0.1] imap-login: Dec 30 16:04:21 Info: Login: rmvg [192.168.0.1] imap-login: Dec 30 16:04:21 Info: Login: test [192.168.0.1] imap-login: Dec 30 16:04:21 Info: Login: luck [192.168.0.1] imap-login: Dec 30 16:04:21 Info: Login: moshi [192.168.0.1] imap(test): Dec 30 16:04:24 Error: mkdir(/usr/home/test/IMAPdir/.Trash) failed: No such file or directory
I read the generic stuff you sent to me again but i cannot see anything that relates to this specific problem.
Timo Sirainen wrote:
On Thu, 2004-12-30 at 14:33 -0700, RYAN vAN GINNEKEN wrote:
I am using Freebsd 4.10stable, postfix 2.1.5 with SASL and TLS,
procmail version 3.22 and binc IMAP 1.2.8 binc uses IMAPdir style mail boxes, Spam assassin, and ClamAV. Wish to convert to dovecot but your program does not support IMAPdir does it??? also i have many user accounts that i wish to use untouched if possible. I guess this is a migration question for the most part i am switching to dovecot because of its ability to use postgre database files and real log file. Is there a simple way to achieve this without losing any of my users mail?IMAPdir is almost fully compatible with Maildir++ layout which Dovecot uses. I think the only somewhat problematic part is if users had used dots in mailbox names, but even then they're not lost.
Another difference which clients would see after switching to Dovecot is that hierarchy separator changes into '.' instead of '/'. Some clients may get confused because of that. With Dovecot 1.0-tests you could configure it to use '/' as well.
There are some generic documents about migrating to Dovecot in Wiki:
http://wiki.dovecot.org/Migration http://wiki.dovecot.org/MissingMailboxes
RYAN vAN GINNEKEN wrote:
Personally, I've never heard if IMAPdir, so I can't help there. However, from what Timo says, if you're using Dovecot 1.0 (the Test series) you can _probably_ configure it to work.
I can't see in your original posting which version you are using.
have noticed that dovecot seems to create direcotories .drafts .trash .sent items but my mail from binc is stored in Drafts Sent and Trash is there a simple fix for this as i have looked everywhere.
Almost certainly it is your mail client creating these folders, not Dovecot. If you are using multiple mail clients, check to make sure they use the same folder names. I know Thunderbird is totaly configurable in this respect.
have set this in my conf file
default_mail_env = maildir:/usr/home/%u/IMAPdir
This means mail is delivered to /usr/home/%u/IMAPdir/new And read mail is moved to /usr/home/%u/IMAPdur/cur
i also tried this default_mail_env = maildir:/usr/home/%u/IMAPdir/
Unlike postfix and others, Dovecot doesn't need the trailing / to determing you mean maildir.
i even tried this default_mail_env = maildir:/usr/home/%u/IMAPdir/INBOX
Does that directory exist? Where is your MDA configured to deliver mail to?
get this error from my mail client
The current command did not succeed. The mail server responded:.
get this in the logs
map-login: Dec 30 16:04:06 Info: Login: test [192.168.0.1] imap-login: Dec 30 16:04:20 Info: Login: rmvg [192.168.0.1] imap-login: Dec 30 16:04:20 Info: Login: maillist [192.168.0.1] imap-login: Dec 30 16:04:21 Info: Login: rmvg [192.168.0.1] imap-login: Dec 30 16:04:21 Info: Login: test [192.168.0.1] imap-login: Dec 30 16:04:21 Info: Login: luck [192.168.0.1] imap-login: Dec 30 16:04:21 Info: Login: moshi [192.168.0.1] imap(test): Dec 30 16:04:24 Error: mkdir(/usr/home/test/IMAPdir/.Trash) failed: No such file or directory
Does that directory exist? If not, how much of that path exists? If it does, what are the permissions?
-- Curtis Maloney
Curtis Maloney wrote:
RYAN vAN GINNEKEN wrote:
Personally, I've never heard if IMAPdir, so I can't help there. However, from what Timo says, if you're using Dovecot 1.0 (the Test series) you can _probably_ configure it to work.
I can't see in your original posting which version you are using.
I am using the stable version dovecot-0.99.12.1 hate to switch as version 1 is not in the ports collection of freebsd.
have noticed that dovecot seems to create direcotories .drafts .trash .sent items but my mail from binc is stored in Drafts Sent and Trash is there a simple fix for this as i have looked everywhere.
Almost certainly it is your mail client creating these folders, not Dovecot. If you are using multiple mail clients, check to make sure they use the same folder names. I know Thunderbird is totaly configurable in this respect.
hmmmm why would it create these only after i installed dovecot? as before with bincIMAP these forlders were not created
have set this in my conf file
default_mail_env = maildir:/usr/home/%u/IMAPdir
This means mail is delivered to /usr/home/%u/IMAPdir/new And read mail is moved to /usr/home/%u/IMAPdur/cur
No mail is delivered to maildir:/usr/home/%u/IMAPdir/INBOX see below and subseqently the new and cur forlders that you mentioin above. However there are new and cur dirs in the IMAPdir as well. I do not care and can switch where the mail goes as long as my email clients can figure out where it is and find the other existing folders and emals too. (i use mostly mozilla)
here is the setting in my POSTFIX main.cf although i think that procmail is delivering most of my clients mail these days have included that setting too.
POSTFIX home_mailbox = IMAPdir/INBOX/
PROCMAIL MAILDIR=$HOME/IMAPdir DEFAULT=$MAILDIR/INBOX/
i also tried this default_mail_env = maildir:/usr/home/%u/IMAPdir/
Unlike postfix and others, Dovecot doesn't need the trailing / to determing you mean maildir.
i even tried this default_mail_env = maildir:/usr/home/%u/IMAPdir/INBOX
So this is the correct setting then for dovecot right?? default_mail_env = maildir:/usr/home/%u/IMAPdir/INBOX
Does that directory exist? Where is your MDA configured to deliver mail to?
get this error from my mail client
The current command did not succeed. The mail server responded:.
get this in the logs
map-login: Dec 30 16:04:06 Info: Login: test [192.168.0.1] imap-login: Dec 30 16:04:20 Info: Login: rmvg [192.168.0.1] imap-login: Dec 30 16:04:20 Info: Login: maillist [192.168.0.1] imap-login: Dec 30 16:04:21 Info: Login: rmvg [192.168.0.1] imap-login: Dec 30 16:04:21 Info: Login: test [192.168.0.1] imap-login: Dec 30 16:04:21 Info: Login: luck [192.168.0.1] imap-login: Dec 30 16:04:21 Info: Login: moshi [192.168.0.1] imap(test): Dec 30 16:04:24 Error: mkdir(/usr/home/test/IMAPdir/.Trash) failed: No such file or directory
Does that directory exist? If not, how much of that path exists? If it does, what are the permissions?
No test does not exist anymore but the account exists in my email client still.
-- Curtis Maloney
On Mon, 2005-01-03 at 20:01 -0700, RYAN vAN GINNEKEN wrote:
have noticed that dovecot seems to create direcotories .drafts .trash .sent items but my mail from binc is stored in Drafts Sent and Trash is there a simple fix for this as i have looked everywhere.
Almost certainly it is your mail client creating these folders, not Dovecot. If you are using multiple mail clients, check to make sure they use the same folder names. I know Thunderbird is totaly configurable in this respect.
hmmmm why would it create these only after i installed dovecot? as before with bincIMAP these forlders were not created
I guess it's possible that binc treats them case-insensitively somehow, but I doubt it.. In any case, Dovecot creates them only if client asks it to.
No mail is delivered to maildir:/usr/home/%u/IMAPdir/INBOX see below and subseqently the new and cur forlders that you mentioin above.
If you want new mail to get written to
POSTFIX home_mailbox = IMAPdir/INBOX/
Usually with Maildir the INBOX would be in IMAPdir/ directly, but yes, I forgot that with IMAPdir layout it was in INBOX/ directory.
Dovecot 0.99.x doesn't actually support defining separate location for maildir INBOX, so you'd have to remove the INBOX/ from there. ie. the directory layout should be:
IMAPdir/new/ <- new mails get written there IMAPdir/cur/ <- mails get moved in there IMAPdir/.Drafts/new/ <- new draft mails there etc.
PROCMAIL MAILDIR=$HOME/IMAPdir DEFAULT=$MAILDIR/INBOX/
And just DEFAULT=$MAILDIR/ in here.
So this is the correct setting then for dovecot right?? default_mail_env = maildir:/usr/home/%u/IMAPdir/INBOX
That would make all subfolders to be under IMAPdir/INBOX/ directory, which most likely isn't what you want.
imap(test): Dec 30 16:04:24 Error: mkdir(/usr/home/test/IMAPdir/.Trash) failed: No such file or directory
Does that directory exist? If not, how much of that path exists? If it does, what are the permissions?
No test does not exist anymore but the account exists in my email client still.
So it is a real error because the client tries to read test's mail which doesn't exist.
Ok timo this is what i have done to try and get things to go
I set my postfix main.cf file to this just to test things. #DOVECOT home_mailbox = IMAPdir/
Also changed my .procmailrc to #DOVECOT DEFAULT=$MAILDIR/
My dovcot.conf remained set to default_mail_env = maildir:/%h/IMAPdir
All this works very well except that all the old mail is no where to be seen. I am ok with this as a working system but there must be some way to global ally link users to there old mail?? even if mail is now being delivered to a new directory. This would be ideal and i could switch to dovecot without users losing any mail or more importantly without me havening to fix every user account by hand or script ( i have limited scripting abilities and my understanding of the maildir system is equally limited)
I have set things up as follows for testing imaps on port 10443 (imap on 10143 which will only be used locally for squirrellmail anyway) because i cannot take down the mail system for more than a few seconds at a time and am getting sick of turning off and on Binc and Dovecot as well as making changes to a bunch of config files every time. This lets me run dovecot and binc at the same time on different ports let me know what you think of this and what i can try to link users to there old mail or any other suggestions you may have.
I have left the postfix main.cf because i do not want to mess up the working binc stuff. Have changed the .procmailrc for the one test account that has been set up on the server.
POSTFIX main.cf #BINC home_mailbox = IMAPdir/INBOX/
PROCMAIL .procmailrc #DOVECOT DEFAULT=$MAILDIR/
DOVECOT dovecot.conf imap_listen = 127.0.0.1:10143 imaps_listen = *:10993 default_mail_env = maildir:/%h/IMAPdir
I get this in my dovecot log think it is just to do with using outllook as client ????
imap-login: Jan 08 19:36:03 Info: Login: test [192.168.0.1] imap-login: Jan 08 19:36:03 Warning: SSL_read() syscall failed: EOF [192.168.0.1]
Timo Sirainen wrote:
On Mon, 2005-01-03 at 20:01 -0700, RYAN vAN GINNEKEN wrote:
have noticed that dovecot seems to create direcotories .drafts .trash .sent items but my mail from binc is stored in Drafts Sent and Trash is there a simple fix for this as i have looked everywhere.
Almost certainly it is your mail client creating these folders, not Dovecot. If you are using multiple mail clients, check to make sure they use the same folder names. I know Thunderbird is totaly configurable in this respect.
hmmmm why would it create these only after i installed dovecot? as before with bincIMAP these forlders were not created
I guess it's possible that binc treats them case-insensitively somehow, but I doubt it.. In any case, Dovecot creates them only if client asks it to.
No mail is delivered to maildir:/usr/home/%u/IMAPdir/INBOX see below and subseqently the new and cur forlders that you mentioin above.
If you want new mail to get written to
POSTFIX home_mailbox = IMAPdir/INBOX/
Usually with Maildir the INBOX would be in IMAPdir/ directly, but yes, I forgot that with IMAPdir layout it was in INBOX/ directory.
Dovecot 0.99.x doesn't actually support defining separate location for maildir INBOX, so you'd have to remove the INBOX/ from there. ie. the directory layout should be:
IMAPdir/new/ <- new mails get written there IMAPdir/cur/ <- mails get moved in there IMAPdir/.Drafts/new/ <- new draft mails there etc.
PROCMAIL MAILDIR=$HOME/IMAPdir DEFAULT=$MAILDIR/INBOX/
And just DEFAULT=$MAILDIR/ in here.
So this is the correct setting then for dovecot right?? default_mail_env = maildir:/usr/home/%u/IMAPdir/INBOX
That would make all subfolders to be under IMAPdir/INBOX/ directory, which most likely isn't what you want.
imap(test): Dec 30 16:04:24 Error: mkdir(/usr/home/test/IMAPdir/.Trash) failed: No such file or directory
Does that directory exist? If not, how much of that path exists? If it does, what are the permissions?
No test does not exist anymore but the account exists in my email client still.
So it is a real error because the client tries to read test's mail which doesn't exist.
I have done some checking and it seem that dovecot only sees mailboxes that start with a dot is there a way to make it see regular directories ? here is my dir listing of the test account
drwx------ 5 test www 512 Jan 8 19:17 .Drafts drwx------ 2 test www 512 Jan 8 15:23 .INBOX drwx------ 5 test www 512 Jan 8 19:17 .Sent Items drwx------ 5 test www 512 Jan 8 19:17 .Trash -rw------- 1 test www 24 Jan 8 19:07 .bincimap-subscribed -rw------- 1 test www 5 Jan 8 15:23 .customflags -rw------- 1 test www 42 Jan 9 01:49 .subscriptions drwx------ 5 test www 512 Jan 9 01:49 .test folder drwx--x--- 5 test www 512 Jan 8 19:08 Drafts drwx--x--- 5 test www 512 Jan 9 01:40 INBOX drwx--x--- 5 test www 512 Jan 8 19:10 Sent drwx--x--- 5 test www 512 Nov 2 09:44 Trash -rwx--x--- 1 test www 222 Jun 17 2004 bincimap-cache -rwx--x--- 1 test www 71 Jun 17 2004 bincimap-uidvalidity drwx------ 2 test www 512 Jan 8 19:34 cur -rw------- 1 test www 187 Jan 8 19:34 dovecot-uidlist drwx------ 2 test www 512 Jan 8 19:34 new -rw------- 1 test www 885 Jan 8 19:33 razor-agent.log drwx------ 2 test www 512 Jan 8 19:33 tmp
The first several directories are created by the client (Outlook) using dovecot and the remaining ones are created previously using the same client but with BINC. Dovecot does not see the other directories but binc sees all. Am i missing something in the dovecot.conf i messed with a few things but nothing seemed to work.
Ok timo this is what i have done to try and get things to go
I set my postfix main.cf file to this just to test things. #DOVECOT home_mailbox = IMAPdir/
Also changed my .procmailrc to #DOVECOT DEFAULT=$MAILDIR/
My dovcot.conf remained set to default_mail_env = maildir:/%h/IMAPdir
All this works very well except that all the old mail is no where to be seen. I am ok with this as a working system but there must be some way to global ally link users to there old mail?? even if mail is now being delivered to a new directory. This would be ideal and i could switch to dovecot without users losing any mail or more importantly without me havening to fix every user account by hand or script ( i have limited scripting abilities and my understanding of the maildir system is equally limited)
I have set things up as follows for testing imaps on port 10443 (imap on 10143 which will only be used locally for squirrellmail anyway) because i cannot take down the mail system for more than a few seconds at a time and am getting sick of turning off and on Binc and Dovecot as well as making changes to a bunch of config files every time. This lets me run dovecot and binc at the same time on different ports let me know what you think of this and what i can try to link users to there old mail or any other suggestions you may have.
I have left the postfix main.cf because i do not want to mess up the working binc stuff. Have changed the .procmailrc for the one test account that has been set up on the server.
POSTFIX main.cf #BINC home_mailbox = IMAPdir/INBOX/
PROCMAIL .procmailrc #DOVECOT DEFAULT=$MAILDIR/
DOVECOT dovecot.conf imap_listen = 127.0.0.1:10143 imaps_listen = *:10993 default_mail_env = maildir:/%h/IMAPdir
I get this in my dovecot log think it is just to do with using outllook as client ????
imap-login: Jan 08 19:36:03 Info: Login: test [192.168.0.1] imap-login: Jan 08 19:36:03 Warning: SSL_read() syscall failed: EOF [192.168.0.1]
Timo Sirainen wrote:
On Mon, 2005-01-03 at 20:01 -0700, RYAN vAN GINNEKEN wrote:
have noticed that dovecot seems to create direcotories .drafts .trash .sent items but my mail from binc is stored in Drafts Sent and Trash is there a simple fix for this as i have looked everywhere.
Almost certainly it is your mail client creating these folders, not Dovecot. If you are using multiple mail clients, check to make sure they use the same folder names. I know Thunderbird is totaly configurable in this respect.
hmmmm why would it create these only after i installed dovecot? as before with bincIMAP these forlders were not created
I guess it's possible that binc treats them case-insensitively somehow, but I doubt it.. In any case, Dovecot creates them only if client asks it to.
No mail is delivered to maildir:/usr/home/%u/IMAPdir/INBOX see below and subseqently the new and cur forlders that you mentioin above.
If you want new mail to get written to
POSTFIX home_mailbox = IMAPdir/INBOX/
Usually with Maildir the INBOX would be in IMAPdir/ directly, but yes, I forgot that with IMAPdir layout it was in INBOX/ directory.
Dovecot 0.99.x doesn't actually support defining separate location for maildir INBOX, so you'd have to remove the INBOX/ from there. ie. the directory layout should be:
IMAPdir/new/ <- new mails get written there IMAPdir/cur/ <- mails get moved in there IMAPdir/.Drafts/new/ <- new draft mails there etc.
PROCMAIL MAILDIR=$HOME/IMAPdir DEFAULT=$MAILDIR/INBOX/
And just DEFAULT=$MAILDIR/ in here.
So this is the correct setting then for dovecot right?? default_mail_env = maildir:/usr/home/%u/IMAPdir/INBOX
That would make all subfolders to be under IMAPdir/INBOX/ directory, which most likely isn't what you want.
imap(test): Dec 30 16:04:24 Error: mkdir(/usr/home/test/IMAPdir/.Trash) failed: No such file or directory
Does that directory exist? If not, how much of that path exists? If it does, what are the permissions?
No test does not exist anymore but the account exists in my email client still.
So it is a real error because the client tries to read test's mail which doesn't exist.
On Sun, 2005-01-09 at 03:20 -0700, RYAN vAN GINNEKEN wrote:
I have done some checking and it seem that dovecot only sees mailboxes that start with a dot is there a way to make it see regular directories
Not without changing source code. But it is planned sometime in future.
So looks like IMAPdir and Maildir++ were more different than I thought. You'd have to make some script to fix the folders names..
Ok timo this is what i have done to try and get things to go
I set my postfix main.cf file to this just to test things. #DOVECOT home_mailbox = IMAPdir/
Also changed my .procmailrc to #DOVECOT DEFAULT=$MAILDIR/
My dovcot.conf remained set to default_mail_env = maildir:/%h/IMAPdir
All this works very well except that all the old mail is no where to be seen. I am ok with this as a working system but there must be some way to global ally link users to there old mail??
You'd have to move them from IMAPdir/INBOX/cur/ directory to IMAPdir/cur/ directory.
With 1.0-tests it would be possible to add :INBOX=%h/IMAPdir/INBOX to default_mail_env setting to do this, but that feature isn't in 0.99.x.
I get this in my dovecot log think it is just to do with using outllook as client ????
imap-login: Jan 08 19:36:03 Info: Login: test [192.168.0.1] imap-login: Jan 08 19:36:03 Warning: SSL_read() syscall failed: EOF [192.168.0.1]
Just keep ssl_verbose=no as it is in defaults. Warnings such as that are normal when it's enabled. It only means that Outlook disconnected without sending a "SSL bye" command.
participants (4)
-
Curtis Maloney
-
RYAN vAN GINNEKEN
-
RYAN vAN GINNEKEN
-
Timo Sirainen