Knowledgebase: Dedicated Server
Blue Quartz says Sorry, an error occurred while trying to create an email server map file
Posted by Chris Gebhardt on March 23 2007 01:09 PM
Are you trying to make changes in your Blue Quartz control panel to a site or user and you receive this error message in red?
"Sorry, an error occurred while trying to create an email server map file. If mail server configuration files were removed or manually modified, please restore the original versions and try again."

This is usually due to a misconfiguration of the /etc/mail/access file. To fix it, you will need to log into your BlueQuartz server via SSH and change to root user.

Try reviewing /var/log/messages to see if the makemap script was unable to function correctly for /etc/mail/access. This is usually due to a corruption in the file.

If that is the case, try this command to make sure the permissions are correct:
# chmod 644 /etc/mail/access
# chmod 640 /etc/mail/access.db

Then perform this command:

# makemap hash /etc/mail/access.db < /etc/mail/access

You will likely receive messages similar to this:

makemap: /etc/mail/access.db: line 36: key domain1.com: duplicate key
makemap: /etc/mail/access.db: line 38: key www.domain2.com: duplicate key
makemap: /etc/mail/access.db: line 42: key domain3.com: duplicate key

In this case, you should edit /etc/mail/access with a text editor such as VI or NANO to remove the lines indicated in the messages above (ie: lines 36, 38, 42 using the above example)

Then again run this:
# makemap hash /etc/mail/access.db < /etc/mail/access

If needed, perform the same sequence with virtusertable:

# chmod 644 /etc/mail/virtusertable*
# chmod 640 /etc/mail/virtusertable.db
# makemap hash /etc/mail/virtusertable.db < /etc/mail/virtusertable

# service sendmail restart

Now you should be able to use the BlueQuartz GUI to administer sites and domains once more.

(861 vote(s))
Helpful
Not helpful

Comments (0)
Post a new comment
 
 
Full Name:
Email:
Comments: