Generating a sendmail.cf File from a .mc File

Now that you've written a .mc file for your host, it's time to generate a sendmail.cf file.
  1. Save your .mc file in the cf/cf directory.
  2. Run this command:
    m4 ../m4/cf.m4 filename.mc > sendmail.cf
    
    (Of course, replace filename.mc with the name of your file.)
  3. As root, move the sendmail.cf file from the cf/cf directory to /etc/mail, make it mode 644, and make a symlink to it from /etc. (You may want to back up your existing sendmail.cf first.)


Mark D. Roth <roth@feep.net>