Simpler Navigation for Servers and Operating Systems
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
cancel
Showing results for 
Search instead for 
Did you mean: 

general sendmail.cf file ?

SOLVED
Go to solution
Debbie Fleith
Regular Advisor

general sendmail.cf file ?

Just wanted to confirm that all lines in the /etc/mail/sendmail.cf file that begin with "#" are comments and those values are not configured in sendmail.

6 REPLIES
Kent Ostby
Honored Contributor

Re: general sendmail.cf file ?

correct.
"Well, actually, she is a rocket scientist" -- Steve Martin in "Roxanne"
A. Clay Stephenson
Acclaimed Contributor
Solution

Re: general sendmail.cf file ?

You are correct although "values not configured in sendmail" might not be precisely correct. In some cases the commented parameters are set to default values.
If it ain't broke, I can fix that.
Debbie Fleith
Regular Advisor

Re: general sendmail.cf file ?

How do I know what the default sendmail values are?
Christopher Caldwell
Honored Contributor

Re: general sendmail.cf file ?

Your best bet to determine defaults is to read a current version of the "Batbook" (sendmail by Costales and Allman). Each configurable parameter generally lists a default.

You can check documentation on http://sendmail.org. Some of the defaults are listed there.

Finally, you can look in the m4 files:
/usr/contrib/sendmail/usr/newconfig/etc/mail/cf/m4
some of the defaults are there, but take a couple of Tylenol before you try to figure out what's going on.
Christopher Caldwell
Honored Contributor

Re: general sendmail.cf file ?

BTW, as A. Clay Stephenson sort of suggested, the commented values are generally the defaults.
Bill Hassell
Honored Contributor

Re: general sendmail.cf file ?

Unfortunately, the sendmail.cf file format and options change with the version of sendmail. Even a patch to sendmail can change the requirements for sendmail.cf. In HP-UX, copies of the original config files are stored in /usr/newconfig/etc and if a patch introduces a new config file, the original file is left alone (preserving any customization) and the new version is stored in /usr/newconfig/etc/mail

It is imperative to log every change made to sendmail.cf. Unlike most config files, a diff of two .cf files is usually meaningless because some options get moved around.


Bill Hassell, sysadmin