How to get multiple domains in Custom DNS page?

I have created zone files for other domains in /etc/nsd/zones and also added them to /etc/nsd.conf.d/zones.conf.

But this is not showing up in Custom DNS page. I checked /home/user-data/dns/custom.yaml but it doesn’t look like it has everything Custom DNS page already has.

My question is, where is the data stored?

You do not create zone files. The system does that automatically when you add a domain.

You have read the guides, correct? Pop quiz: How do you add a domain to your MiaB?

Thanks,

Looks like it uses email address to find domain names mailinabox/management/dns_update.py at main · mail-in-a-box/mailinabox · GitHub

Could you link the guide please? If there is one. The initial domains (mail. and box.) are added by the script. Yes there is setup guide which tells you to setup the nameservers and glue records, etc but it doesn’t tell you how to add a new domain.

So if I add a new user with new domain using the cli, it will show up?

root@mail:~/mailinabox/management# ./cli.py 
Usage:
  management/cli.py user                                     (lists users)
  management/cli.py user add user@domain.com [password]
  management/cli.py user password user@domain.com [password]
  management/cli.py user remove user@domain.com
  management/cli.py user make-admin user@domain.com
  management/cli.py user remove-admin user@domain.com
  management/cli.py user admins                              (lists admins)
  management/cli.py user mfa show user@domain.com            (shows MFA devices for user, if any)
  management/cli.py user mfa disable user@domain.com [id]    (disables MFA for user)
  management/cli.py alias                                    (lists aliases)
  management/cli.py alias add incoming.name@domain.com sent.to@other.domain.com
  management/cli.py alias add incoming.name@domain.com 'sent.to@other.domain.com, multiple.people@other.domain.com'
  management/cli.py alias remove incoming.name@domain.com

Removing a mail user does not delete their mail folders on disk. It only prevents IMAP/SMTP login.

This is great because I hate to deal with the zones signing process.

Yes. But the absolute simplest method is on the Mail & Users tab in the admin area.

1 Like

Thanks! We can close this