IMAP not receiving virtual mailbox mail on Postfix/Courier setup
I recently followed the 'Virtual Users And Domains With Postfix, Courier, MySQL And SquirrelMail (CentOS 6.2 x86_64)' guide on HowToForge, and after a lot of graft I have now got the server to a point where I can send and receive mail internally and externally and load the Squirrelmail webpage; however, just as a cruel last little stumbling block, I have discovered here on the home straight that I am not receiving any mail into IMAP since yesterday afternoon, meaning that whilst I can send mail from Squirrelmail, I do not receive any there.
Now, I wish I could tell you what changes I made yesterday afternoon to allow it to briefly work for a few hours before stopping again, but alas, I have made so many changes before and since that I really have no clue. At the time when mail was coming in, yesterday 11am-1pm approx, Squirrelmail wasn't yet loading so I wasn't aware that it was downloading anything.
The failure to download anything into Squirrelmail comes from the fact that IMAP isn't receiving anything new (the six e-mails in the inbox below are the ones that came in yesterday):
The home dir as per authmysqlrc and main.cf is /home/vmail, as suggested by the how-to guide:
telnet mydomain.com 143
Connected to mydomain.com.
Escape character is '^]'.
* OK [CAPABILITY IMAP4rev1 UIDPLUS CHILDREN NAMESPACE THREAD=ORDEREDSUBJECT THREAD=REFERENCES SORT QUOTA IDLE ACL ACL2=UNION STARTTLS] Courier-IMAP ready. Copyright 1998-2011 Double Precision, Inc. See COPYING for distribution information.
0 login user1[a]mydomain.com passwd
0 OK LOGIN Ok.
0 select inbox
* FLAGS (\Draft \Answered \Flagged \Deleted \Seen \Recent)
* OK [PERMANENTFLAGS (\* \Draft \Answered \Flagged \Deleted \Seen)] Limited
* 6 EXISTS
* 0 RECENT
* OK [UIDVALIDITY 1337763508] Ok
* OK [MYRIGHTS "acdilrsw"] ACL
0 OK [READ-WRITE] Ok
Looking in the relevant subdirectory in /home/vmail, I can see the six e-mails also visible in IMAP/Squirrelmail, but no others:
sudo cat /etc/authlib/authmysqlrc| grep HOME
cat /etc/postfix/main.cf | grep vmail
virtual_mailbox_base = /home/vmail
I have sent ample test e-mails since this and they are appearing in /var/spool/mail/user1 rather than /home/vmail, which I take it is wrong? I would be very grateful if someone could help me with this!
-rw------- 1 vmail vmail 1295 May 22 11:39 /home/vmail/mydomain.com/user1/cur/1337683182.Vfd02I1920008M825692.mydomain.com:2,S
-rw------- 1 vmail vmail 1119 May 22 11:40 /home/vmail/mydomain.com/user1/cur/1337683234.Vfd02I192000bM642814.mydomain.com:2,S
-rw------- 1 vmail vmail 1119 May 22 11:49 /home/vmail/mydomain.com/user1/cur/1337683763.Vfd02I192000cM274064.mydomain.com:2,S
-rw------- 1 vmail vmail 1110 May 22 11:49 /home/vmail/mydomain.com/user1/cur/1337683769.Vfd02I192000dM508512.mydomain.com:2,S
-rw------- 1 vmail vmail 1132 May 22 13:24 /home/vmail/mydomain.com/user1/cur/1337689465.Vfd02I192000eM45146.mydomain.com:2,S
-rw------- 1 vmail vmail 1133 May 22 13:27 /home/vmail/mydomain.com/user1/cur/1337689623.Vfd02I192000fM33886.mydomain.com:2,S