Editing your sendmail.mc file

This page is a quick addition to my How to install SpamAssassin on OpenBSD with sendmail page. I had a reader ask:

I have some problems with your guide. There’s no sendmail.mc in /usr/share/sendmail/cf/

That’s correct. There isn’t a file called sendmail.mc there already, but there are a number of .mc files in that directory (or in /usr/src/gnu/src.sbin/sendmail/cf/cf/). On my installation, I count 45 different .mc files in there which I’ve gotten from various installs. I have no idea which are part of the standard distribution anymore, and don't pay much attention to them, since I’ve long since made my own betternerds.mc file which I use on my server, but if you haven’t already customized your own .mc file, my suggestion is to take something fairly simple like openbsd-proto.mc (which supports nothing but basic SMTP connections via TCP) and add the things you need to it.

If you’re starting from scratch like that, I strongly recommend picking up the latest revision of the sendmail book as a reference since it describes all the various options in sendmail in detail.

Copyright 2009, Dave Polaschek. Last updated on Mon, 15 Feb 2010 14:09:27.