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