Sending emails from cron not working

Discussion in 'Installation/Configuration' started by Poliman, Feb 1, 2018.

  1. Poliman

    Poliman Member

    After added cron jobs in ISP (user has set up "Full cron") I have in /etc/cron.d file ispc_web28. In the first line of this file is MAILTO=''. I changed it to MAILTO=[email protected] but nothing happens. I have fully operational ISP server with postfix/dovecot which is able to send emails. I also checked from console
    Code:
    echo Test | mail -s Test [email protected]
    and I got an email too. No idea what is wrong. Should MAILTO be added manually to another crontab not this file created by ISP? Somebody any hints?

    PS
    Second line - also automatically created by ISP - is:
    Code:
    SHELL='/bin/sh'
    No idea is it important in this case.
    BTW is it possible to add email field in ISP where user could write an email to which the result of cron would be send?
     
    Last edited: Feb 1, 2018

Share This Page