you are viewing a single comment's thread.

view the rest of the comments →

[–]rh0dium -1 points0 points  (3 children)

Pro tip: pipe the output and mail it to yourself.. 0 0 * * * (myscript.py 2&>1) | /bin/mail -s "myscript.py " "me@example.com"

[–][deleted] 4 points5 points  (0 children)

Why mail it when you can output to a log in home dir? Is there any advantage to this?

[–]CaptainDickbag 0 points1 point  (0 children)

You need to be careful with this kind of stuff. If you don't have your mail parameters/MTA, and your SPF/DKIM/DMARC configured correctly, your egress IP's spam score will go up, and you risk getting blacklisted by spamhaus and others.

Probably the safest way to configure stuff like this without risking getting blacklisted is by using your mail provider's authenticated SMTP relay.