How to set up sendmail to use Exchange server with auth NTLM as smart relay?
I have a CentOS 5 box that is a web server. When it generates emails, all emails should go out through our Exchange mail server.
I believe our Exchange server requires NTLM authentication: Code:
# telnet exchangeserv 25 Code:
Connect:localhost.localdomain RELAY Code:
# makemap hash /etc/mail/access.db < /etc/mail/access I am not getting authenticated though. The message gets accepted for delivery by localhost but then when it hands the message off to the Exchange server smart relay, I see this in /var/log/maillog: Code:
Mar 7 12:44:15 webserv sendmail[10129]: STARTTLS=client, relay=exchangeserv.domain.edu., version=TLSv1/SSLv3, verify=FAIL, cipher=AES128-SHA, bits=128/128 |
Well, as it turns out my Exchange folks were wrong.
Our Exchange server did NOT require authentication, they just needed to set up their server so that my IP was allowed to relay through. Figured I'd post the solution in case any other poor soul stumbled upon this as a result of a search. |
Quote:
Could you please be more explicit how was your solution. I have a red hat 4.6 server, running a perl , that in case of failure sends an email through a exchange server (this supports NTLM authentication). How Can I implement this authentication ? echo "something" | mailx -s "subject" personal@mail.com mailx: invalid option -- S Usage: mailx [-BFintv~] [-s subject] [-a attachment] [-c cc-addr] [-b bcc-addr] [-r from-addr] [-h hops] [-R reply-addr] to-addr ... [- sendmail-options ...] mailx [-BeHiInNv~] [-T name] -f [name] mailx [-BeinNv~] [-u user] But no mail is sent. The guys in charge of email server says that it accepts anonymus connections. Code:
ndsis01ven:~ # telnet 172.22.95.125 25 Thanks in advance. :) |
What shows up in your /var/log/maillog when you try to send the email?
|
Quote:
Code:
Jun 19 11:08:51 ndsis01ven postfix/smtp[13137]: warning: SASL authentication failure: No worthy mechs found I have already rebuild the new sasl_passwd (sasl_passwd.db) file with the user and pass. What Am I missing ? Thanks in advance. |
All times are GMT -5. The time now is 11:45 AM. |