Webmin version 1.540
Virtualmin version 3.84.gpl GPL
I recently updated the Virtualmin module on my cloud server (Fedora release 13 (Goddard)) and this seems to have broken the Postfix configuration.
After completing the upgrade I ran the “Re-Check Configuration” function in the control panel and was greeted with the following message:
Your Postfix configuration is missing the system's mail hostname xxx from the mydestination line,
which will cause mail to bounce.
I have since checked this on other platforms including Centos and Redhat Enterprise and found the same problem.
Postfix is definitely set up correctly, email does not bounce and did not receive this message before the upgrade.
The upshot is that the “Features and Plugins” page no longer functions.
Can anyone who has already updated tell me if they encountered similar problems and, if they did, what steps can be taken to work around the problem?
We’ve seen a lot of problems occur when the system’s hostname gets out of sync with what’s listed on the “mydestination” line of /etc/postfix/main.cf and the entry /etc/hosts.
If you aren’t having problems though, that’s great
However, a quick and easy fix would just be to edit /etc/postfix/main.cf, look for the “mydestination” line, and add your system’s hostname to the end of that. That should prevent any weird email things from going on, but in your case, it will more importantly make that error message go away
Well, there is a bug in the current Virtualmin version that allows it to get confused in some cases, and not always correctly see what items are actually in the mydestination line.
My recommendation is to try the Re-Check config again once the next Virtualmin version comes out (in the next few days), and if it still doesn’t work – let us know, that may be a bug you’re seeing. We’ll get it figured out
The error msg gave me the name it said it was looking for eg…
“Your Postfix configuration is missing the system’s mail hostname xxxxxx.ttt from the mydestination line, which will cause mail to bounce.”
What I did next was to pop open the search widget and searched all of /etc for any file contain xxxxxx.ttt.
It found three files
/etc/webilizer/webilizer.conf
/etc/mailname
/etc/mailman/mm_cfg.py
so I changed wherever it had xxxxxxx.ttt to whatever my real hostname for this server was and that solved it for me. But I believe the file that was creating this error was the /etc/mailname file.
I have the same issue as above after update.
Operating system Debian Linux 6.0
Webmin version 1.560
Virtualmin version 3.87.gpl GPL
"Your Postfix configuration is missing the system’s mail hostname host.domain.com from the mydestination line, which will cause mail to bounce.
… your system is not ready for use by Virtualmin."
I’ve check many times main.cf postfix config and restarted postfix after change. I’ve tried many configurations but Virtualmin configuration check show still the same error message and stop.
It’s so strange as it was working configuration before update. Also I have no bounce and postfix seems to work ok.
Anyone have an idea where this issue could be and how to fix it?
go to webmin>servers>postfix mail server > General options
in the line
What domain to use in outbound mail x Use hostname x Use domainname x text box
check the first option. Use hostname. i had this problem and fixed in this way
This worked for me. I had added myhostname = domain.tld in the main.cf and $myhostname to the mydestination line, like in the main.cf.default. Altogether, it’s solved. Thanks for taking the time to post a solution.
I was having this problem so I followed these steps to make it work again. I got a lot of this from reading this thread and tried a few things on my own.
First thing I did was check my hostname with:
hostname -f
the result was this
hhws2
That was incorrect so I used this to fix the hostname:
echo myserver.mydomain.tld > /etc/hostname
/etc/init.d/hostname restart
the next thing I did was to fix the mailname file like this
postconf -e ‘myhostname = virtualmin2’
Then I did this to make sure it worked properly
note: Don’t jump me for this but I like nano and hate vi
nano /etc/mailman
the contents were as expected: virtualmin2
I edited the /etc/hosts file
nano /etc/hosts
changed the line to look like the following
xxx.xxx.xxx.xxx virtualmin2
Saved it
Then I restarted the network /etc/init.d/networking restart – Just my practice to make sure the network picks up the new hostname.
Then I restarted postfix from the webmin cp and everything worked fine.
Hope this helps someone to keep from having to read as much as I did.