Skip to content

Instantly share code, notes, and snippets.

@vnznznz
Last active February 7, 2024 09:52
Show Gist options
  • Save vnznznz/7d9f4e7289b8654d00067adf9d44c789 to your computer and use it in GitHub Desktop.
Save vnznznz/7d9f4e7289b8654d00067adf9d44c789 to your computer and use it in GitHub Desktop.
Sendmail dummy for logging cron mails to syslog. Save it to `/usr/sbin/sendmail`, apply `chmod +x` and then see cron mails in `journalctl -f`
#!/bin/bash
/usr/bin/logger -t "sendmail" "'$*'"
/usr/bin/logger -t sendmail <&0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment