The assign file is not just for domains but also users in domains and also alias domains if I remember correctly.

On 6/5/2018 8:30 AM, Quinn Comendant wrote:
There is a QMT server with 136 domains. It has 136 domains in its vpopmail DB 
and 136 domains under /home/vpopmail/domains.

However, the /var/qmail/users/assign file has 157 distinct domains, and 
vdominfo reports 155 domains. The /home/vpopmail/bin/* tools are used 
exclusively for managing accounts. There are 20 dirs specified in ./assign that 
don't exist on disk – these domains are defunct.

Somehow these got out of sync.

It's clear I should just remove them from ./assign — right?

Is there awareness of a bug that causes this to happen?

Quinn


mysql vpopmail -e 'select count(distinct pw_domain) from vpopmail'
136

vpopbull -Vn 2>/dev/null | grep postmaster@ | wc -l
136

find /home/vpopmail/domains -name Maildir -path **/postmaster/Maildir | wc -l
136

cut -d: -f5 < /var/qmail/users/assign | sort | uniq | wc -l
157

vdominfo | grep ^dir | sort | uniq | wc -l
155

for l in $(< /var/qmail/users/assign); do d=$(cut -d: -f5 <<<$l); sudo test -d 
$d || echo $d; done | wc -l
20

--
Eric Broch
White Horse Technical Consulting (WHTC)


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to