Rebuild Sendmail in linux

  1. relocate to /etc/mail
  2. cp sendmail.mc to sendmail.mc.bak
  3. edit sendmail.mc and make desired configuration changes
    1. define(`SMART_HOST’,`mailhost.erc.ge.com’)dnl
    2. define(`LOCAL_RELAY’,`mailhost’(dnl)
    3. LOCAL_DOMAIN(`erc.ge.com’)dnl
    4. MASQUERADE_AS(`ercgroup.com’)dnl
    5. FEATURE(masquerade_envelope)dnl
  4. copy sendmail.cf to sendmail.cf.bak
  5. # m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf
  6. # service sendmail stop
  7. # service sendmail start

Leave a Comment

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

CAPTCHA * Time limit is exhausted. Please reload the CAPTCHA.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Scroll to Top