/etc/localdomains is always missing one domain name

jasgot

Well-Known Member
Mar 2, 2004
59
2
158
Every time something triggers a localdomains rebuild (/scripts/mailperm, or restarting exim, or updating mailscanner, etc) I have to add one domain back to localdomains.

I did create this domain account incorrectly at first, then deleted the account and re-created it. Everything else regarding this domain is fine, it just doesn't show up in localdomains.

I found this advice in many threads regarding localdamains, to run: /scripts/mailperm but I have to add my missing domain after I do that. So whatever is rebuilding the localdomains is not seeing this one domain.

How can I fix this?

Thanks.
 

chirpy

Well-Known Member
Verifed Vendor
Jun 15, 2002
13,462
25
473
Go on, have a guess
/scripts/mailperm is what rebuilds /etc/localdomains. It uses the DNS= lines from /var/cpanel/users/*, so you need to ensure that that users file is setup correctly. Also, make sure that if /etc/remotedomains exists that that domain isn't listed in it.
 

jasgot

Well-Known Member
Mar 2, 2004
59
2
158
Wow, thanks; the domain IS listed in remotedomains and remotedomains,v

Since it is the ONLY domain listed, can I just delete btoh files and restart EXIM?

Or should I remove the domain name and save the empty file?
 

jasgot

Well-Known Member
Mar 2, 2004
59
2
158
Okay, Since I am smarter than my own good, I renamed the remotedomains to remotedomains.bad and re-ran /scripts/mailperm

Now that suspect domain shows up in localdomains! YEAH!!!!

So is this all there is to it? Or should I be looking for other problems?

Thanks, Chirpy.

Jason.
 

ankushdawar

Member
May 11, 2003
19
0
151
India
Hi,

How can I make sure that server has setup /var/cpanel/users/*
For all users correctly. Is there a autofix for all, if there is anything
wrong them.

I am asking because, very often domains are deleted from /etc/localdomains
by themselves ... not able to figure out.

Thanks.