Disable automatic creation of "mail." domain

kszadkowski

Member
Sep 30, 2014
13
0
51
cPanel Access Level
Root Administrator
I don't know in which section to write my post, so sorry in advance.

By default, cpanel creates mail .___ domains for all new accounts - I don't use such domains, so I don't need it. The only thing that bothers me is that AutoSSL keeps reporting problems to me on some domains.

How can I disable the automatic creation of mail.___ domains and delete those created on existing accounts?
 

Attachments

quietFinn

Well-Known Member
Feb 4, 2006
1,833
422
438
Finland
cPanel Access Level
Root Administrator
Go to WHM -> DNS Functions -> Edit Zone Templates -> standardvirtualftp
and remove line:
mail IN CNAME %maildomain%.
and SAVE.
After that the mail DNS record will not be created any more.

I don't know a way to remove existing records (other than editing DNS Zones).
 

cPRex

Jurassic Moderator
Staff member
Oct 19, 2014
14,241
2,217
363
cPanel Access Level
Root Administrator
@quietFinn - that is the correct way to remove the DNS record, but we still do create the record by default in the Apache vhost system. Currently there isn't a way to disable the records from appearing in the Apache configuration, although that would make for a great feature request if you'd like to submit one.
 
  • Like
Reactions: quietFinn