How To Setup A Smart Relay Host Port on Sendmail
Configure the Smart Host
Search for DS in /etc/mail/sendmail.cf and edit as follows:
Before:
DS
After:
DSyour.mail.relay.yourdomain.com
Configure The Port
Search for Mrelay and edit as follows:
Before:
Mrelay, P=[IPC], F=mDFMuXa8, S=EnvFromSMTP/HdrFromSMTP, R=MasqSMTP, E=\r\n, L=2040,
T=DNS/RFC822/SMTP,
A=TCP $h
After:
Mrelay, P=[IPC], F=mDFMuXa8, S=EnvFromSMTP/HdrFromSMTP, R=MasqSMTP, E=\r\n, L=2040,
T=DNS/RFC822/SMTP,
A=TCP $h 2525
Add the following line appropriately modified to /etc/mail/access file:
AuthInfo:mailrelay.yoursite.com "U:user@example.com" "I:user@yoursite.com" "P:password" "R:yoursite.com" "M:LOGIN PLAIN"
Restart Sendmail:
service sendmail restart
Keep Watch
tail -f /var/log/maillog
Leave Your Comment
All fields marked with "*" are required.