Block cron emails
Hello,
We're seeing a lot of spam emails via cron. Is it possible to block all emails via cron, esp. for non-root users?
We tried using /etc/cron.deny but it's not working.
Thanks.
-
Hi, You can either try adding the below line at the end of the specific cron >/dev/null 2>&1 And also, you can set a variable at the top of the user cron file: MAILTO="" 0 -
adding the below line at the end of the specific cron
The mail logs show mails from cron but we don't where those cron jobs are. We just want to block all cron jobs except those run by the system.0 -
We tried using /etc/cron.deny but it's not working.
Hello, Could you let us know what entries you added to this file? Did you try restarting the crond service after setting up that file? Thank you.0
Please sign in to leave a comment.
Comments
3 comments