Changing sendmail connect domain macro, Dj, in

From Peter Pap's Technowiki
Jump to: navigation, search

Generally, hacking your is a very bad idea! Any changes you want to make should be done in the file and then the file built from it. This example is where your mail relay has an internal hostname (eg. but, when it connects to the outside world, you want it to use a different name, eg. Often this is where you have multiple internal mail servers, but they share a common external IP. To change this setting:

1. Edit and add/change this line:

 define(`confDOMAIN_NAME', `')dnl

Obviously, change the value to whatever it is that you need for your org.

2. Rebuild for your platform. It's different on Solaris and Linux, so do what works for you.

3. Restart sendmail.