101TECH

IT Solutions Done Right!

FreeBSD – Configure sendmail masquerading

Posted on | June 5, 2007 | No Comments

Notes on masquerading your domain name , I needed that since one SMS gateway will not accept my nagios@server.domain.com emails , this setting allowed nagios to send the email as nagios@domain.com

 

  • tar zcf etc_mail_backup.tgz /etc/mail !!!
  • cd /etc/mail
  • sudo make cf
  • sudo vi hostname.mc
  • add:MASQUERADE_AS(domain.com)dnl
    FEATURE(masquerade_envelope)dnl
    FEATURE(masquerade_entire_domain)dnl
    MASQUERADE_DOMAIN(domain.com)dnl
  • make sure this is added BEFORE any “mailer” definitions
  • sudo make
  • sudo make installf
  • sudo make restart

worked on FreeBSD 6.2

Comments

Leave a Reply





About

This is an area on your website where you can add text. This will serve as an informative location on your website, where you can talk about your site.

Subscribe to our feed

Search

Admin