Configure a simple relay-only mail transport agent with sendmail
Par Ludovic Francois, vendredi 27 avril 2007 à 21:41 :: General :: #36 :: rss
Configure a simple relay-only mail transport agent with sendmail
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
Commentaires
Aucun commentaire pour le moment.
Ajouter un commentaire
Les commentaires pour ce billet sont fermés.