Create email account in Webmin – Related errors and rapid fixes for you

Table of Contents

Webmin provides a user-friendly interface to quickly create email accounts.

But, Webmin may cause tricky email errors such as “Error while saving a mapping : No map file defined” due to undefined map file in the configuration file.

At 1 onlyhost, we often get requests from our customers to resolve the problems with “Webmin create email account” as part of our Server Management Services.

Today, we’ll see how our Support Engineers solved the errors related to “Webmin create email account”.

 

 

How to create an email account in Webmin

Webmin is a simple and efficient tool for website and server owners to manage their services. It’s easy to create an email account in Webmin.

Here we’ll see how our Support Engineers create an email account in Webmin.

To create an email account:

1. Firstly, we log into the Webmin control panel.

2. Then we select System > Users and Groups.

3. Next, we click on “Create a new user” link.

4. Then we fill the following field with customer details.

  1. User ID
  2. Real Name
  3. Home Directory
  4. Shell
  5. Password

5. Now, we click on to the “Create” button to create an email account.

6. Furthermore, to add a user to mail:

7. We go to Servers > Sendmail Configuration > Address Mapping.

Again, we fill the following fields too:

Mail for: Address(user@domain.com)
Send to: Enter the name of the mailbox the address points to

8. Then we click the “Create” button.

9. At last, we stop and restart Sendmail.

That’s how we create an email account and add the new user to mail in Webmin.

 

How we fixed errors related to “Webmin create email account”

From our experience in managing servers, we’ve seen that many customers experiencing issues while creating an email account in Webmin. Let’s see how our Support Engineers fixed the errors associated with email account creation in Webmin.

 

1. Missing map file

Recently one of our customers came up with an email issue. When he tried to add a new mapping, he was getting an error like “Error while saving a mapping : No map file defined​”.

Then our Support Engineers took the following steps to solve the error.

1. We logged into Webmin control panel.

2. Then, we checked if the main.cf file contains virtual_mailbox_maps or virtual_alias_maps and we found no virtual_mailbox_maps or virtual_alias_maps in the main.cf file.

4. So, we edited the Postfix main.cf and added the following entry.

virtual_alias_domains = Domainabc.com Domainxyz.com
virtual_alias_maps = hash:/etc/postfix/virtual

5. At last, we executed ‘postmap’ and restarted postfix service.

This is how we fixed “Error while saving a mapping : No map file defined​”.

 

2. Duplicate mailbox or mail alias

Sometimes Webmin does not properly move/delete/update e-mail addresses and/or aliases. So, it gives an error like “Failed to save mailbox : A mailbox or mail alias with the same name and domain already exists” when we try to create an email account in Webmin.

Now, let’s see how our Support Engineers solved this issue:

1. Firstly, we logged into Webmin control panel.

2. Then we checked if the e-mail account with the same name had already existed in “Edit Mail Aliases“. In addition, we searched in file /etc/passwd and /etc/postfix/virtual too.

3. Then we found that the email account with the same name has already existed in /etc/postfix/virtual.

4. So, we created a copy of /etc/postfix/virtual file.

5. Next, we deleted the line with the same e-mail address from /etc/postfix/virtual file.

6. At last, we run the following command.

postmap /etc/postfix/virtual

Now, the user could create an email account in Webmin without any errors.

 

[ Having trouble while creating an email account in Webmin? We’ll fix it for you.]

 

Conclusion

In short, Webmin provides a user-friendly interface to create emails. Sometimes errors may occur when creating an email account in Webmin due to undefined map file or the presence of duplicate mailbox. Today, we saw how our Support Engineers solved errors related to “Webmin create email account”.

Leave a Comment

Your email address will not be published. Required fields are marked *

Social Share

Facebook
Twitter
LinkedIn
Telegram

Cheapest Web Hosting

Fasters Web Hosting Promo
Scroll to Top

Launch your Website at RS599

Create a professional website yourself with our domain hosting combo. Get Extra benefits at this Year end Sale with 10% OFF and Enjoy Amazing Deels on Shared Hosting!

Starting at Only RS599/Year

Year End Sale

Hours
Minutes
Seconds

Use Code STARTBIZ at Checkout.

Create an earning opportunity with A Web Hosting Business

Become reseller and start reselling domains, web hosting, ssl certificates and More.

45% OFF

Starting at RS399/Month

Hours
Minutes
Seconds

Use coupon: at the checkout.