How can I log all emails going through sSMTP?
I can point my applications to a wrapper script, I just don't know how to write a wrapper script which logs headers and contents to a file (as much information as possible).
Thanks! 🙂
loggingssmtp
How can I log all emails going through sSMTP?
I can point my applications to a wrapper script, I just don't know how to write a wrapper script which logs headers and contents to a file (as much information as possible).
Thanks! 🙂
Best Answer
sSMTP has debug logging built in. In your ssmtp.conf file, include the following line: Debug=YES
When debug logging is active, the entire contents of emails sent via sSMTP, including headers, is logged to syslog.