From: dave on
I've just started renting my own smtp server at 34sp.com

Here are the settings from sendmail.mc and submit.mc:

define(`SMART_HOST',`smtp.34sp.com')
FEATURE(`authinfo',`hash -o /etc/mail/authinfo.db')dnl

And my authinfo:

AuthInfo:smtp.34sp.com "I:user" "U:user" "P:pass"
"M:DIGEST-MD5"
AuthInfo:smtp.34sp.com:25 "I:user" "U:user"
"P:pass" "M:DIGEST-MD5"

A few results:

echo '/map authinfo AuthInfo:smtp.34sp.com' |
-bt dave(a)xxxxxxx.com
map_lookup: authinfo (AuthInfo:smtp.34sp.com) returns "I:user"
"U:user" "P:password" "M:DIGEST-MD5" (0)

echo Test | sendmail -v -X log dave(a)xxxxxxbla.com
220 smtp4.34sp.com ESMTP Postfix
>>> EHLO Junius.TheBigVoid.org
250-smtp4.34sp.com
250-PIPELINING
250-SIZE 31457280
250-ETRN
250-STARTTLS
250-AUTH LOGIN PLAIN DIGEST-MD5 CRAM-MD5
250-AUTH=LOGIN PLAIN DIGEST-MD5 CRAM-MD5
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN
>>> STARTTLS
220 2.0.0 Ready to start TLS
>>> EHLO Junius.TheBigVoid.org
250-smtp4.34sp.com
250-PIPELINING
250-SIZE 31457280
250-ETRN
250-AUTH LOGIN PLAIN DIGEST-MD5 CRAM-MD5
250-AUTH=LOGIN PLAIN DIGEST-MD5 CRAM-MD5
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 DSN
>>> MAIL From:<root(a)xxxxxxx.net> SIZE=5
>>> AUTH=root(a)Junius.TheBigVoid.org
250 2.1.0 Ok
>>> RCPT To:<dave(a)xxxxxxx.co.uk>
>>> DATA
554 5.7.1 <dave(a)xxxxxxx.co.uk>: Relay access denied
554 5.5.1 Error: no valid recipients
>>> RSET
250 2.0.0 Ok

As you can see it doesn't even try to auth after starttls and mail is
rejected.

In my authinfo I have tried PLAIN and LOGIN PLAIN too with same
result.

Any ideas what to look for? I have been googling all day for this and
every howto/guide I have read on setting up sendmail as a client to
relay and auth has the same settings that I use.

Is there some other test I can do to see if the authinfo file is being
read and matched?

Any help greatly appreciated.

David

Feel disillusioned? I've got some great new illusions ...
From: dave on
On 2010-04-08, dave put forth the proposition:
> I've just started renting my own smtp server at 34sp.com
>
> Here are the settings from sendmail.mc and submit.mc:
>
> define(`SMART_HOST',`smtp.34sp.com')
> FEATURE(`authinfo',`hash -o /etc/mail/authinfo.db')dnl
>
> And my authinfo:
>
> AuthInfo:smtp.34sp.com "I:user" "U:user" "P:pass"
> "M:DIGEST-MD5"
> AuthInfo:smtp.34sp.com:25 "I:user" "U:user"
> "P:pass" "M:DIGEST-MD5"

I should also add that I have smtp2.34sp.com smtp3 smtp4 etc to 6
since they use all those servers. No change.

>
> A few results:
>
> echo '/map authinfo AuthInfo:smtp.34sp.com' |
> -bt dave(a)xxxxxxx.com
> map_lookup: authinfo (AuthInfo:smtp.34sp.com) returns "I:user"
> "U:user" "P:password" "M:DIGEST-MD5" (0)
>
> echo Test | sendmail -v -X log dave(a)xxxxxxbla.com
> 220 smtp4.34sp.com ESMTP Postfix
>>>> EHLO Junius.TheBigVoid.org
> 250-smtp4.34sp.com
> 250-PIPELINING
> 250-SIZE 31457280
> 250-ETRN
> 250-STARTTLS
> 250-AUTH LOGIN PLAIN DIGEST-MD5 CRAM-MD5
> 250-AUTH=LOGIN PLAIN DIGEST-MD5 CRAM-MD5
> 250-ENHANCEDSTATUSCODES
> 250-8BITMIME
> 250 DSN
>>>> STARTTLS
> 220 2.0.0 Ready to start TLS
>>>> EHLO Junius.TheBigVoid.org
> 250-smtp4.34sp.com
> 250-PIPELINING
> 250-SIZE 31457280
> 250-ETRN
> 250-AUTH LOGIN PLAIN DIGEST-MD5 CRAM-MD5
> 250-AUTH=LOGIN PLAIN DIGEST-MD5 CRAM-MD5
> 250-ENHANCEDSTATUSCODES
> 250-8BITMIME
> 250 DSN
>>>> MAIL From:<root(a)xxxxxxx.net> SIZE=5
>>>> AUTH=root(a)Junius.TheBigVoid.org
> 250 2.1.0 Ok
>>>> RCPT To:<dave(a)xxxxxxx.co.uk>
>>>> DATA
> 554 5.7.1 <dave(a)xxxxxxx.co.uk>: Relay access denied
> 554 5.5.1 Error: no valid recipients
>>>> RSET
> 250 2.0.0 Ok
>
> As you can see it doesn't even try to auth after starttls and mail is
> rejected.
>
> In my authinfo I have tried PLAIN and LOGIN PLAIN too with same
> result.
>
> Any ideas what to look for? I have been googling all day for this and
> every howto/guide I have read on setting up sendmail as a client to
> relay and auth has the same settings that I use.
>
> Is there some other test I can do to see if the authinfo file is being
> read and matched?
>
> Any help greatly appreciated.
>
> David
>
> Feel disillusioned? I've got some great new illusions ...
On the subject of C program indentation:

"In My Egotistical Opinion, most people's C programs should be
indented six feet downward and covered with dirt."
-- Blair P. Houghton