After switching over the Purple Monkey Studio servers to Sentora I noticed that system email notifications from cron jobs and various other utilities we have installed were not being delivered. A quick check of the mail queue (mailq) on one of the servers showed errors in the messages being delivered.

Mail Error:
C5048A0EC8 2713 Thu Oct 22 11:30:51 MAILER-DAEMON
(mail for delta.pmhost.xyz loops back to myself)
[email protected]

Problem:
On our servers we redirect all root email via the aliases file to an external email address. Sentora’s install of postfix does not allow for the server’s name in the destination. Since this is a sub-domain of our main domain we do not want to setup the entire sub-domain as a mail host.

Solution:
The fix is easy, a quick modification to the postfix configuration file located at /etc/postfix/main.cf 

Look for the line specifying the destinations allowed:
mydestination = localhost.$mydomain, localhost

Correct this line to include your server’s hostname as well:
mydestination = delta.pmhost.xyz, localhost.$mydomain, localhost

At this point you can either wait for the mail queue to reattempt delivery of any messages pending in the queue or you can force a retry using the postfix flush command.

 

Read more Sentora tips.

Follow Me

Kevin Fairbanks

Kevin Fairbanks is the Managing Partner at Purple Monkey Studio located in Syracuse, NY, Co-Owner/Programmer at bivvy located in Utica, NY and a Web Developer/Programmer for Quadsimia located in New York Mills, NY where he builds everything from responsive websites to applications. In his spare-time he is either spending it with his daughter or tinkering with electronics.
Follow Me

Latest posts by Kevin Fairbanks (see all)

  • Mahmudul Hasan Rubel

    Hi Kevin,

    Your both of sentora tutorials and fixes is awesome and work for me..

    BTW, I am looking for sentora WHMCS alike billing module.. But can’t fine one…

    Also, i have problem with sentora DNS.. My problems here: http://www.intodns.com/racthosting.com

    Thanks…

    • Mahmudul,
      Thank-you for the comments. Can you provide me a screen shot of what the dns record looks like inside your Sentora for that domain.

      Thanks
      Kevin