Quick-Tip: Configuring Sendmail with m4 and the sendmail.mc file

Hits: 410

Sendmail General Configuration

On most Linux systems you will find Sendmail’s configuration in either /etc or /etc/mail. There should be a file named sendmail.mc if you’ve found it you’re in the right place. Editing this file is not only the proper way to configure Sendmail, but it is also much easier than trying to make your changes in sendmail.cf.

 

After you have made any edits to the sendmail.mc file you will need to do two things:

  1. Rebuild the file using either the Makefile in the configuration directory or by issuing the command m4 sendmail.mc > /etc/sendmail.cf
  2. Send Sendmail a -HUP signal using kill or simply restart the daemon for the configuration changes to take effect

 

General Configuration On most Linux systems you will find Sendmail’s configuration in either /etc or /etc/mail. There should be a file named sendmail.mc if you’ve found it you’re in the right place. Editing this file is not only the proper way to configure Sendmail, but it is also much easier than trying to make your changes in sendmail.cf. After you have made any edits to the sendmail.mc file you will need to do two things: Rebuild the file using either the Makefile in the configuration directory or by i

Source: Quick-Tip: Configuring Sendmail with m4 and the sendmail.mc file

%d bloggers like this: