Submitted by nilands55s on Sat, 05/20/2017 - 14:03
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
Submitted by JamieCameron on Sat, 05/20/2017 - 19:54 Comment #1
Which version of Dovecot are you running there? The command
dovecot --version
will tell you.Submitted by andreychek on Sat, 05/20/2017 - 21:17 Comment #2
In addition to Jamie's question above, was the Dovecot config file perhaps copied from another system?
Submitted by nilands55s on Sun, 05/21/2017 - 06:33 Comment #3
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.
Submitted by andreychek on Sun, 05/21/2017 - 09:21 Comment #4
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?
Submitted by JamieCameron on Sun, 05/21/2017 - 12:34 Comment #5
Or better still, in that line change
default_mail_env
tomail_location
. This problem can happen I think if Virtualmin's installer thinks you are running an older version of Dovecot.Submitted by nilands55s on Sun, 05/21/2017 - 17:28 Comment #6
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
Submitted by andreychek on Mon, 05/22/2017 - 09:43 Comment #7
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.