My /etc/virtual/domains file was nulled. I used https://help.directadmin.com/item.php?id=113 to rebuild. But is the script provided on https://help.directadmin.com/item.php?id=113 really a correct solution?
As I understand the /etc/virtual/domains should contain all domains with the "Local Mail Server" checkbox checked:
But the script will simply put *all* domains back in /etc/virtual/domains - not just these with "Local Mail Server" enabled - and that's not really what we want, right?
I'm not sure if this "checkbox" setting is stored somewhere else in /usr/local/directadmin/data/users/domains/... Is it?
As I understand the /etc/virtual/domains should contain all domains with the "Local Mail Server" checkbox checked:
Local Mail Server | |
[ X ] | Use this server to handle my emails. If not, change the MX record and uncheck this option |
But the script will simply put *all* domains back in /etc/virtual/domains - not just these with "Local Mail Server" enabled - and that's not really what we want, right?
I'm not sure if this "checkbox" setting is stored somewhere else in /usr/local/directadmin/data/users/domains/... Is it?
Last edited: