code_junkie

Configuring sendmail behind a firewall

Nov 10th, 2011
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. define(`SMART_HOST',`mailrelay.example.com')dnl
  2.  
  3. # m4 /etc/mail/sendmail.mc > /etc/sendmail.cf
  4.  
  5. # /etc/init.d/sendmail restart
  6.  
  7. host map: lookup (mydomain.com): deferred)
  8.  
  9. define(`confSERVICE_SWITCH_FILE',`/etc/mail/service.switch')dnl
  10.  
  11. # cat /etc/mail/service.switch
  12. hosts files
  13.  
  14. DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')
  15.  
  16. DAEMON_OPTIONS(`Port=125,Addr=127.0.0.1, Name=MTA')
  17.  
  18. DAEMON=no
  19.  
  20. DS
  21.  
  22. DSmailrelay.example.com
Add Comment
Please, Sign In to add comment