smtp authentication

Forum for questions and support relating to the 1.29.x releases only.
Locked
alabamatoy
Posts: 360
Joined: Sun Jun 05, 2016 2:53 pm

smtp authentication

Post by alabamatoy »

My SMTP server requires authentication. I found this discussion which mentions changing a line of the /usr/bin/zmfilter.pl from

Code: Select all

MIME::Lite->send( "smtp", $Config{ZM_EMAIL_HOST}, Timeout=>60 );
to

Code: Select all

MIME::Lite->send( "smtp", ZM_EMAIL_HOST, AuthUser=>'EMAIL@ADDR.COM', AuthPass=>'XXX', Timeout=>60 )
I am somewhat surprised that ZM doesn't support this authentication functionality natively....but the above change concerns me. It would seem that putting a password into code is quite unwise. I would expect ZM email config to have a way of storing this in a hash or something mo bettah than just plain text in a perl script. This authentication is required by my ISP, which otherwise blocks SMTP, and they make me use the same PW for this SMTP access that also accesses the rest of my account with them. Am I overthinking this? Is there a simpler more secure way to make ZM do the authentication my SMTP server requires?
bbunge
Posts: 2956
Joined: Mon Mar 26, 2012 11:40 am
Location: Pennsylvania

Re: smtp authentication

Post by bbunge »

if you use nullmailer you can set up authentication. Google is you friend to learn how to do this...
Locked