LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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-23-2009, 05:12 AM   #1
ganesh_914
LQ Newbie
 
Registered: Jul 2009
Posts: 1

Rep: Reputation: 0
sendmail SMTP AUTH allows relaying


Hi,

I want to configure SMTP Auth on sendmail 8.14.3/8.14.3 in fedora core 11 OS. But, my mail server with the following info is still a open relay. I want to make sure that the mail is relayed only of the user authenticates. Please help me.

My sendmail.mc has the following lines, sendmail.pem was creating by exicuting command: # make sendmail.pem. Current permissions are 600 root:root .
*****************************************
define(`confAUTH_MECHANISMS', `DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl
TRUST_AUTH_MECH(`DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl
define(`confCACERT_PATH', `/etc/pki/tls/certs')dnl
define(`confCACERT', `/etc/pki/tls/certs/cacert.pem')dnl
define(`confSERVER_CERT', `/etc/pki/tls/certs/sendmail.pem')dnl
define(`confSERVER_KEY', `/etc/pki/tls/certs/sendmail.pem')dnl
define(`confCLIENT_CERT', `/etc/pki/tls/certs/sendmail.pem')dnl
define(`confCLIENT_KEY', `/etc/pki/tls/certs/sendmail.pem')dnl
define(`confAUTH_OPTIONS', `A p y')dnl
*************************************************

Following is the output of the telnetting to port 25
--------------------------------------------------------------------------------------------
250-foo.test.com Hello foo2.test.com [61.95.16.124], pleased to meet you
250-ENHANCEDSTATUSCODES
250-PIPELINING
250-8BITMIME
250-SIZE
250-DSN
250-ETRN
250-STARTTLS
250-DELIVERBY
250 HELP
-------------------------------------------------------------

Following is the output of "sendmail -d0.1 -bv"
here sendmail is compiled with "SASLv2 " and "STARTTLS"
----------------------------------------------------------
[root@foo2 ~]# sendmail -d0.1 -bv
Version 8.14.3
Compiled with: DNSMAP HESIOD HES_GETMAILHOST LDAPMAP LOG MAP_REGEX
MATCHGECOS MILTER MIME7TO8 MIME8TO7 NAMED_BIND NETINET NETINET6
NETUNIX NEWDB NIS PIPELINING SASLv2 SCANF SOCKETMAP STARTTLS
TCPWRAPPERS USERDB USE_LDAP_INIT
-----------------------------------------------------------------

# cat /etc/mail/local-host-names
test.com
foo2.test.com.
---------

[root@foo2 ~]# cat /etc/mail/access
# Check the /usr/share/doc/sendmail/README.cf file for a description
# of the format of this file. (search for access_db in that file)
# The /usr/share/doc/sendmail/README.cf is part of the sendmail-doc
# package.
#
# by default we allow relaying from localhost...
---------------------------------

[root@foo2 ~]# saslauthd -v
saslauthd 2.1.22
authentication mechanisms: getpwent kerberos4 kerberos5 pam rimap shadow ldap
--------------------------------------------

[root@foo2 ~]# rpm -q -a | grep cyrus
cyrus-sasl-2.1.22-22.fc11.i586
cyrus-sasl-plain-2.1.22-22.fc11.i586
cyrus-sasl-lib-2.1.22-22.fc11.i586
[root@foo2 ~]# rpm -q -a | grep openssl
openssl-0.9.8k-5.fc11.i686
[root@foo2 ~]# rpm -q -a | grep sendmail
sendmail-cf-8.14.3-5.fc11.i586
sendmail-8.14.3-5.fc11.i586
------------

I can ping www.yahoo.com


Regards,
Ganesh.
 
  


Reply

Tags
auth, relaying, sendmail, smtp


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
smtp auth with sendmail through smtp.sbcglobal.yahoo.com woodson2 Fedora 0 10-23-2008 02:55 PM
Sendmail and SMTP AUTH honey bee Linux - General 25 06-11-2008 03:49 AM
Relaying mails through auth-SMTP server ? nileshgr Linux - Server 2 05-25-2008 11:14 PM
sendmail relaying with smtp-auth strange prob liam1234321 Linux - Server 1 05-20-2008 11:30 AM
Sendmail / SMTP Auth cleaner416 Linux - Networking 3 10-06-2003 10:40 AM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration