LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 07-05-2005, 10:10 PM   #1
gauge73
Member
 
Registered: Jan 2003
Location: Dallas, TX
Distribution: Fedora Core 4
Posts: 420

Rep: Reputation: 30
Can't authenticate with sendmail


I'm trying to set up my sendmail server one step at a time. When it does not require authentication I am able to send and relay mail without issue. However, now that I'm trying authentication (not using STARTLS, just using plain text for now), I cannot successfully authenticate.

Here is my current sendmail.mc (which has been make'd of course):

divert(-1)dnl
include(`/usr/share/sendmail-cf/m4/cf.m4')dnl
VERSIONID(`setup for Red Hat Linux')dnl
OSTYPE(`linux')dnl
define(`confDEF_USER_ID',``8:12'')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
define(`ALIAS_FILE', `/etc/aliases')dnl
define(`STATUS_FILE', `/var/log/mail/statistics')dnl
define(`UUCP_MAILER_MAX', `2000000')dnl
define(`confUSERDB_SPEC', `/etc/mail/userdb.db')dnl
define(`confPRIVACY_FLAGS', `authwarnings,novrfy,noexpn,restrictqrun')dnl
define(`confAUTH_OPTIONS', `A')dnl
TRUST_AUTH_MECH(`EXTERNAL DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl
define(`confAUTH_MECHANISMS', `EXTERNAL GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl
define(`confTO_IDENT', `0')dnl
FEATURE(`no_default_msa',`dnl')dnl
FEATURE(`smrsh',`/usr/sbin/smrsh')dnl
FEATURE(`mailertable',`hash -o /etc/mail/mailertable.db')dnl
FEATURE(`virtusertable',`hash -o /etc/mail/virtusertable.db')dnl
FEATURE(redirect)dnl
FEATURE(always_add_domain)dnl
FEATURE(use_cw_file)dnl
FEATURE(use_ct_file)dnl
FEATURE(local_procmail,`',`procmail -t -Y -a $h -d $u')dnl
FEATURE(`access_db',`hash -T<TMPF> -o /etc/mail/access.db')dnl
FEATURE(`blacklist_recipients')dnl
EXPOSED_USER(`root')dnl
DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl
FEATURE(`accept_unresolvable_domains')dnl
LOCAL_DOMAIN(`localhost.localdomain')dnl
MAILER(smtp)dnl
MAILER(procmail)dnl

When I try to send an email by using telnet, I enter the AUTH LOGIN command (after EHLO) and then enter the username and password in the appropriately encoded format. After that, I get an error saying that authentication failed. I have the same issue when using a clieng (just in case the encoding was wrong). I don't know what to do at this point. Can you guys suggest something?
 
Old 07-05-2005, 10:51 PM   #2
gauge73
Member
 
Registered: Jan 2003
Location: Dallas, TX
Distribution: Fedora Core 4
Posts: 420

Original Poster
Rep: Reputation: 30
For what it's worth, here is a log level 25 attempt...

ul 5 22:50:22 mail sendmail[4308]: j663oMut004308: --- 220 mail.ash-can.com ESMTP Sendmail 8.13.4/8.13.4; Tue, 5 Jul 2005 22:50:22 -0500
Jul 5 22:50:22 mail sendmail[4308]: j663oMut004308: <-- EHLO mail.ash-can.com
Jul 5 22:50:22 mail sendmail[4308]: j663oMut004308: --- 250-mail.ash-can.com Hello mail.ash-can.com [127.0.0.1], pleased to meet you
Jul 5 22:50:22 mail sendmail[4308]: j663oMut004308: --- 250-ENHANCEDSTATUSCODES
Jul 5 22:50:22 mail sendmail[4308]: j663oMut004308: --- 250-PIPELINING
Jul 5 22:50:22 mail sendmail[4308]: j663oMut004308: --- 250-8BITMIME
Jul 5 22:50:22 mail sendmail[4308]: j663oMut004308: --- 250-SIZE
Jul 5 22:50:22 mail sendmail[4308]: j663oMut004308: --- 250-DSN
Jul 5 22:50:22 mail sendmail[4308]: j663oMut004308: --- 250-ETRN
Jul 5 22:50:22 mail sendmail[4308]: j663oMut004308: --- 250-AUTH DIGEST-MD5 CRAM-MD5 LOGIN PLAIN
Jul 5 22:50:22 mail sendmail[4308]: j663oMut004308: --- 250-DELIVERBY
Jul 5 22:50:22 mail sendmail[4308]: j663oMut004308: --- 250 HELP
Jul 5 22:50:29 mail sendmail[4308]: j663oMut004308: <-- AUTH PLAIN <encoded password here, I think>
Jul 5 22:50:29 mail sendmail[4308]: j663oMut004308: --- 535 5.7.0 authentication failed
Jul 5 22:50:29 mail sendmail[4308]: j663oMut004308: AUTH failure (PLAIN): generic failure (-1) SASL(-1): generic failure: Password verification failed
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Cannot Authenticate Via SSH Sivel Linux - Software 10 07-03-2005 10:13 AM
authenticate against AD paul_mat Linux - Networking 5 05-28-2005 08:34 AM
Cannot authenticate into KDE??? admstng Mandriva 4 12-26-2004 04:42 AM
Authenticate from a LDAP SuperSerg Linux - Security 2 12-20-2004 11:16 AM
Login( can't authenticate) BulldogXTRM Linux - Newbie 2 07-28-2003 02:50 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:32 AM.

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