LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices



Reply
 
Search this Thread
Old 12-22-2010, 11:05 AM   #1
starrynight2
LQ Newbie
 
Registered: Dec 2010
Posts: 3

Rep: Reputation: 0
Setting up SMTP authentication in sendmail


Hi
I need to send authenticated mails from a RHEL machine to a relay that only accepts authentication mails from domain users.
I've never done this so I'm a bit lost. I read some sendmail docs and I uncommented these optins in sendmail.mc file

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


and then regenerated the /etc/mail/sendmail.cf file and restarted senmaild, and started saslauth service.
Still I can't send an e-mail.
Can any sendmail guru help me here please.


Thanks
 
Old 12-23-2010, 04:11 AM   #2
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,975

Rep: Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343
Hi,

You want to use a smarthost, that accepts only smtp authentication to relay mail?
If that's the case, check the client-side configuration at this thread
There is also a server-side configuration if you want your sendmail server to use smtp auth for your users.

Regards
 
Old 12-23-2010, 07:01 AM   #3
starrynight2
LQ Newbie
 
Registered: Dec 2010
Posts: 3

Original Poster
Rep: Reputation: 0
Hi Bathory

I want to thank you a lot for your reply.
That is a very good HowTo and I am/was following that logic described for a few day now. I know this is not working for me probably because of my authinfo file (that I gave another name to).
Let's just see if I can explain my case here so that you can provide your useful help to me (if you don't mind)...so, the mail relay is an exchange server in which I must authenticate with a user from the domain.
So, my domain user is crnogue, the pw is MyPW the domain is telecom.es, the relay name is relay2@telecom.es (W2k3) and I am trying to send mail from a machine called appsdev@telecom.es (RHEL).
So I put these entries in the auth file:
AuthInfo:relay2@telecom.es "U:crnogue@telecom.es" "I:crnogue@telecom.es" "P:MyPW"
AuthInfo: "U:crnogue@telecom.es" "I:crnogue@telecom.es" "P:MyPW"
I created a user in my RHEL named crnogue so that the exchange server recognize the user name and I tried to email with that user. Still not working. What am I doing wrong?

Thanks
 
Old 12-23-2010, 08:57 AM   #4
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 10,975

Rep: Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343Reputation: 1343
Quote:
So I put these entries in the auth file:
AuthInfo:relay2@telecom.es "U:crnogue@telecom.es" "I:crnogue@telecom.es" "P:MyPW"
AuthInfo: "U:crnogue@telecom.es" "I:crnogue@telecom.es" "P:MyPW"
This is not right. You need to replace relay2@telecom.es with the FQDN of the W2k3 host running Exchange. It should be something like relay2.telecom.es. Also you didn't specify the auth mechanism(s) at the end of this file. So you can use:
Code:
AuthInfo:relay2.telecom.es "I:crnogue@telecom.es" "P:MyPW" M:PLAIN LOGIN
Don't forget to hash this file running:
Code:
makemap hash /etc/mail/auth-filename < /etc/mail/auth-filename
Quote:
I created a user in my RHEL named crnogue so that the exchange server recognize the user name and I tried to email with that user. Still not working.
I'm not an Exchange expert, but can this user connect directly to Exchange and use it to send mail? Because the user you're going to use to relay mail must somehow authenticate in the Exchange server.
 
Old 12-27-2010, 06:55 AM   #5
starrynight2
LQ Newbie
 
Registered: Dec 2010
Posts: 3

Original Poster
Rep: Reputation: 0
Hi Bathory

Thanks again for your reply.
I had that well configured in the auth file, my mistake when posting it...
Well, I am trying to use sendmail as a client and not as a relay, so I guess that's not possible right?
I used another client and it worked. So, problem solved.

Regards,
 
  


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
SMTP Authentication in sendmail Geert86 Linux - Server 8 12-03-2009 12:07 PM
smtp authentication in sendmail. nishith Linux - Server 7 06-30-2009 12:01 PM
sendmail SMTP Authentication linuxmandrake Linux - Server 2 09-13-2007 01:00 PM
sendmail + smtp authentication omid1979 Linux - Networking 1 10-30-2005 11:12 AM
SMTP Authentication ( Sendmail ) Devyn Linux - Software 0 02-17-2005 08:42 PM


All times are GMT -5. The time now is 11:53 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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration