WingLoon: Setup Smart Relay Host Port in Sendmail
Does your ISP block outgoing SMTP port 25? Your mail hosting provider is giving you an alternative to relay email using a different port 2525 at their mail server and their mail server supports SMTP authentication. You may follow the simple Sendmail setup below: -
1. Find “DS” in /etc/mail/sendmail.cf and add your mail server name as below: -
DSmail.example.com
2. Find “Mrelay” in /etc/mail/sendmail.cf and add “2525″ to “A=TCP $h” as below: -
A=TCP $h 2525
3. Add the following line below in /etc/mail/access file in one line: -
AuthInfo:mail.example.com "U:user@example.com" "I:user@example.com" "P:password" "R:example.com" "M:LOGIN PLAIN"
4. Then, restart your Sendmail service as below: -
service sendmail restart
4. Finally, you can monitor your maillog using the command below: -
tail -f /var/log/maillog
If you found these helpful, please contribute to help:
<< Home