PDA

View Full Version : Getting DA to re-write files


damn
08-01-2006, 11:14 AM
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?

chatwizrd
08-01-2006, 12:04 PM
http://help.directadmin.com/item.php?id=113

and

http://help.directadmin.com/item.php?id=43

damn
08-01-2006, 04:39 PM
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:

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:


#!/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.