I’ve been a virtualmin user for a over a year and have recently migrated to a new server. This new server is running Ubuntu 10.04 x86. Since backing up/restoring one of the websites I host, the site cannot send email.
Usually the log for postfix is kept in /var/log/mail.log& /var/log/mail.err but these files do not exist and I am unable to investigate this further.
The site in question is using the Zend Framework’s Zend_Mail component to send the email. When trying to send the email it throws an exception saying “Unable to send mail” - as far as I’m aware, this is based on the PHP mail() function if a transport layer isn’t provided.
Can anyone help shed any light on this?
Thanks in advance
You should definitely have mail logs in /var/log somewhere… are they by chance using a different name?
You might also want to try restarting Postfix just in case that helps.
However, some other things to check –
Verify that your PHP script supports PHP version 5.3.x, which is what comes with the new Ubuntu. That’s a fairly new PHP version, and not all apps support it.
Make sure that the Zend module you’re using was designed for PHP 5.3.x, and that you aren’t still using the one that worked on your previous PHP version.
You may also get some help by looking in the Apache logs, in $HOME/logs/error_log. Your script may be throwing some errors in there.
I actually managed to fix this today. There was a problem with my server logging daemon - it wasn’t installed. I would actually like to request that this is installed during the install of Virtualmin.
Thanks for your advice anyway. I know you do your best!