Skip to main content
  1. Posts/

Setting the hostname in Sendmail

·33 words·1 min·

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

And, to add additional stuff onto the end of the line:

define(`confSMTP_LOGIN_MSG',`mailer ready')dnl