cronie issue with sendmail

Issues related to applications and software problems
Post Reply
wedwards
Posts: 1
Joined: 2019/08/25 12:30:51

cronie issue with sendmail

Post by wedwards » 2019/08/25 12:34:44

I have an issue with a custom directive in cronie. I use `ssmtp` which provides a `sendmail` wrapper and I'm telling cronie to use that with some extra parameters:

Code: Select all

[root@clansible ~]# cat /etc/sysconfig/crond 
# Settings for the CRON daemon.
# CRONDARGS= :  any extra command-line startup arguments for crond
CRONDARGS="-m '/usr/sbin/sendmail -FCyberfusionCron -i -odi -oem -oi -t -f CFCron -C ~/ssmtp.conf'"
However, when cronie attempts to send mail, an error like this is placed into `/var/log/cron`:

Code: Select all

Aug 25 14:33:01 clansible CROND[2424969]: (root) MAIL (mailed 95 bytes of output but got status 0x0001#012)
Aug 25 14:33:01 clansible CROND[2424971]: (test) MAIL (mailed 78 bytes of output but got status 0x0001#012)
Aug 25 14:33:01 clansible CROND[2424970]: (root) MAIL (mailed 1222 bytes of output but got status 0x0001#012)
When I remove custom `CRONDARGS`, cron is able to send mail just fine. When I run the `sendmail` command manually, it also works. What is wrong here?

Post Reply

Return to “CentOS 7 - Software Support”