Debian iTOps Tube

Tuesday, November 22, 2011

The /etc/mail/ File

The /etc/mail/ File

You can define most of sendmail's configuration parameters in the /etc/mail/ file, which is then used by the m4 macros to create the /etc/mail/ file. Configuration of the file is much simpler than configuration of, but it is still often viewed as an intimidating task with its series of structured directive statements that get the job done. Fortunately, in most cases you won't have to edit this file very often.

How to Put Comments in

In most Linux configuration files a # symbol is used at the beginning of a line convert it into a comment line or to deactivate any commands that may reside on that line.

The file doesn't use this character for commenting, but instead uses the string "dnl". Here are some valid examples of comments used with the configuration file:

  • These statements are disabled by dnl commenting.

dnl DAEMON_OPTIONS(`Port=smtp,Addr=, Name=MTA')
dnl # DAEMON_OPTIONS(`Port=smtp,Addr=, Name=MTA')

  • This statement is incorrectly disabled:

# DAEMON_OPTIONS(`Port=smtp,Addr=, Name=MTA')

  • This statement is active:

DAEMON_OPTIONS(`Port=smtp,Addr=, Name=MTA')

Note: Remember to run the script to activate any configuration changes.

No comments:

Post a Comment