Setup sendmail in RHEL 5.3 to use external SMTP
Posted on 2011-03-09
I am trying to setup sendmail in Red Hat Enterprise Linux to use an external SMTP. I have followed this steps:
1. Uncomment and change this line in /etc/mail/sendmail.mc as:
2. Add this line to /etc/hosts
3. Compile settings
m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf
4. Restart sendmail service
service sendmail restart
Mail is not being delivered and I cannot figure out why. I have manually tested the external SMTP (using telnet mailhost 25, ..., rcpt to:...) and it works. So I am stuck at this point.
Could you please help me out with this one?
Any help would be very appreciated.