/etc/virtual/domainowners

Jeff_Infopop

Verified User
Joined
Jan 23, 2004
Messages
12
Our / partition filled up last night from a /etc/virtual/<domain_name>/reply/webmaster.log.

We've gotten a few complaints that e-mail isn't working and after a little investigation it looks like our /etc/virtual/domainowners file is now zero bytes.

Is there an easy way to rebuild this file?
 
Hello,

Try creating this script:

Code:
#!/bin/sh

FILE=/etc/virtual/domainowners

rm -f $FILE

for i in `ls /usr/local/directadmin/data/users`;
do
{
        for j in `cat /usr/local/directadmin/data/users/$i/domains.list`;
        do
        {
                echo $j:$i >> $FILE;
        };
        done;
};
done;
Then just chmod it to 755 and run it.

John
 
I forgot to mention to chown it to mail:mail or else DA won't be able to write to it for new domains.

John
 
After rebuilding that file, how do you rebuild the email accounts that were created before it was ruined?

In the var/spool/virtual directory, the email holding files do not exist for all old domain names.
 
Back
Top