Getting DA to re-write files

damn

Verified User
Joined
Nov 30, 2004
Messages
101
Hello,

Today I copied a large file into the folder /root – which actually filled the / partition.

A user tried to add a new mail account, and after doing so found all their existing mail accounts not showing up in DA.

I removed the large file which created space in the / partition, but exim would not receive mail from anybody, saying ‘550 authentication required’.

I found that the files:

/etc/virtual/domains
/etc/virtual/domainownsers

were empty.

I have restored from a backup but it’s a few weeks old, how can I made DA re-write out all domains into these files to ensure I haven’t missed anybody?
 
Thanks so much.

With the fix_domainowners.sh file, running it seems to work but it has issues with the domain pointers, and output contains plenty of this:

Code:
cat: /usr/local/directadmin/data/users/xxx/domains/xxx.id.au.pointers: No such file or directory

so I removed the bit of the file that was doing that:

Code:
#!/bin/sh

for u in `ls /usr/local/directadmin/data/users`; do
{
   for d in `cat /usr/local/directadmin/data/users/$u/domains.list`; do
   {
     echo "$d: $u"

   }
   done;
}
done;

What am I missing by doing that, the file looks okay.
 
Back
Top