Handling System Mail

When setting up ZCS servers one probably should not ignore setting up either sendmail, postfix or your favorite MTA for handling local UNIX/system mail which can be generated by cron or other system services.

Here is one way that you can setup sendmail on RHEL to send all locally generated messages to a specific host ( in this example). With these modifications made to the default RHEL configuration, sendmail will not listen on port 25 but it will watch local queues in case the host '' is not available when the local mail is first created.

Update /etc/mail/

 [rhel:/etc/mail]$ diff -u
 ---      2006-11-28 08:59:20.000000000 -0600
 +++   2008-12-16 13:09:39.000000000 -0600
 @@ -27,4 +27,6 @@
  dnl If you use IPv6 only, change [] to [IPv6:::1]
 -FEATURE(`msp', `[]')dnl
 +dnl FEATURE(`msp', `[]')dnl
 +FEATURE(`msp', `')dnl
 +define(`confDOMAIN_NAME', `my.domain')dnl


 [rhel:/etc/sysconfig]$ diff -u sendmail.ORIG sendmail
 --- sendmail.ORIG       2006-11-28 08:59:21.000000000 -0600
 +++ sendmail    2008-12-16 13:14:01.000000000 -0600
 @@ -1,2 +1,2 @@

Restart sendmail

 /sbin/init.d/sendmail restart
Jump to: navigation, search