Relay host configuration

Edit your sendmail.mc

MASQUERADE_AS(`your_domain.com')
MASQUERADE_DOMAIN(`your_domain.com')
MASQUERADE_DOMAIN(`localhost')
MASQUERADE_DOMAIN(`localhost.localdomain')
MASQUERADE_DOMAIN(`your_machine.your_domain.com')
FEATURE(`masquerade_entire_domain')

Do a "make" to build your new sendmail.mc

Authorize root email to go through the gate

If you decide to do it, you need just to comment this line like this:

dnl EXPOSED_USER(`root')

Test if it works

To test if it's working, there is a nice tool released with sendmail to get a full debug log of the transaction between you and your sendmail daemon.

( echo subject: test; echo ) | sendmail -Am -v your_name@your_domain.com