DNS and mail errors when renaming domain

3 posts / 0 new
Last post
#1 Mon, 03/11/2019 - 01:08
vishnunn

DNS and mail errors when renaming domain

Hi,

When i modify a virtual server to change domain name using remote API, among other things in the log, i get these errors and at the end, exit status is 0 with message "All done":

Changing DNS domain name .. splice() offset past end of array at /usr/libexec/webmin/bind8/records-lib.pl line 345. splice() offset past end of array at /usr/libexec/webmin/bind8/records-lib.pl line 345. .. done

Updating users .. .. Mail for domain failed! : mysql::execute_sql_logged failed : SQL set password for 'k2ktbiv12u@testi'@'127.0.0.1' = password('y%czzfgp1w') failed : Can't find any matching row in the user table at /usr/libexec/webmin/web-lib-funcs.pl line 1478.

Note that when i change domain name from Virtualmin UI, i don't get DNS error but I get the "mail for domain failed" error. Also, if i try to access "managed folders" in usermin for the user in the error above, it gives the error: An error occurred listing mail in this folder : Failed to login to POP3 server : [AUTHENTICATIONFAILED] Authentication failed.

Thanks, Vishnu N

Thu, 05/09/2019 - 01:57
vishnunn

Hi,

I still have this problem. It wold be great if anyone could shed some light on why this "Mail for domain failed" error appears or how to solve it.

Thanks, Vishnu N

Thu, 05/09/2019 - 10:23
vishnunn

Hi,

I finally was able to find out the cause of the "Mail for domain failed" error. This happens only if the "Format for usernames that include domain" in Server Templates is set to "username@domain" format. If i set it to "username-domain" that error no longer appears and the user's usermin can be accessed without any problems. So it looks like its either a bug in Virtualmin or some other underlying system when the username has a "@" symbol in it.

If this bug is of Virtualmin, it would be great if it is fixed soon. If anyone can confirm which part of Virtualmin is causing this problem, I can post it in issue tracker.

Thanks, Vishnu N

Topic locked