Page 1 of 1

password required for email SMTP??

Posted: Wed Jun 15, 2005 5:44 pm
by jamesw.smith
I'm running zm 1.21.1 on a SuSE 9.2 system. I've yet to get the email working. With the new option in zmfilter.pl I get the following error in zmfilter.log

--------------------
Creating notification email
Sending notification email 'ZoneMinder: Alarm - DLink-900w-68 (69 - 25 14)'
Attaching '1/68/011-capture.jpg
Can't send email: SMTP MAIL command failed:
authentication required - for help go to http://help.yahoo.com/help/us/sbc/dsl/m ... op-11.html

at /usr/local/bin/zmfilter.pl line 786
------------------

My smtp server, smtp.swbell.yahoo.com, does require authentication as a plain password to send email. Is there a way to spply this password with MIME::Lite?

Posted: Wed Jun 15, 2005 9:58 pm
by zoneminder
Off the top of my head I don't know. If there is an option it will be in Net::SMTP I suspect. I will have to have a look and see if it's possible.

Phil

Posted: Thu Jul 28, 2005 7:57 pm
by jamesw.smith
Here's how to resolve the problem I listed above. That is, how to get ZM to send email when your ISP requires a password. I apologize to any and all who have previously posted solutions. But, I didn't find them.

I needed to setup postfix (used instead of sendmail by SUSE) to offer my isp as a relayhost. How to do that is very well described under the Postfix section of:

http://efflandt.freeshell.org/sbc-smtp-auth.html

As you see there, the configuration file, main.cf, requires the relyahost name and a password file that contains the username and password. Then the 2 commands are given to restart things. It is all nicely spelled out in the URL above. (Congrats to the author.)

In ZM I use the new MIME:Lite option (Ya gotta get that too.), ZM_EMAIL_HOST is localhost in my case. Restart zm.

Posted: Fri Jul 29, 2005 11:38 am
by zoneminder
Thanks for posting the solution.

Phil