Saturday, August 4, 2012

How to Disable ndr's in sendmail


 vi /etc/mail/sendmail.mc

Change the below line
dnl # define(`confPRIVACY_FLAGS', `authwarnings,novrfy,noexpn,restrictqrun')dnl
  TO
define(`confPRIVACY_FLAGS', `authwarnings,nobodyreturn')dnl

save and exit

Restart the Sendmail


4 comments:

  1. One more step to make it work:
    sendmail won't pickup the changes in the sendmail.mc file unless you remake the sendmail.cf file after editing sendmail.mc:

    m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf

    ReplyDelete
  2. Why did you remove novrfy, noexpn?
    Bad idea!

    ReplyDelete
  3. this just removes the body NO BODY RETURN ( for privacy reasons)

    ReplyDelete