Cronie does not respect MAILTO

Suddenly, cronie is sending email to username@mail.domain
instead of the email specified in /etc/crontab with MAILTO:
(where “username” is my local user name and “mail.domain”
is the domain given in the MAILTO: line)

Has anyone seen this and know a fix?

In case anyone runs into this: I had to change one line in
/etc/ssmtp/ssmtp.conf from




Not sure why that worked but cronie is emailing me again :slight_smile:

1 Like

In case anyone runs into this, the solution seems to be:

In the file /etc/ssmtp/ssmtp.conf change




Also add to the /etc/ssmtp/revaliases file the user mapping for the users you want the CRON messages to go to, like this:
1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.