Setting the hostname in Sendmail

引用自: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

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

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

Leave a Reply

Your email address will not be published. Required fields are marked *