Error "Failed to create virtual server: The feature mail is not allowed for virtual server matching the hostname" on Ubuntu 22.04 with Virtualmin 7.20.2

SYSTEM INFORMATION
OS type and version Ubuntu 22.04
Virtualmin version 7.20.2

Hello,

I am encountering an issue when trying to create a virtual server on my VPS. Here are the details:

  • Operating System: Ubuntu 22.04
  • Virtualmin Version: 7.20.2
  • Hostname: congnghe.blog

I am attempting to create a virtual server for the domain congnghe.blog, but I receive the following error:

Failed to create virtual server : The feature mail is not allowed for virtual server matching the hostname

I have already checked my configurations but cannot figure out why this error occurs. Previously, I have set up similar configurations without encountering this problem. Could anyone help me understand what might be causing this issue and how to resolve it?

Thank you in advance for your assistance.

Best regards,
Thanh

Does this virtual server that you are trying to create have a domain name which is the same as the hostname that you have given to the Virtualmin system?

Yes. The hostname I set is: congnghe.blog. Now I want to create a virtual server for the domain: congnghe.blog.

The hostname should be a subdomain - e.g. somerandom.domain.tld.

If you had followed the docs and done this then you would not have received this error when creating a virtual server with that domain name.

Oh. Thanks. Iā€™ll do it again. Iā€™ve always set the hostname to the top level domain.

Yes, there have been some changes around this in the current version of Virtualmin - 7.20.2.

But as a rule, a hostname should be a subdomain.

2 Likes

The change is that we now warn you that youā€™re making a mistake. We used to silently allow you to make a mistake.

1 Like

i am installing virtualmin using putty by giving my main domian as host

sudo hostnamectl set-hostname abc.com

so it has to be

sudo hostnamectl set-hostname subdomain.abc.com

and after that

sudo nano /etc/hosts

i set my main domain

(ip ļƒ hostname)
(ip ļƒ mail.domainname)

after that i am able to set my host vps.domainname.c0m
Now the problem is when i am trying to access vps.domainname.c0m:10000 i am getting DNS_PROBE_FINISHED_NXDOMAIN error. i set up all records for domainname.com how can i set records for vps.domainname.com in my namecheap account?

Hello @farazulhassan and welcome to the community.

Is your system showing the same error as that of the OP: Failed to create virtual server? If not, please start a new topic with your specific problem so that the community could assist you.

Respected sir this is somehow related to this topic as i am facing this after this virtualmin update. i was searching on google for ā€œFailed to create virtual server : The feature mail is not allowed for virtual server matching the hostnameā€ i am able to solve this by giving different host name but i am getting 4/10 rating on https://www.mail-tester.com/

You have made the correct move by changing the hostname. Please start a new topic. This topic is about something else.

We must all adhere to these

This topic was automatically closed 8 days after the last reply. New replies are no longer allowed.