Hi people,
I setup a few domains on my VPS (installed virtualmin via the install.sh on Ubuntu 8.04).
I was testing the email and ftp and such and it seems that incoming email isnt being delivered. Outgoing gets sent fine, but when sending an email i get the following email back saying it didnt work:
This is the mail system at host HOSTNAME.
I’m sorry to have to inform you that your message could not be delivered to one or more recipients. It’s attached below.
For further assistance, please send mail to postmaster.
If you do so, please include this problem report. You can delete your own text from the attached returned message.
Reporting-MTA: dns; HOSTNAME
X-Postfix-Queue-ID: 70EC47FE620
X-Postfix-Sender: rfc822; email address it was sent from
Arrival-Date: Thu, 2 Jul 2009 15:58:45 +0100 (BST)
Final-Recipient: rfc822; domain@HOSTNAME
Original-Recipient: rfc822;domain@domain.co.uk
Action: failed
Status: 5.4.6
Diagnostic-Code: X-Postfix; mail for HOSTNAME loops back to myself
it was working last night (GMT) but has since stopped working correctly. I didn’t make any modifications to the server either.
The status of your system is being checked to ensure that all enabled features are available, that the mail server is properly configured, and that quotas are active …
Virtualmin is configured to setup DNS zones, but this system is not setup to use itself as a DNS server. Either add 127.0.0.1 to the list of DNS servers, or turn off the BIND feature on the module config page.
… your system is not ready for use by Virtualmin.
I wonder why it suddenly broke
what should i do to fix it? just add 127.0.0.1 to where it says?
yes you need to add the 127.0.0.1 and then save. Not apply configuration else it will disappear again…Webmin - networking - Network Configuration - Hostname and DNS Client - add it to DNS servers and click save, that’s it
Yeah, I’d recommend following Ronald’s advice for adding 127.0.0.1 into the resolv.conf.
As for why it happened – is your server using DHCP? It’s possible the DHCP service is overwriting your resolv.conf file whenever it renews your IP address lease.
Hard coding a static IP could solve that. Or, there may be an option for telling DHCP not to change your DNS servers.
Looks like this may have been a hostname related issue.
I made sure the current hostname was set in “mydestination” in /etc/postfix/main.cf, restarted Postfix – and the test email I sent seemed to go through!
Don’t want to raise threads from the dead, but in case it’s helpful I can report the same problem with 3.72.gpl — which was fixed by modifying /etc/postfix/main.cf as Eric described.
I’m not sure if this is the direct cause, but it’s the last thing I remember doing before noticing the email failures:
Under “Edit Virtual Server” --> “Enabled Features” I unchecked the “Mail for domain enabled?” box (which had been checked since the creation of the virtual server).
This, as expected, disabled mail for that domain. However, I later went back to re-enable mail for domain via the same checkbox.
After doing this, I noticed that deliveries to all virtual servers were failing. Mail heading outbound worked fine the whole time.
Thanks again for your generous support. The forum archives have been invaluable to getting my server working.