nullmailer is a very simple MTA I like to use on Linux servers when I don’t want to have a lot of hassle with mail server configuration.
It will automatically send all local mail to one of my email addresses by simply installing it and configuring two files. The /etc/nullmailer/remotes I put in my smtp server. Here is an example:
mail.example.com smtp --firstname.lastname@example.org --pass=examplepassword
For /etc/nullmailer/adminaddr I put the following:
All mail delivered to, say, the local root account automatically gets sent to the email address put in the adminaddr file. Simple and convenient.
Troubleshooting is also simple. When the email is still in queue, you can see it with command mailq. It will also show where it’s going to be delivered. Logs can be found in /var/log/mail.log and /var/log/mail.err
One thing I’ve noticed is you’ve got to get your hostnames right. Make sure /etc/mailname has the fully qualified domain name in it. I had an issue when the hostname on the machine (/etc/hostname) was the same as the /etc/mailname.
Warning: Declaration of guru_walker_comment::start_el(&$output, $comment, $depth, $args, $id = 0) should be compatible with Walker_Comment::start_el(&$output, $comment, $depth = 0, $args = Array, $id = 0) in /var/www/html/wp-content/themes/guru-new/guru-walker-comment.php on line 0