Code: Select all
sudo -u www-data ssmtp -v myemail < mail.txt
Code: Select all
Sep 4 13:59:35 serverbox sSMTP[10661]: Sent mail for myemail (221 See you later) uid=33 username=www-data outbytes=343
Code: Select all
2018-09-04 14:06:14.724810 zmfilter 7951 INF Notification email sent zmfilter.pl
2018-09-04 14:06:14.682380 zmfilter 7951 INF Attaching '/usr/share/zoneminder/www/events/10/18/09/04/14/03/50/Event-112879-r1-s1.avi zmfilter.pl
2018-09-04 14:06:14.641270 zmfilter 7951 INF Attaching '/usr/share/zoneminder/www/events/10/18/09/04/14/03/50/00132-capture.jpg zmfilter.pl
2018-09-04 14:06:14.599230 zmfilter 7951 INF Attaching '/usr/share/zoneminder/www/events/10/18/09/04/14/03/50/00026-capture.jpg zmfilter.pl
2018-09-04 14:06:14.556350 zmfilter 7951 INF Sending notification email 'ZoneMinder: Alarm' zmfilter.pl
2018-09-04 14:06:13.786140 zmfilter 7951 INF Creating notification email
What makes this even more puzzling is that I have the exact same configuration working on another server.