LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-26-2005, 01:29 PM   #1
DieSpeedy
LQ Newbie
 
Registered: Jun 2004
Posts: 5

Rep: Reputation: 0
Question Sendmail seems not to use default-auth-info


Hello,

I am really despareted.

I am trying to set up sendmail with SMTP-Auth.
Sendmail itself is working fine. But I have to use SMTP-Auth for my ISP to send mails to @t-online.de and @web.de.

So I added both domains with smtp.1und1.de to the mailertable.

Also I added the following config to sendmail.cf
Definiert define(`confAUTH_MECHANISMS',`DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl
Definiert define(`confDEF_AUTH_INFO', `/etc/mail/default-auth-info')dnl
Mailer MAILER(`local')dnl

But all I got is a the following error:
... mailer=smtp, pri=121014, relay=smtp.1und1.de. [212.227.15.183], ds
n=5.1.1, stat=User unknown
Sep 26 20:17:44 xxxhost sendmail[18665]: j8QIHQi4018653: j8QIHii3018665: DSN : User unknown

Does anybody has an idea why the default-auth-info file will not be used?
(The data in the file are absolutly correct. I already checked it.)

I really don`t know what else I can do. I`ve read a lot of hints to smtp-auth but I couldn`t find the mistake. :-(

Thx 4 all help!

DieSpeedy
 
Old 09-26-2005, 04:02 PM   #2
Pete M
Member
 
Registered: Aug 2003
Location: UK
Distribution: Redhat 9 FC 3 SUSE 9.2 SUSE 9.3 Gentoo 2005.0 Debian Sid
Posts: 657

Rep: Reputation: 32
DieSpeedy

Unless you are extremely good with Sendmail don't edit sendmail.cf

Edit sendmail.mc then make sendmail.cf

Perhaps this thread will help

Read it carefully as there are 2 options depending on your version of Sendmail

SMTP Authority

Pete
 
Old 09-27-2005, 02:48 AM   #3
DieSpeedy
LQ Newbie
 
Registered: Jun 2004
Posts: 5

Original Poster
Rep: Reputation: 0
Temporary AUTH Failure

Hi Pete,

thanks you now I am a little bit smarter. :-)

I changed the settings for using access_db instead of default_auth_info, because I am using sendmail 8.13.x. Now I can see that my server wants to authentificate itself at the server of my isp. But now I recieve a temporary AUTH failure. I increased the loglevel, but I really don`t understand what`s wrong now.

Sep 27 02:57:45 xxxhost sendmail[6408]: STARTTLS=client, relay=smtp.1und1.de., version=TLSv1/SSLv3
, verify=FAIL, cipher=DES-CBC3-SHA, bits=168/168
Sep 27 02:57:46 xxxhost sendmail[6408]: j8R0OZMm005660: AUTH=client, available mechanisms do not fulfill requirements
Sep 27 02:57:46 xxxhost sendmail[6408]: j8R0OZMm005660: to=<xyz@web.de>, ctladdr=<zzz@somewhrere.de> (501/501), delay=00:33:10, xdelay=00:00:01, mailer=smtp, pri=1651013, relay
=smtp.1und1.de. [212.227.15.183], dsn=4.0.0, stat=Deferred: Temporary AUTH failure

Do you have any idea what could be the Problem now?

Is it possible that there exists a problem because I am using certificates at my network?

Pls... HELP!

DieSpeedy
 
Old 09-27-2005, 11:21 AM   #4
Pete M
Member
 
Registered: Aug 2003
Location: UK
Distribution: Redhat 9 FC 3 SUSE 9.2 SUSE 9.3 Gentoo 2005.0 Debian Sid
Posts: 657

Rep: Reputation: 32
Hi DieSpeedy

Post me your sendmail.mc preferably in code tags

Plus knowing your distro would be nice

Pete
 
Old 09-28-2005, 01:00 PM   #5
DieSpeedy
LQ Newbie
 
Registered: Jun 2004
Posts: 5

Original Poster
Rep: Reputation: 0
My Configuration

Hi Pete,

thanks for your help.

I am using Mandrake 10.1 and here is my sendmail.m4. (I am sorry, but I am not sure, what`s meant by "in code tags"). But I deleted the lines which seems to be only comments. :-)

divert(-1)
dnl You will need to have the sendmail-cf package installed for this to
dnl work.
include(`../m4/cf.m4')dnl
define(`confDEF_USER_ID',``mail:mail'')dnl
OSTYPE(`unknown')
undefine(`UUCP_RELAY')dnl
undefine(`BITNET_RELAY')dnl
define(`confALIAS_WAIT', `30')dnl
define(`confTO_CONNECT', `1m')dnl
define(`confTRY_NULL_MX_LIST',true)dnl
define(`confDONT_PROBE_INTERFACES',true)dnl
define(`PROCMAIL_MAILER_PATH',`/usr/bin/procmail')dnl
dnl
MASQUERADE_AS(`localdomain')dnl
MASQUERADE_DOMAIN(`localdomain')dnl
dnl
FEATURE(`smrsh',`/usr/sbin/smrsh')dnl
FEATURE(mailertable)dnl
FEATURE(`virtusertable',`hash -o /etc/mail/virtusertable')dnl
FEATURE(`genericstable',`hash -o /etc/mail/genericstable')dnl
FEATURE(redirect)dnl
FEATURE(use_cw_file)dnl
FEATURE(local_procmail)dnl
FEATURE(`access_db')dnl
FEATURE(`blacklist_recipients')dnl
FEATURE(`relay_based_on_MX')dnl
FEATURE(`delay_checks')dnl
FEATURE(`stickyhost')dnl
dnl
define(`confAUTH_MECHANISMS',`DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl
dnl
define(`confAUTH_OPTIONS', `A y')dnl
dnl
define(`CERT_DIR',`/etc/ssl/sendmail') dnl
define(`confCACERT_PATH', `CERT_DIR')dnl
define(`confCACERT', `CERT_DIR/CAcert.pem')dnl
define(`confSERVER_CERT', `CERT_DIR/MYcert.pem')dnl
define(`confSERVER_KEY', `CERT_DIR/MYkey.pem')dnl
define(`confCLIENT_CERT', `CERT_DIR/MYcert.pem')dnl
define(`confCLIENT_KEY', `CERT_DIR/MYkey.pem')dnl
dnl
define(`confPRIVACY_FLAGS',`goaway,restrictqrun,restrictmailq')dnl
define(`confSMTP_LOGIN_MSG', `This EMSTP server welcomes you.')dnl
MAILER(smtp)dnl
MAILER(local)dnl
MAILER(procmail)dnl
undefine(`SMART_HOST')
INPUT_MAIL_FILTER(`avmilter',`S=inet:3333@localhost,F=T,T=S:10m;R:10m;E:5m')

Hope this will help.

Thx a lot.

DieSpeedy
 
Old 09-28-2005, 04:07 PM   #6
Pete M
Member
 
Registered: Aug 2003
Location: UK
Distribution: Redhat 9 FC 3 SUSE 9.2 SUSE 9.3 Gentoo 2005.0 Debian Sid
Posts: 657

Rep: Reputation: 32
Hi DieSpeedy

As I don't use Mandrake and your sendmail.mc looks OK did some research and apparently on your distro cyrus-sasl needs plugins added for your specific requirements

Here's a list I found on the net

Put them in code tags so you can see what I meant

Code:
cyrus-sasl libsasl2 libsasl2-devel libsasl2-plug-plain 
libsasl2-plug-anonymous libsasl2-plug-crammd5 
libsasl2-plug-digestmd5 libsasl2-plug-gssapi 
libsasl2-plug-login
Would guess you need, libsasl2, libsasl2-plug-plain, libsasl2-plug-login

But I don't exactly know, you will have to install them and try again

I assume that's why you are getting
Quote:
AUTH=client, available mechanisms do not fulfill requirements
Hope this helps, if not I will do some more digging

Pete
 
Old 09-30-2005, 03:09 PM   #7
DieSpeedy
LQ Newbie
 
Registered: Jun 2004
Posts: 5

Original Poster
Rep: Reputation: 0
Hi Pete,

oh thank you so much!!!

Now it works!

Quote:

Would guess you need, libsasl2, libsasl2-plug-plain, libsasl2-plug-login

But I don't exactly know, you will have to install them and try again

I assume that's why you are getting


Hope this helps, if not I will do some more digging
I only installed those two plugins above.

Thank you very, very much!

Die Speedy
 
Old 09-30-2005, 03:35 PM   #8
Pete M
Member
 
Registered: Aug 2003
Location: UK
Distribution: Redhat 9 FC 3 SUSE 9.2 SUSE 9.3 Gentoo 2005.0 Debian Sid
Posts: 657

Rep: Reputation: 32
Die Speedy

Glad I could help, enjoy Sendmail

Pete
 
Old 07-30-2009, 07:38 AM   #9
asifrajan
LQ Newbie
 
Registered: Jul 2009
Distribution: Suse, Centos, Redhat
Posts: 2

Rep: Reputation: 0
Gmail smtp doesnt work

Quote:
Originally Posted by Pete M View Post
Die Speedy

Glad I could help, enjoy Sendmail

Pete
Hey Hi,

I tried every thing but I still get Auth temporary folder. I am pasting my logs please reply.........

Jul 30 13:34:50 trixbox1 sendmail[14264]: STARTTLS=client, get_verify: 20 get_peer: 0x9232bc8
Jul 30 13:34:50 trixbox1 sendmail[14264]: STARTTLS=client, relay=smtp.gmail.com, version=TLSv1/SSLv3, verify=FAIL, cipher=RC4-MD5, bits=128/128
Jul 30 13:34:50 trixbox1 sendmail[14264]: STARTTLS=client, cert-subject=/C=US/ST=California/L=Mountain+20View/O=Google+20Inc/CN=smtp.gmail.com, cert-issuer=/C=ZA/ST=Western+20Cape/L=Cape+20Town/O=Thawte+20Consulting+20cc/OU=Certification+20Services+20Division/CN=Thawte+20Premium+20Server+20CA/emailAddress=premium-server@thawte.com, verifymsg=unable to get local issuer certificate
Jul 30 13:34:50 trixbox1 sendmail[14264]: STARTTLS=read, info: fds=11/10, err=2
Jul 30 13:34:51 trixbox1 sendmail[14264]: n6UHYmwj014262: AUTH=client, available mechanisms do not fulfill requirements
Jul 30 13:34:51 trixbox1 sendmail[14264]: AUTH=client, relay=smtp.gmail.com, temporary failure, connection abort
Jul 30 13:34:51 trixbox1 sendmail[14264]: STARTTLS=read, info: fds=11/10, err=2
Jul 30 13:34:51 trixbox1 sendmail[14264]: STARTTLS=read, info: fds=11/10, err=2
Jul 30 13:34:51 trixbox1 sendmail[14264]: STARTTLS=client, SSL_shutdown not done
Jul 30 13:34:51 trixbox1 sendmail[14264]: n6UHYmwj014262: to=<asifrajan@yahoo.com>, ctladdr=<root@trixbox1.localdomain> (0/0), delay=00:00:03, xdelay=00:00:03, mailer=esmtp, pri=120446, relay=smtp.gmail.com [209.85.147.109], dsn=4.0.0, stat=Deferred: Temporary AUTH failure
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Sendmail SMTP AUTH Howto SiegeX Slackware 169 01-12-2015 06:43 AM
another question on sendmail auth. sorry siweb Linux - Software 0 06-26-2004 08:39 AM
SMTP Auth for sendmail wolftechmn Linux - Networking 4 11-27-2003 01:17 PM
Sendmail / SMTP Auth cleaner416 Linux - Networking 3 10-06-2003 10:40 AM
sendmail auth mechanism oberon Linux - Software 0 05-20-2003 08:39 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:40 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration