我已经安装了PostFix和sendmail两者,然后尝试为 python 脚本设置 cron 并希望通过 cron 发送电子邮件。
我的 cron 时间表如下:
MAILTO=test@example.com
*/2 * * * * python3 /var/test.py >> /var/log/test.log 2>&1
Run Code Online (Sandbox Code Playgroud)
Cron 仍然没有发送任何电子邮件。
请帮助我需要做更多的事情。
cron ×1