LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 07-03-2013, 02:09 AM   #1
satyadev75
LQ Newbie
 
Registered: Nov 2010
Location: Chennai
Posts: 21

Rep: Reputation: 0
Question SMTP AUTH with sendmail in centos.. 504 5.3.3 AUTH mechanism LOGIN not available


Hello ,
I tried to install sendmail with smtp auth. I followed this steps

#yum install sendmail-cf

Then edited /etc/mail/sendmail.mc

TRUST_AUTH_MECH(`EXTERNAL DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl
define(`confAUTH_MECHANISMS', `EXTERNAL GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl


define(`confCACERT_PATH’, `/etc/pki/tls/certs’)dnl
define(`confCACERT’, `/etc/pki/tls/certs/ca-bundle.crt’)dnl
define(`confSERVER_CERT’, `/etc/pki/tls/certs/sendmail.pem’)dnl
define(`confSERVER_KEY’, `/etc/pki/tls/certs/sendmail.pem’)dnl

#make sendmail.pem

# cd /etc/mail
# m4 sendmail.mc > sendmail.cf
# service sendmail restart
# service saslauthd restart


# vi /etc/sysconfig/saslauthd
SOCKETDIR=/var/run/saslauthd
MECH=pam
FLAGS=
# vi /usr/lib/sasl2/Sendmail.conf
#pwcheck_method:saslauthd
pwcheck_method:auxprop

# saslauthd -v

saslauthd 2.1.23
authentication mechanisms: getpwent kerberos5 pam rimap shadow ldap

#saslpasswd2 -c -u sys1.example.com -a smtpauth test

#sasldblistusers2
test@sys1.example.com: userPassword
#telnet localhost 25
ehlo localhost
250-sys1.example.com Hello localhost [127.0.0.1], pleased to meet you
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-8BITMIME
250-SIZE
250-DSN
250-ETRN
250-DELIVERBY
250 HELP
AUTH LOGIN
504 5.3.3 AUTH mechanism LOGIN not available.


Please help me to clear this..
I am very new to this. So , anything i missed in the process or any wrong thing.. please tell me..
 
Old 07-03-2013, 05:11 AM   #2
satyadev75
LQ Newbie
 
Registered: Nov 2010
Location: Chennai
Posts: 21

Original Poster
Rep: Reputation: 0
Got it..
but still i have one issue.

installed cyrus..
#yum install cyrus-sasl cyrus-sasl-devel cyrus-sasl-gssapi cyrus-sasl-md5 cyrus-sasl-plain

#vi /etc/mail/sendmail.mc
TRUST_AUTH_MECH(`LOGIN PLAIN')dnl
define(`confAUTH_MECHANISMS', `LOGIN PLAIN')dnl

#service sendmail restart

#telnet localhost 25
Trying ::1...
telnet: connect to address ::1: Connection refused
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 sys1.example.com ESMTP Sendmail 8.14.4/8.14.4; Wed, 3 Jul 2013 15:16:10 +0530
ehlo sys1.example.com
250-sys1.example.com Hello localhost [127.0.0.1], pleased to meet you
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-8BITMIME
250-SIZE
250-DSN
250-ETRN
250-AUTH LOGIN PLAIN
250-DELIVERBY
250 HELP
AUTH LOGIN
334 VXNlcm5hbWU6
root
334 UGFzc3dvcmQ6
pass
501 5.5.4 cannot decode AUTH parameter pass


(try test password)
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-8BITMIME
250-SIZE
250-DSN
250-ETRN
250-AUTH LOGIN PLAIN
250-DELIVERBY
250 HELP
AUTH LOGIN
334 VXNlcm5hbWU6
dGVzdA== <username:test>
334 UGFzc3dvcmQ6
dGVzdA== <password:test>
535 5.7.0 authentication failed

i used the following command to encode
#perl -MMIME::Base64 -e 'print encode_base64("test");'
dGVzdA==

Please can you show me a way to login..
 
Old 07-04-2013, 11:47 AM   #3
bathory
LQ Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 13,168
Blog Entries: 1

Rep: Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038Reputation: 2038
Hi,

Make sure you've started the saslauthd daemon.

Regards
 
Old 01-23-2014, 02:30 AM   #4
joel2600
LQ Newbie
 
Registered: Jul 2003
Posts: 7

Rep: Reputation: 1
Unhappy

Quote:
Originally Posted by satyadev75 View Post
Got it..
but still i have one issue.

can you please explain your answer when you figure something out. it really helps the rest of us.
 
1 members found this post helpful.
  


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
smtp auth with sendmail through smtp.sbcglobal.yahoo.com woodson2 Fedora 0 10-23-2008 02:55 PM
SMTP Auth...sendmail not using 60s TV Batman Linux - Server 1 07-18-2008 02:33 AM
Sendmail and SMTP AUTH honey bee Linux - General 25 06-11-2008 03:49 AM
Sendmail SMTP AUTH omlex Linux - Networking 2 01-30-2007 05:24 AM
sendmail auth mechanism oberon Linux - Software 0 05-20-2003 08:39 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 02:58 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