I use sendmail's m4 file to build my sendmail.cf files. If you add:
to your .mc files it should do the trick. If you are a hand editor, then
just add/change this line from your sendmail.cf file and restart sendmail.
# privacy flags
Note: You only need to add "noexpn,novrfy". I hope that is obvious.
On Mon, 30 Sep 1996, Brock Rozen wrote:
: Does anybody know how I can turn EXPN (and VRFY) off on sendmail so that
: I don't run into security problems with majordomo? (Using EXPN on
: listname-outgoing to get the subscription list)