Emails Vanishing from a Users Inbox

This sounds strange doesn’t it, there one minute, gone the next.Initially I thought the server was at fault, perhaps a misguided spambox script was deleting the wrong directory or something like that.

Turns out it was much simpler than that, after looking at the maillog (which displays POP3 and IMAP Connections), it turns out the user was accessing the same account with 2 different protocols. As you’re probably aware, POP3 downloads messages from the Inbox, and IMAP work’s by downloading headers, and the body in a seperate action.

So, every time the user connected with pop3, the emails would be downloaded to the local machine. Then they would go back to their IMAP program and the emails had vanished.

I’m disappointed it took me so long to work out what was happening, but once again, the logfiles come to the rescue, hope this is insightful.

tail -60000 /var/log/maillog | grep "account@domain.com"

RoundCube Not Sending Emails (Cpanel)

Run this command in a shell prompt: tail -20 /var/cpanel/roundcube/log/errors

It might list errors like the following:
[30-May-2009 12:06:24] Invalid response code received from server (-1):
[30-May-2009 12:06:24] Invalid response code received from server (-1):
[30-May-2009 12:06:24] Invalid response code received from server (-1):
[30-May-2009 12:06:24 +0100] SMTP Error: SMTP error: Authentication failure: Invalid response code received from server (Code: -1)

If you’re getting errors whenever someone sends an email using Roundcube Webmail try the following:
/scripts/makecpphp

This will rebuild Cpanel/WHM php setup. This seems to work for some people so it’s worth a shot.