Redirect root email in Sentora

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 loops back to myself)
[email protected]

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.

The fix is easy, a quick modification to the postfix configuration file located at /etc/postfix/ 

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

Correct this line to include your server’s hostname as well:
mydestination =, 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.

Kevin Fairbanks

Kevin Fairbanks serves as the Chief Executive Officer of PinkTie Technology Group, LLC – a website development and digital marketing agency. Kevin runs the Veteran Entrepreneur Mastermind where he helps bring Veterans together to discuss business ownership. He’s involved in several community organization including serving as a board member for the Greater Cicero Chamber of Commerce. As the host of a weekly podcast, Remove Before Flight, Kevin teaches Veterans how to start, grow, or scale a business.

Short of being a father, serving in the United States Air Force was the most important period in Kevin’s life. It reinforced who he is today and complimented the values taught to him growing up by his parents.

During his service time, Kevin had the pleasure of traveling the world and seeing how other cultures lived both pleasant and unpleasant. During one of these missions he experienced injuries that ultimately led to my honorable discharge as a Service Disabled Veteran.