|Securing and Optimizing Linux: RedHat Edition -A Hands on Guide|
|Prev||Chapter 22. Software -Server/Mail Network||Next|
: Please note that the /etc/mail/local-host-names file is for all type of configuration.
The /etc/mail/local-host-names file is read to obtain alternative names for the local host. One use for such a file might be to declare a list of hosts in your network for which the local host is acting as the MX recipient. On that machine we simply need to add the names of machines for which it i.e. mail.openna.com, will handle mail to /etc/mail/local-host-names. Here is an example:
Example 22-2. Alternative names
Create the local-host-names file, touch /etc/mail/local-host-names and add the following line:
# local-host-names - include all aliases for your machine here. openna.com deep.openna.com www.openna.com win.openna.com mail.openna.com
Please be aware that if you configure your system to masquerade as another, any e-mail sent from your system to your system will be sent to the machine you are masquerading as. For example, in the above illustration, log files that are periodically sent to <[email protected]> by the cron daemon of Linux would be sent to <[email protected]> our Mail Hub.
The /etc/sysconfig/sendmail file is used to specify SENDMAIL configuration information, such as if sendmail should run as a daemon, if it should listen for mail or not, and how much time to wait before sending a warning if messages in the queue directory have not been delivered.
Create the sendmail file touch /etc/sysconfig/sendmail and add in this file: