Jump to content

Smart Relay Host Port in Sendmail: Difference between revisions

From TetraWiki
Sakshi (talk | contribs)
Created page with "'''''There is an alternative to relay email using a different port at their mail server and their mail server supports SMTP authentication. You may follow the simple Sendmail ..."
 
Sakshi (talk | contribs)
No edit summary
Line 29: Line 29:




'''Reference'''  [http://wingloon.com/2008/04/06/setup-smart-relay-host-port-in-sendmail/]
'''Reference'''  [http://wingloon.com/2008/04/06/setup-smart-relay-host-port-in-sendmail/] http://wingloon.com/2008/04/06/setup-smart-relay-host-port-in-sendmail/

Revision as of 08:59, 28 October 2019

There is an alternative to relay email using a different port 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


5. Finally, you can monitor your maillog using the command below: –

tail -f /var/log/maillog


Reference [1] http://wingloon.com/2008/04/06/setup-smart-relay-host-port-in-sendmail/