Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Disabling email sending in crontab

242 views
Skip to first unread message

brumik

unread,
Oct 17, 2012, 8:57:08 AM10/17/12
to

In Solaris the mailto="" is unsupported.

We don't want any users on the system to recieve emails from
cronjobs , all jobs *should* redirect output to a log file (> logfile
2>&1 or /devnull) , however sometimes people or software will add
crontabs without redirecting, then we get messages like this:

ct 17 13:49:00 server sendmail[18416]: [ID 801593 mail.crit] NOQUEUE:
SYSERR(root): /etc/mail/submit.cf: line 434: readcf: option RunAsUser:
unknown user smmsp

How can we disable crontab from trying email to send output of
cronjobs? e.g. change the default to send it all to /dev/null instead
of emailing the user.

thanks

chuckers

unread,
Oct 17, 2012, 9:56:32 AM10/17/12
to
You could always add user smmsp to /etc/passwd and /etc/shadow to make those errors go away. In fact, you probably SHOULD add that user as it is part of modern sendmail configs. There were a number of bugs in Solaris patches that didn't add this user when they upgraded sendmail to later versions.
0 new messages