1829166 Members
2154 Online
109986 Solutions
New Discussion

Re: SMTP Auth ???

 
Amod
Occasional Advisor

SMTP Auth ???

Hi All,

We have recently upgraded out SMTP server to encorporate SMTP Auth. We are forcing internal users to authenticate on SMTP server before sending mails. But since then we are facing many problems (mainly for mails generated by automated scripts, web interfaces etc.)

Has anyone configured SMTP Auth ? Can someone help me to generate some mechanism for selective authentication ?

Thanks,
Amod.
If you can't change it, enjoy it !!
3 REPLIES 3
Jerome Henry
Honored Contributor

Re: SMTP Auth ???

Hi,

Are you working with smtp auth in sendmail or standard postfix implementation ? Which version ?

J
You can lean only on what resists you...
Balaji N
Honored Contributor

Re: SMTP Auth ???

is it sendmail and smtp auth
then here is the link.

http://www.sendmail.org/~ca/email/auth.html
http://www.jonfullmer.com/smtpauth/

both these links were very cryptic and some how managed to get it working. here is a quick shot how to. let me know if ur still stuck.

1. Configure smart relay (DS)
2. enable authentication. there is a flag. AuthOptions which contains the keyword, A. IIRC, this means do not offer authentication. remove this.
3. Enable the auth mechanisims. We used login.
4. enable the default authinfo file. the permission of this file should be 400
the file should be
username
username
password
domainname (mail server)
5. restart sendmail and hope it works.

this is the steps which i remember doing for configuring sendmail as a client to authenticate and relay mails. additionally our mail server used to check if the mail address where the mail comes from is a valid mail address on the server. so we used sendmail -f username@domainname in scripts.

hth
-balaji

Its Always Important To Know, What People Think Of You. Then, Of Course, You Surprise Them By Giving More.
Avinoam
Frequent Advisor

Re: SMTP Auth ???

Hello

Well i implemented Sendmail Auth using redhat , so if you are using other system the attribute should be the same.

in redhat you should remove the dnl from the following 3 lines in your /etc/mail/sendmail.mc :
1. dnl define(`confAUTH_OPTIONS', `A p')dnl
2. dnl TRUST_AUTH_MECH(`EXTERNAL DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl
3. dnl define(`confAUTH_MECHANISMS', `EXTERNAL API DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl

After Removing the dnl from the begining of those 3 lines you should run :
m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf

restart your sendmail service , and walla it should work.

Sababa