|
The RedHat system will have Sendmail whilst Bynari uses Postfix. Here are some tricks to help manage the environment. In order to have root email delivered to the correct location on a bynari server you need to configure sendmail to deliver to the localhost as a smart host. The Postfix system from Bynari will then pick it up and deliver it. Ofcourse sendmail should be turned off so as not to interfere with Postfix/Bynari.
Firstly, configuration. The RedHat Sendmail is configured to use the submission client which means system mail will be submitted to smtpd on 127.0.0.1 , great, Postfix will be listening on port 25 so local mail submission works. Unfortunately some programs will call sendmail directly ( most web based applications like Request Tracker ). To accomodate this we still leave the sendmail disabled in chkconfig but configure the SMARTHOST option in the /etc/mail/sendmail.mc to be 127.0.0.1
cd /etc/mail
Edit sendmail.mc , SMARTHOST=127.0.0.1
m4 < sendmail.mc > sendmail.cf
chkconfig sendmail off service sendmail stop Often we would rather look at the Postfix queue than the sendmail queue, creating some symbolic links in /usr/local/bin that will take precedence in your $PATH is an easy way to acheive this. #ln -s /opt/insight/bin/mailq /usr/local/bin #ln -s /opt/insight/sbin/postsuper /usr/local/sbin Read http://www.postfix.org/postsuper.1.html for an explanation on your options to manage the mailqeue. To delete a backlog in the deferred queue, try: #postsuper -d ALL deferred do a /usr/lib/sendmail -v user@domain.com.au , you should see the submission to the postfix daemon on port 25 at localhost
To simply flush the postfix queue try "postqueue -f" Try a crontab like this: @hourly /usr/sbin/postqueue -f
|