Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Re-compile sendmail?

Status
Not open for further replies.

datadan

IS-IT--Management
Jul 22, 2002
283
US
How do I re-compile my sendmail.cf from a sendmail.mc file?

A step by step command would be appreciated.

Thanks
 
mf /etc/mail/sendmail.mc > /etc/mail/sendmail.cf

That's it. Your paths may be different depending on your distro and version.
 
RhythmAce,

Thanks! However I am still having trouble. I have received input from another forum that "dnl" must be after every line in the sendmail.mc. When I do this, the sendmail file compiles incorrectly. In my original sendmail.mc some clauses start with "dnl" and some end with "dnl", but there seems to be no pattern to it.

Any ideas?

Thanks
 
dnl basically means that everything after it is a comment. //Daniel
 
'Tis true. M4 doesn't like to see all that white space at the end of each line so it's a way to say "don't look at it if it bothers you that much". :eek:)
 
FYI,

This command does work for my MC file.
mf /etc/mail/sendmail.mc > /etc/mail/sendmail.cf

This does work:
*put a copy of the sendmail.mc you want to generate a cf for into the following directory
cd /usr/src/sendmail.../cf/cf/

then:
sh Build sendmail.mc sendmail.cf

I don't understand it, buy hey it works. Thanks all for your help



 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top