Operating System - HP-UX
1820635 Members
1825 Online
109626 Solutions
New Discussion юеВ

Sendmail Using authentication

 
SDSE IT
New Member

Sendmail Using authentication

Hi all,

Has anyone ever had to setup authentication with sendmail. I need to pass a userid and password to our relay server now whenever we send a mail.

Is this possible and if so how?

Regards

Boris
2 REPLIES 2
Michael Steele_2
Honored Contributor

Re: Sendmail Using authentication

Hi

I don't know if this is what you want, build :

Uncomment the following entries in the /etc/mail/sendmail.cf file:
C{TrustAuthMech}GSSAPI DIGEST-MD5 LOGIN PLAIN
O AuthMechanisms=GSSAPI KERBEROS_V4 DIGEST-MD5 CRAM-MD5
LOGIN PLAIN EXTERNAL
O DefaultAuthInfo=/etc/mail/default-auth-info
O AuthOptions=A

/etc/mail/default-auth-info file

AUTH related
If sendmail acts as client, it needs some information how to authenticate against another MTA. This information can be provided by the ruleset authinfo. The authinfo ruleset looks up {server_name} using the tag AuthInfo: in the access map. If no entry is found, {server_addr} is looked up in the same way and finally just the tag AuthInfo: to provide default values.

AuthInfo:other.dom "U:user" "I:user" "P:secret" "R:other.dom" "M:DIGEST-MD5"
AuthInfo:more.dom "U:user" "P=c2VjcmV0"

http://www.sendmail.org/~ca/email/sm-812.html

DefaultAuthInfo
Set filename that contains authentication information for outgoing connections. This file must contain the user id, the authorization id, the password (plain text), and the realm to use, each on a separate line and must be readable by root (or the trusted user) only. If no realm is specified, $j will be used.

http://docs.hp.com/en/5992-3190/5992-3190.pdf

But, this is for sendmail 8.13.3. So, you may have to upgrade to the latest sendmail.
Support Fatherhood - Stop Family Law
Steven E. Protter
Exalted Contributor

Re: Sendmail Using authentication

Shalom Boris,

Previously posted procedures will work for any recent version of sendmail.

For security and usability reasons, its best before proceeding to download the latest sendmail depot from http://software.hp.com and install it.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com