Mail for domain failed!

6 posts / 0 new
Last post
#1 Fri, 04/10/2009 - 01:27
huug

Mail for domain failed!

Hi,

When I want to enable mail for a domain, Virutalmin reports:

Adding to email domains list .. .. Mail for domain failed! : Updating Webmin user .. .. done Saving server details .. .. done Re-loading Webmin .. .. done

I'm running on Ubuntu 8.04 and when I check the virtualmin config it sais:

Mail server Postfix is installed and configured.

Everything else is working fine.

On this page: http://www.virtualmin.com/component/option,com_openwiki/Itemid,48/id,troubleshooting_common_problems/#email you mention the DNS configuration needs to have MX records, but they are missing in my DNS record file. Do I need to add them myself? Or are these added when enabling mail on the domain?

Oh, and initialy postfix had an error saying the file /etc/postfix/virtual.db was missing. But I added it with the help of the postmap command.

Fri, 04/10/2009 - 10:59
Joe
Joe's picture

This one is not a common problem...so you won't see it in the troubleshooting guide. But thanks for actually having read it! ;-)

MX records are handled by Virtualmin. You don't need to add them.

This particular problem is way before DNS could become an issue.

I'm not actually sure what could cause this.

Did you install using the automated install script? (install.sh from the Download page here at Virtualmin.com) Or did you do a manual install using packages downloaded from Webmin.com?

--

Check out the forum guidelines!

Mon, 04/13/2009 - 10:43
huug

Thank you for answerng!

I followed the &quot;Setting up Virtualmin&quot; instructions on <a href='http://www.webmin.com/vdownload.html' target='_blank'>http://www.webmin.com/vdownload.html</a>

But maybe it was better to run the automated install script? I was not sure about it because in my case it was not a &quot;fresh&quot; system.

Should I post some log file so you can help me find the solution?

Mon, 04/13/2009 - 11:01 (Reply to #3)
Joe
Joe's picture

If it's not a freshly installed OS, then you probably don't want to run the install script. It could break stuff.

But, you do have to perform a lot more configuration if you don't use install.sh.

You might have a look at the virtualmin-base-standalone.pl script, in particular at the Postfix section, to be sure you have a pretty sane configuration to start with:

http://software.virtualmin.com/lib/virtualmin-base-standalone.pl

I'm guessing the virtual map isn't configured correctly...though I'm surprised the Config Check didn't complain about it.

--

Check out the forum guidelines!

Wed, 04/22/2009 - 09:14
nsmith

I have just set up a new server with the install.sh script. After setting up one test domain, I converted authentication to LDAP and deleted the domain and trying to re-add I get the same message. I too am on Ubuntu 8.04.

How would I go about checking the virtual map you mentioned?

Neal

Wed, 04/22/2009 - 09:18 (Reply to #5)
andreychek

Hi Neal,

I'm unfortunately not too familiar with setting up LDAP alongside Virtualmin, but if you haven't already, you may wish to check this out:

http://www.virtualmin.com/documentation/id,combining_virtualmin_and_ldap/

Of particular note, there's a section there for setting up Postfix, perhaps that will get you pointed in the right direction.
-Eric

Topic locked