Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save vparihar01/5875889 to your computer and use it in GitHub Desktop.
Save vparihar01/5875889 to your computer and use it in GitHub Desktop.
For changing the mail hosts name from your local machine name to domain name.Setting the hostname in sendmail.

If you need to change the hostname that Sendmail announces itself as, just add the following to sendmail.mc:

define(`confDOMAIN_NAME', `mail.yourdomain.com')dnl

For example-: Your domain name is www.xyz.com, then

define(`confDOMAIN_NAME', `www.xyz.com')dnl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment