Email problems using SSMTP

Forum for questions and support relating to the 1.24.x releases only.
Locked
jmcgee
Posts: 27
Joined: Thu Sep 25, 2008 2:22 am

Email problems using SSMTP

Post by jmcgee »

I cannot get ZM to send email.

the log says it does, but nothing is sent.

10/19/10 21:26:48.224732 zmfilter[24274].INF [Creating notification email]
10/19/10 21:26:48.225411 zmfilter[24274].INF [Sending notification email 'ZoneMinder: Alarm - Front-left-524 (8 - 6 29)']
10/19/10 21:26:48.229235 zmfilter[24274].INF [Notification email sent]

I can send email fine at command line using SSMTP as command, what mail command should I use to test ZM from command line?

This is on ubuntu 10.04 with ZM 1.24.2
jmcgee
Posts: 27
Joined: Thu Sep 25, 2008 2:22 am

Re: Email problems using SSMTP

Post by jmcgee »

Well, no replies and no progress lots of googling.

I did get an email from the ZM box this morning,

/etc/cron.daily/logrotate:
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName

Odd that it came from the email address that it is sending from. But hey, at least the OS knows how to send email.
uboltun
Posts: 1
Joined: Mon Dec 13, 2010 1:45 am
Location: USA

Post by uboltun »

I managed to get it to work with ssmtp and my gmail account with some editing of zmfilter.pl. There are two places that look essentially the same.

old code:

MIME::Lite->send( "smtp", ZM_EMAIL_HOST, Timeout=>60 );
$mail->send();

new code:
#MIME::Lite->send( "smtp", ZM_EMAIL_HOST, Timeout=>60 );
#$mail->send();
$mail->send('sendmail','/usr/sbin/ssmtp',emailaddress);
Locked