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

Tagged

One thought on “Setting the hostname in Sendmail

  1. mama21mama says:

    Me sirvio mucho, gracias

Leave a Reply

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

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>