Find the answer to your Linux question:
Results 1 to 2 of 2
i made some changes to the sendmail.mc on a fc6 and I was wondering if the command /sbin/service sendmail restart will generate the an updated version of sendmail.cf file? And ...
  1. #1
    Just Joined!
    Join Date
    Sep 2007
    Posts
    7

    configuring sendmail

    i made some changes to the sendmail.mc on a fc6 and I was wondering if the command /sbin/service sendmail restart will generate the an updated version of sendmail.cf file? And if not, what command do I need to issue?

  2. #2
    Just Joined!
    Join Date
    Oct 2007
    Posts
    2
    Quote Originally Posted by shadowc View Post
    i made some changes to the sendmail.mc on a fc6 and I was wondering if the command /sbin/service sendmail restart will generate the an updated version of sendmail.cf file? And if not, what command do I need to issue?
    Good question!

    While I don't run FC6 specifically, I can say that it is not typical for the init script for a particular daemon to to do too much in the way of managing its config files. the Red Hat sendmail script does do a bit of that though (newaliases, etc), just not to this level.

    Anyway, here's what you'll want to do after making a good backup of your working config:

    cd /etc/mail
    make sendmail.cf

    This uses the rules in the Makefile in the directory to handle generating the new sendmail.cf. if you just type "make" without specifying sendmail.cf, it will regenerate any .cf files that depend on the .mc files as well as any db files there as well. If that's what you want, then just do a "make" by itself.

    Let us know if you solve this.

    Thanks,
    -Shaun

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...