Manage domain and emails from Virtualmin for base nameserver domain

16 posts / 0 new
Last post
#1 Wed, 07/20/2016 - 05:28
3KyNoX

Manage domain and emails from Virtualmin for base nameserver domain

Hello everyones!

I successfully installed and configured virtualmin and managing my domains with Bind with webmin correctly.

I own 2 domains currently

  • noxen.net : base domain where primary nameserver is set with emails & aliases root@noxen.net and nox@noxen.net (nox is root user too)
  • taucetifederation.com : virtual server created and working great, can manage domain and email adresses following documentation correctly.

Problem is as noxen.net is base domain where ns1 is set, it don't appear as a virtual server. And I can't find out :

  • Where to set additional email addresses for root or nox users.
  • Manage domain with virtual server features and got noxen.net on virtual server list

I can manage domain from webmin -> bind configuration currently, which is good but can't create new email adresses or aliases for this domain anyway.

Any explanations is possible please ?

Tks.

Wed, 07/20/2016 - 13:56
Diabolico
Diabolico's picture

Did you install Virtualmin with Webmin or just Webmin alone?

- I often come to the conclusion that my brain has too many tabs open. -
Failing at desktop publishing & graphic design since 1994.

Wed, 07/20/2016 - 18:02
3KyNoX

Virtualmin with webmin.

Wed, 07/20/2016 - 19:29
Diabolico
Diabolico's picture

Problem is as noxen.net is base domain where ns1 is set, it don't appear as a virtual server.

Just to be sure what is your problem, you are saying that noxen.net domain doesnt appear in Virtualmin under virtual servers but you can see it from various Webmin modules like named, mysql, etc.?

- I often come to the conclusion that my brain has too many tabs open. -
Failing at desktop publishing & graphic design since 1994.

Thu, 07/21/2016 - 02:18
3KyNoX

Right. That base domain is used for nameserver and primary website located at /var/www/html (debian used on this server). I can't list too other email adresses like root@noxen.net or nox@noxen.net and manage it from webmin, or creates new.

Thu, 07/21/2016 - 04:48 (Reply to #5)
coderinthebox

Did you add a virtual host named noxen.net? You need to have a virtual host to make the email work. What the primary domain do is an anchor for the nameservers if you are running your own DNS.

Visit me at coderinthebox.com

Thu, 07/21/2016 - 07:07
3KyNoX

I tried to create a virtual server with base domain noxen.net and virtualmin answer domain already exist (as it is already set as nameserver in bind configuration) and don't permit to create it.

The only option to manage base domain to be a virtual server is using virtualmin link "Import existing domain as a virtual server" but I'm afraid using this breaks something as it will create another bind zone file.

Well, maybe everything are not clear with me as I'm not much familiar with bind and domains in general.

Thu, 07/21/2016 - 21:53 (Reply to #7)
coderinthebox

Bind is a beast in itself, it is hard to learn and hard to figure out until you gain an intermediate knowledge of it. There are a lot of variable things that can happen which makes bind troubleshooting hard.

Visit me at coderinthebox.com

Thu, 07/21/2016 - 12:51
Diabolico
Diabolico's picture

How did you add that domain if you didnt use Virtualmin? Did you manually edit files to add noxen.net domain? This could explain your problem because adding name servers would not prevent you to later add the domain. Just to be sure, did you check under Vmin - List Virtual Servers if you have noxen.net?

- I often come to the conclusion that my brain has too many tabs open. -
Failing at desktop publishing & graphic design since 1994.

Fri, 07/22/2016 - 11:43
3KyNoX

noxen.net is not listed, and yes, I initially set that first domain by manually editing it following my registrar documentation.

I think it could be good to try the import of noxen.net domain and check what to repare after the operation ?

Fri, 07/22/2016 - 14:31
Diabolico
Diabolico's picture

Or you could delete all the current records of that domain and then use Virtualmin. In this way you are sure Virtualmin will do all needed task to properly setup this domain.

- I often come to the conclusion that my brain has too many tabs open. -
Failing at desktop publishing & graphic design since 1994.

Sat, 07/23/2016 - 03:46
3KyNoX

Including nameserver records ?

TTL 10800 @ IN SOA ns1.noxen.net. root.noxen.net. ( 18 3600 600 86400 600 ) ;

@ IN NS ns1.noxen.net. @ IN NS ns6.gandi.net.

noxen.net. IN MX 5 mail.noxen.net.

noxen.net. IN A 92.222.195.7 ns1.noxen.net. IN A 92.222.195.7

...

and using "Create a new Virtual Server" link.

Or keep existing noxen.net zone file and using "Import ..." link ?

Sat, 07/23/2016 - 07:09
Diabolico
Diabolico's picture

First make a backup of /etc, /var and /home (at least on centos, it could be different on other OS) after that you can test what method is better. But if you just add the domain Virtualmin should setup everything, including DNS.

- I often come to the conclusion that my brain has too many tabs open. -
Failing at desktop publishing & graphic design since 1994.

Sun, 07/24/2016 - 04:08
3KyNoX

Hello again,

I did the Import feature and works now, difference now is I have some menu to manage some services for that domain, including possibility to manage new mails and aliases. Virtualmin / Webmin kept original dns zone file while the import operation and minimal services are actually set :

View image

I'll try next to activate some more services step by step like virtual web server (importing apache existing configuration), anti-spam filter, etc...

Just for you to know.

Cheers.

Tue, 07/26/2016 - 23:46 (Reply to #14)
coderinthebox

blur out the username, people can brute force your server knowing that the user name /account on your image exist.

Visit me at coderinthebox.com

Sun, 07/24/2016 - 07:01
Diabolico
Diabolico's picture

Great to hear you manage to sort at least one part of the problem. Hope it will go well for the rest.

- I often come to the conclusion that my brain has too many tabs open. -
Failing at desktop publishing & graphic design since 1994.