Re: [Dovecot] Problems with Upgrade from Courier
I was looking at my dovecot.deliver log and it's showing that it's delivering it to the Inbox:
deliver(samantha.freeze@mybridemail.com): 01/20/2011 10:44:27 Info: auth input: home=/home/vmail/mybridemail.com/samantha.freeze
deliver(samantha.freeze@mybridemail.com): 01/20/2011 10:44:27 Info: maildir: data=/home/vmail/mybridemail.com/samantha.freeze/
deliver(samantha.freeze@mybridemail.com): 01/20/2011 10:44:27 Info: maildir++: root=/home/vmail/mybridemail.com/samantha.freeze, index=, control=, inbox=/home/vmail/mybridemail.com/samantha.freeze
deliver(samantha.freeze@mybridemail.com): 01/20/2011 10:44:27 Info: msgid=<001a01cbb8b8$eabe89c0$c03b9d40$@net>: saved mail to INBOX
However, if I login as her through Telnet, it shows that she has no mail:
FLAGS (\Answered \Flagged \Deleted \Seen \Draft)
OK [PERMANENTFLAGS (\Answered \Flagged \Deleted \Seen \Draft \*)] Flags permitted.
0 EXISTS
0 RECENT
OK [UIDVALIDITY 1295474980] UIDs valid
OK [UIDNEXT 1] Predicted next UID
b OK [READ-WRITE] Select completed.
If I look in the new folder under her folder, it shows the last emails I sent this morning:
-rw------- 1 vmail vmail 3564 Jan 20 10:21 1295536875.M679042P20187.mybridemail.com,W=3672
-rw------- 1 vmail vmail 3540 Jan 20 10:27 1295537272.M522196P26548.mybridemail.com,W=3649
-rw------- 1 vmail vmail 3554 Jan 20 10:39 1295537952.M462095P9353.mybridemail.com,W=3662
-rw------- 1 vmail vmail 3540 Jan 20 10:44 1295538267.M893549P15392.mybridemail.com,W=3649
It's really strange why dovecot can deliver the mail to the inbox but cannot see the inbox when trying to retrieve the mail????
From: Aaron Pettitt [mailto:apettitt@comcast.net] Sent: Thursday, January 20, 2011 10:02 AM To: 'dovecot@dovecot.org' Subject: Problems with Upgrade from Courier
I inherited a server from a previous employee. The server crashed so it was time to move everything over to another server. We have a web mail site and I installed everything running dovecot, postfix and roundcube. After I installed it, everything worked great when I created a new user. The new user could send and receive emails with no issues. I then copied the home directory over from the other server and ran the courier-dovecot migration script. It created the subscription files and the dovecot-uidlist files in each user (about 1000 total users). When I login as one of the existing users, it says that there is no mail in the mailbox. However, if I look at the user's cur and new folders, there is mail in those folders. If I send a new mail to the user, it does not show up in their inbox. If I look in their new folder, the new mail that I sent was delivered to that folder but it does not show up in their inbox. I've tried going to dovecot directly through telnet with the same results. I've been stuck for 2 days now so any help is greatly appreciated. Below is my dovecot.conf with all the comments removed.
Thanks all!
protocols = imap imaps
disable_plaintext_auth = no
log_path = '/var/log/dovecot/error.log'
info_log_path = '/var/log/dovecot/info.log'
log_timestamp = "%m/%d/%Y %H:%M:%S "
#mail_location = maildir:~/
mail_location = maildir:/home/vmail/%d/%n/
mail_privileged_group = mail
mail_debug = yes
protocol imap {
}
protocol pop3 {
}
protocol managesieve {
sieve_storage=~/sieve
}
protocol lda {
log_path = /home/vmail/dovecot-deliver.log
auth_socket_path = /var/run/dovecot/auth-master
postmaster_address = postmaster@mybridemal.com
mail_plugins = cmusieve
global_script_path = /home/vmail/globalsieverc
}
auth_verbose = yes
auth_debug = no
auth_debug_passwords = no
auth default {
passdb sql {
args = /etc/dovecot/dovecot-sql.conf
}
args = uid=5000 gid=5000 home=/home/vmail/%d/%n allow_all_users=yes
}
user = root
path = /var/run/dovecot/auth-master
mode = 0600
user = vmail
#group =
}
client {
path = /var/spool/postfix/private/auth
mode = 0660
user = postfix
group = postfix
}
}
}
}
On Thu, 2011-01-20 at 11:02 -0500, Aaron Pettitt wrote:
It's really strange why dovecot can deliver the mail to the inbox but cannot see the inbox when trying to retrieve the mail????
Set mail_debug=yes. See what it logs when logging in as the user. It should log where it's looking for the mails.
Thanks for the reply Timo. Here are parts of the debug log and it looks just like a user that works.
dovecot: 01/20/2011 10:27:25 Info: imap-login: Login: user=<Samantha.Freeze@mybridemail.com>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured dovecot: 01/20/2011 10:27:25 Info: IMAP(Samantha.Freeze@mybridemail.com): Effective uid=5000, gid=5000, home=/home/vmail/mybridemail.com/Samantha.Freeze dovecot: 01/20/2011 10:27:25 Info: IMAP(Samantha.Freeze@mybridemail.com): maildir: data=~/ dovecot: 01/20/2011 10:27:25 Info: IMAP(Samantha.Freeze@mybridemail.com): maildir++: root=/home/vmail/mybridemail.com/Samantha.Freeze, index=, control=, inbox=/home/vmail/mybridemail.com/Samantha.Freeze dovecot: 01/20/2011 10:27:25 Info: IMAP(Samantha.Freeze@mybridemail.com): Disconnected: Logged out bytes=50/115
Here is my login which is one that works:
dovecot: 01/19/2011 20:13:24 Info: IMAP(aaron@mybridemail.com): Effective uid=5000, gid=5000, home=/home/vmail/mybridemail.com/aaron dovecot: 01/19/2011 20:13:24 Info: IMAP(aaron@mybridemail.com): maildir: data=/home/vmail/mybridemail.com/aaron/ dovecot: 01/19/2011 20:13:24 Info: IMAP(aaron@mybridemail.com): maildir++: root=/home/vmail/mybridemail.com/aaron, index=, control=, inbox=/home/vmail/mybridemail.com/aaron dovecot: 01/19/2011 20:13:24 Info: imap-login: Login: user=<aaron@mybridemail.com>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, secured dovecot: 01/19/2011 20:13:24 Info: IMAP(aaron@mybridemail.com): Disconnected: Logged out bytes=91/474
-----Original Message----- From: Timo Sirainen [mailto:tss@iki.fi] Sent: Thursday, January 20, 2011 4:21 PM To: Aaron Pettitt Cc: dovecot@dovecot.org Subject: Re: [Dovecot] Problems with Upgrade from Courier
On Thu, 2011-01-20 at 11:02 -0500, Aaron Pettitt wrote:
It's really strange why dovecot can deliver the mail to the inbox but cannot see the inbox when trying to retrieve the mail????
Set mail_debug=yes. See what it logs when logging in as the user. It should log where it's looking for the mails.
On 20.1.2011, at 23.37, Aaron Pettitt wrote:
Note the difference of upper/lowercasing:
dovecot: 01/20/2011 10:27:25 Info: IMAP(Samantha.Freeze@mybridemail.com): maildir++: root=/home/vmail/mybridemail.com/Samantha.Freeze, index=, control=, inbox=/home/vmail/mybridemail.com/Samantha.Freeze
vs.
deliver(samantha.freeze@mybridemail.com): 01/20/2011 10:44:27 Info: maildir++: root=/home/vmail/mybridemail.com/samantha.freeze, index=, control=, inbox=/home/vmail/mybridemail.com/samantha.freeze
A simple solution would be:
auth_username_format = %Lu
That did it Timo. Thank you so much!!!! I guess coming from the windows world, some habits are still hard to break... Again, I can't thank you enough!
-----Original Message----- From: Timo Sirainen [mailto:tss@iki.fi] Sent: Thursday, January 20, 2011 4:49 PM To: Aaron Pettitt Cc: dovecot@dovecot.org Subject: Re: [Dovecot] Problems with Upgrade from Courier
On 20.1.2011, at 23.37, Aaron Pettitt wrote:
Note the difference of upper/lowercasing:
dovecot: 01/20/2011 10:27:25 Info: IMAP(Samantha.Freeze@mybridemail.com): maildir++: root=/home/vmail/mybridemail.com/Samantha.Freeze, index=, control=, inbox=/home/vmail/mybridemail.com/Samantha.Freeze
vs.
deliver(samantha.freeze@mybridemail.com): 01/20/2011 10:44:27 Info: maildir++: root=/home/vmail/mybridemail.com/samantha.freeze, index=, control=, inbox=/home/vmail/mybridemail.com/samantha.freeze
A simple solution would be:
auth_username_format = %Lu
participants (2)
-
Aaron Pettitt
-
Timo Sirainen