I researched ... "/home/vpopmail/bin/vdominfo" info is in
"/var/qmail/users/assign" file ...
I see here a bad format string:
+mydomain.com-:mydomain.com:::/home/lxadmin/mail/domains//home/vpopmail/domains/mydomain.com:-::
good format string (7800 is my userdomain):
+mydomain.com-:mydomain.com:7800:7800:/home/lxadmin/mail/domains/mydomain.com:-::
... then i go ... "../bin/fix/fix-qmail-assign.php" and in
resetQmailAssign function i read ...
$mpath = "/home/lxadmin/mail/domains";
and
$con->select_db("vpopmail");
$result = $con->query("SELECT pw_name, pw_domain, pw_dir FROM vpopmail");
if (!isset($result)) { return; }
$n = array();
while ($row = $result->fetch_array(MYSQLI_ASSOC)) {
// MR -- need this team to fix issue where prefix account as the same as prefix domain
// like your@yourdomain.com (the same 'your')
$temp = str_replace($mpath . "/", '', $row['pw_dir']);
$n[$row['pw_domain']] = $mpath . "/" . str_replace("/" . $row['pw_name'], '', $temp);
}
but in my
"vpopmail" database ... old domains have: "
pw_dir"=>
/home/vpopmail/domains/mydomain.com/Postmaster ...
To resolve it, I have updated the "
pw_dir" field in
"vpopmail" database:
update vpopmail set pw_dir=replace(pw_dir, '/home/vpopmail/domains/','/home/lxadmin/mail/domains/') where pw_dir like '/home/vpopmail/domains/%'
Then:
sh /script/fixmail-all; sh /script/restart-mail;