doveconf: Fatal: Error in configuration file /etc/dovecot/dovecot.conf line 68: Unknown setting: default_mail_env

When enabling Dovecot I get an error "doveconf: Fatal: Error in configuration file /etc/dovecot/dovecot.conf line 68: Unknown setting: default_mail_env. % users where just set up. The check config reports No errors and the Re-Run Install Wizard seems to complete without errors. The features sow no errors either. I have tired different variations of search work but con not find an answer? I have no idea what "default_mail_env" means of where it come from? the SSL for nilandtrading.com is installed and is working on the website. The SSL manager has copied the SSL to all but the webmin login. This is a new Ubuntu 14.04.5 server install as I partitioned to old one. All else seems to work How do I fix this?

Status: 
Active

Comments

Which version of Dovecot are you running there? The command dovecot --version will tell you.

In addition to Jamie's question above, was the Dovecot config file perhaps copied from another system?

dovecot --version: 2.2.9, this is the virtualmin installed version and updated by virtualmin. No this is not copied from another system as Dovecot was installed by: sudo wget -O install.sh http://software.virtualmin.com/cgi-bin/install.cgi?serial=xxxxxxx\&key=xxxxJxxxx; sudo /bin/sh install.sh Note this is a new install, that I have not spent much time at although it has been installed for some time due to my disability.

Hmm, I'm not sure what's causing that error you're seeing, though it should be a simple fix.

Try editing your /etc/dovecot/dovecot.conf file, and on line 68, comment out the statement beginning with "default_mail_env".

Once you do that, try restarting Dovecot with the command "service dovecot restart".

Does Dovecot start correctly now?

Or better still, in that line change default_mail_env to mail_location . This problem can happen I think if Virtualmin's installer thinks you are running an older version of Dovecot.

OK well...well Or better still, in that line change default_mail_env to mail_location showed the problem as suddenly Dovecot was locking for vmail.
It seems I reloaded a backup for public_html and was not paying attention and got more then I wanted. seems I accidentally loaded some config files From a FUBAR ISP3config install. This was back in March and was the reason I had to redo the server from scratch
What would I have to delete and re-run to set the Webmin/Virtualmin back to default? So far I have copied directly from a February backup and replaced the /etc/.../dovecot and postfix directories. Noe re-check config says "A problem was found with your Postfix virtual maps No map sources were found in the Postfix configuration". Not sure where this is called from? Thanks James

There unfortunately isn't a way to get it to re-install just the missing parameters... or to reset it back to the original config, unfortunately.

And re-running the Virtualmin installer may cause more trouble than it solves.

Is this a new server?

If so, you might consider starting over with a fresh install of your distro, then re-run the installer.

Alternatively, we can certainly help you fix the errors you're seeing.

The most recent error you shared above can be fixed by adding this line to /etc/postfix/main.cf:

virtual_alias_maps = hash:/etc/postfix/virtual

And then restart Postfix.