No one on the server is able to view emails after update.

I upgraded Ubuntu from 12.04 to 14.04 today. After the upgrade no user on my server is able to see there email. Some of the users are using Usermin, some are using Outlook and some are using Thunderbird to collect there email. Prior to the update all users could view/send receive their email with out any problem. If I view there email through Webmin> Servers> Read User Mail> I can see that they all have new mail in their accounts. But when they click send and receive in there email client or they login to Usermin there appears to be no email to collect.

Do you have any suggestion what may be causing this and how to fix it?

Status: 
Closed (fixed)

Comments

Howdy -- it's possible that the Dovecot settings changed between your previous distro version and this one.

What you may want to do is to attempt to check email, and then review /var/log/mail.log to see if any error messages show up there.

Hi Eric

Thanks for your reply. Below are the log entrys when I try to retreive mail.

When I attempt to view mail with Usermin

Mar 23 14:16:39 myserver dovecot: imap-login: Login: user=<MyUserName>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=32077, secured, session=<1yHzm+4REgB/AAAB>
Mar 23 14:16:39 myserver dovecot: imap-login: Login: user=<MyUserName>, method=PLAIN, rip=127.0.0.1, lip=127.0.0.1, mpid=32078, secured, session=<Ym/zm+4REwB/AAAB>
Mar 23 14:16:40 myserver dovecot: imap(MyUserName): Connection closed in=360 out=3183
Mar 23 14:16:40 myserver dovecot: imap(MyUserName): Connection closed in=335 out=2813

When I attempt to view mail with Thunderbird

Mar 23 14:17:59 myserver dovecot: pop3-login: Login: user=<MyUserName>, method=PLAIN, rip=192.168.0.1, lip=192.168.0.145, mpid=32174, TLS, session=<eei2oO4RJQDAqAAB>
Mar 23 14:17:59 myserver dovecot: pop3(MyUserName): Disconnected: Logged out top=0/0, retr=0/0, del=0/0, size=0
Mar 23 14:17:59 myserver dovecot: pop3-login: Login: user=<MyUserName2>, method=PLAIN, rip=192.168.0.1, lip=192.168.0.145, mpid=32175, TLS, session=<Ac23oO4RJgDAqAAB>
Mar 23 14:17:59 myserver dovecot: pop3(MyUserName2): Disconnected: Logged out top=0/0, retr=0/0, del=0/0, size=0

This all looks fine to me.

Hmm, I don't see any errors, it looks like it just thinks there's no email there.

What output do you receive if you run this command:

dovecot -n

Hi Eric

Thanks for your replys. I have also posted this over on the forum incase anyone reads it there.

I started looking through the Dovecot settings and found

Mail file location

had been set during the upgrade to

mbox:~/mail:INBOX=/var/mail/%u

I changed it to

Detect automatically

and the mail all started to come down. Please let me know if 'Detect automatically' is the incorrect setting

Thanks

Ah, yeah it sounds like that's the problem.

If "Detect automatically" is working for you, that's probably fine, though on a new installation Virtualmin sets that to the following:

mail_location = maildir:~/Maildir

Thanks eric

I have set it as you suggested above an that works.