password required for email SMTP??

Support and queries relating to all previous versions of ZoneMinder
Locked
jamesw.smith
Posts: 3
Joined: Fri May 20, 2005 7:40 pm

password required for email SMTP??

Post 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?
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post 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
jamesw.smith
Posts: 3
Joined: Fri May 20, 2005 7:40 pm

Post 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.
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

Thanks for posting the solution.

Phil
Locked