Topic: Manual upgrade issues with "migrate_sql_alias_table.py"
================ Required information ====
- iRedMail version (check /etc/iredmail-release): 0.9.7 (just upgraded from fresh 0.9.6 installation)
- Linux/BSD distribution name and version: Ubuntu 16.04
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? yes (2.7.0 upgraded from 2.6.0)
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====
Hello all!
Today I was upgrading our iRedMail 0.9.6 server (fresh installation) to 0.9.7.
Everything works fine except the script "migrate_sql_alias_table.py" does produce a strange result.
Maybe some of you can confirm the same issue:
I have an example domain with only three users/mailboxes. Please see attached screenshot "domain_users.png".
This screenshot has been done with iRedAdmin-Pro 2.6.0.
There are *no* aliases configured on this domain.
Now I performed migration of the data to the two new MySQL tables. I did not remove the original data in vmail.alias table.
Output:
* [1/428] Migrating mail user 2016@xxxxxxx.com
* [2/428] Migrating mail user 2017@xxxxxxx.com
...
* [167/428] Migrating mail user info@xxxxxxx.com
...
* DONE.
iRedAdmin-Pro was upgraded as well to 2.7.0.
Now I have some aliases configured on that domain - which makes no sense IMHO.
Please see attached screenshot "domain_aliases.png".
The MySQL table forwardings does contain:
# id, address, forwarding, domain, dest_domain, is_list, is_forwarding, is_alias, active
'1', '2016@xxxxxxx.com', '2016@xxxxxxx.com', 'xxxxxxx.com', 'xxxxxxx.com', '0', '1', '0', '1'
Note that the domain and dest_domain values are the same. address and forwarding are the same as well.
Is this a "new" behaviour or a bug?
Many other domains have the same issue like
# id, address, forwarding, domain, dest_domain, is_list, is_forwarding, is_alias, active
'14', 'acronis.xxx@example.net', 'acronis.xxx@example.net', 'example.net', 'example.net', '0', '1', '0', '1'
'43', 'autoxxxx.de', 'info@autoxxxx.de', 'autoxxxx.de', 'autoxxxx.de', '0', '1', '0', '1'
Please help.
@Zhang: You can take a look to our server via SSH if you want, please just let me know.
Best regards,
Bernhard
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.