Digital Marketing

Set MAILTO Variable To Change Crontab Email

If MAILTO is defined (and non-empty), mail is sent to the user instead.

MAILTO="sysadmin@goyun.info"
@daily /root/scripts/daily.sh 
MAILTO="cto@goyun.info"
* 10 * * * /root/scripts/report.sh
#
# Disable email alert for rest of jobs
#
MAILTO=""
#Other cron jobs

Comments

Popular posts from this blog

Fixed WSL sshd: no hostkeys available -- exiting

PowerMTA pmta command

How to fix: mv: failed to preserve ownership