Cron Mailer – What Mailer Does Cron Use to Send Mail?

centoscentos6cronsendmail

I am trying to debug an issue with cron not sending mail on a Centos 6 box that I did not configure. How can I determine which mailer cron is using to send mail? The crontab man page has this to say, in part:

In addition to LOGNAME, HOME, and SHELL, cron(8) will look at MAILTO if it has any reason to send mail as a
result of running commands in "this" crontab. If MAILTO is defined (and non-empty), mail is sent to the user so
named. If MAILTO is defined but empty (MAILTO=""), no mail will be sent. Otherwise mail is sent to the owner
of the crontab. This option is useful if you decide on /bin/mail instead of /usr/lib/sendmail as your mailer
when you install cron — /bin/mail doesn´t do aliasing, and UUCP usually doesn´t read its mail.

The part with asterisks is the part that has me wondering "Well, is it sendmail or mail?"

Best Answer

A quick Google shows me that /etc/sysconfig/crond is the file that defines what mailer is used by cron.

Related Topic