Whenever Debian is installed, a mail client is also installed. I don't have the faintest idea what is happening below the surface, but if something happens with the system, like a failed cronjob, a mail is sent to my account on that computer.
I can't recall it exactly, but I think during Debian installation I had to specify where system mail has to go to. In my case I am installing as jlinkels, so all mail directed to root goes to jlinkels. I am not sure if that redirection is still asked, on older versions I know it was, but I can't remember I had to tell that while installing newer versions.
Anyway, on all boxes, automagically a folder /home/jlinkels/Maildir is created and within that the subfolders new cur and tmp. Whenever I log in in such a box mail is checked, and when I run mail
I get a listing and can read the mail.
However, now I am running a server for which it is extremely important that I get the mail if there is something exceptional, and this mail
That is, I don't have the ~/Maildir/new ~/Maildir/cur etc, but for some reason I do have ~/new, ~/cur etc. Now when something happens, root receives a mail. This mail is placed in ~/new. But when I run mail
I see that there is no new mail for me. Still there is new and unread mail in ~/new.
Installed Debian Lenny on this box and did nothing unusual. I have installed tens of Lenny boxes and run thru the installation procedure almost with my eyes closed so I am pretty sure I did not do anything out of the ordinary on this box. Still the mail is screwed up.
Now even more than how this happened, I am wondering how to fix it, but I have no idea at all how to start it.
A few observations:
- the system (programs like cron) know they should send mail to root. This happens. I see in the header the mail is sent to root.
- the mail system (whatever that is) knows that mail to root should be sent to jlinkels
- the mail system even knows where to find the mailboxes of jlinkels
- the mail client does not know where to find new mail for jlinkels
I have seen that exim4 is running on the box. Is exim4 responsible for forwarding and dropping the mail in ~/new?
Any pointers to how this mail is produced, how it is dropped in my mailbox, and how the mail client can find this is highly welcomed.
Edit: I see the title should have been "mail not being read by the client" Apparently it is begin delivered.