Advertisement

04.09.2008 at 12:28PM PDT, ID: 23309411
[x]
Attachment Details

Sendmail authentication configuration for outgoing mail relay on Solaris

Asked by jvossler in SendMail Email Server, Sun Solaris, Simple Mail Transfer Protocol (SMTP)

Tags: sendmail, sendmail, 8.13.8, Solaris

I have downloaded and am attempting to set up a Solaris 10 system to use mail relay for a small number of outgoing emails.  I have an email account and thus a username and password for this provider.

I have set this exact configuration up in the past with different providers but I am running into issues I am unable to resolve.

I compiled and installed sendmail 8.13.8 using the sasl libraries and an appropriate sendmail.mc file

I am attempting to use the /etc/mail/default-auth-info files for holding the authentication data as I have in the past but nothig is working.

Here are some usefull outputs:

RUN FROM LOCAL HOST
sendmail -d0.1 -bv root
Version 8.13.8
 Compiled with: DNSMAP LOG MAP_REGEX MATCHGECOS MILTER MIME7TO8 MIME8TO7
                NAMED_BIND NDBM NETINET NETINET6 NETUNIX NIS NISPLUS PIPELINING
                SASLv2 SCANF XDEBUG

============ SYSTEM IDENTITY (after readcf) ============
      (short domain name) $w = Charon
  (canonical domain name) $j = Charon.localdomain
         (subdomain name) $m = localdomain
              (node name) $k = Charon
========================================================

quit

telnet localhost 80
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 Charon.localdomain ESMTP Sendmail 8.13.8/8.13.8; Wed, 9 Apr 2008 13:22:16 -0600 (MDT)
ehlo localhost
250-Charon.localdomain Hello localhost [127.0.0.1], pleased to meet you
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-EXPN
250-VERB
250-8BITMIME
250-SIZE
250-DSN
250-ETRN
250-DELIVERBY
250 HELP
quit
221 2.0.0 Charon.localdomain closing connection
Connection to localhost closed by foreign host.

END

I am concerned that I did not get an "AUTH" output line from the telnet.  Thus I am not certain that authorization is enabled.

SENDMAIL.MC FILE
divert(0)dnl
VERSIONID(`$Id: ITI-solaris.mc,v 8.13 2001/06/27 21:46:30 gshapiro Exp $')
OSTYPE(solaris2)dnl
DOMAIN(generic)dnl
define(`confFALLBACK_SMARTHOST', `mailhost$?m.$m$.')dnl
MAILER(`local')dnl
MAILER(`smtp')dnl
define(`SMART_HOST', `smtpout.secureserver.net')dnl
define(`confAUTH_MECHANISMS', `EXTERNAL GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl
define(`confDEF_AUTH_MECHANISMS',`/etc/mail/default-auth-info')dnl
FEATURE(`authinfo',`dbm /etc/mail/default-auth-info')dnl
define(`confAUTH_OPTIONS', `A')dnl
TRUST_AUTH_MECH(`EXTERNAL GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl

LOCAL_NET_CONFIG
R$* < @ $* .$m. > $*    $#esmtp $@ $2.$m $: $1 < @ $2.$m. > $3

END OF SENDMAIL.MC FILE


DEFAULT-AUTH-INFO FILE
AuthInfo:smtpout.secureserver.net "U:<myemail>@<mydomain>.net" "I:<myemail>@<mydomain>.net" "P:<mypassword>" "M:Plain"

END DEFAULT-AUTH-INFO FILE


When I run mailx from the command line I get the following verbose dialog

John@vosslers.net... Connecting to [127.0.0.1] via relay...
220 Charon.localdomain ESMTP Sendmail 8.13.8/8.13.8; Wed, 9 Apr 2008 13:29:09 -0600 (MDT)
>>> EHLO Charon.localdomain
250-Charon.localdomain Hello localhost [127.0.0.1], pleased to meet you
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-EXPN
250-VERB
250-8BITMIME
250-SIZE
250-DSN
250-ETRN
250-DELIVERBY
250 HELP
>>> VERB
250 2.0.0 Verbose mode
>>> MAIL From:<John@vosslers.net> SIZE=93
250 2.1.0 <John@vosslers.net>... Sender ok
>>> RCPT To:<John@vosslers.net>
>>> DATA
250 2.1.5 <John@vosslers.net>... Recipient ok
354 Enter mail, end with "." on a line by itself
>>> .
050 <John@vosslers.net>... Connecting to smtpout.secureserver.net via relay...
050 220 smtpauth22.prod.mesa1.secureserver.net ESMTP
050 >>> EHLO Charon.localdomain
050 250-smtpauth22.prod.mesa1.secureserver.net
050 250-AUTH LOGIN PLAIN
050 250-8BITMIME
050 250 PIPELINING
050 >>> QUIT
050 221 Good bye.
050 <John@vosslers.net>... Deferred: Temporary AUTH failure
250 2.0.0 m39JT93B005472 Message accepted for delivery
John@vosslers.net... Sent (m39JT93B005472 Message accepted for delivery)
Closing connection to [127.0.0.1]
>>> QUIT
221 2.0.0 Charon.localdomain closing connection


Any and all help is appreciated.

Start Free Trial
[+][-]04.09.2008 at 06:15PM PDT, ID: 21320816

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.09.2008 at 07:23PM PDT, ID: 21321181

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.10.2008 at 05:04PM PDT, ID: 21330452

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.11.2008 at 07:34AM PDT, ID: 21334626

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]04.11.2008 at 06:08PM PDT, ID: 21339394

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]04.11.2008 at 08:04PM PDT, ID: 21339667

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]05.08.2008 at 02:38PM PDT, ID: 21528699

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: SendMail Email Server, Sun Solaris, Simple Mail Transfer Protocol (SMTP)
Tags: sendmail, sendmail, 8.13.8, Solaris
Sign Up Now!
Solution Provided By: jvossler
Participating Experts: 1
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628