Using CentOS 5 and trying to send an email from the command line (for crontab emailing attachments). mail and mutt execute without errors, but I just never receive any emails. I'm running exim as the local smtp server. My email address is a gmail account.
[root@server ~]# mail -s "hello subject" [email protected] < test_message.txt
[root@server ~]# mutt -s "hello subject" [email protected] < test_message.txt
[root@server ~]#
When I ran mutt by itself, it said there was no /var/spool/mail/root. So I touched it:
[root@server ~]# touch /var/spool/mail/root
still no emails to my gmail account... What do I need to do?
Check /var/log/maillog to see what errors (if any) are present.
/var/spool/mail/root is a local mailbox i.e. for incoming mail rather than an outgoing spool.
For outgoing mail, it's contained in /var/spool/mqueue
At least, this is where sendmail and postfix have their queues on CentOS, I'm not actually sure about exim, but it should be the same.