1

Topic: Unable to delete alias

==== Required information ====
- iRedMail version (check /etc/iredmail-release): 1.9.2
- Linux/BSD distribution name and version:
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Apache
- Manage mail accounts with iRedAdmin-Pro? Yes
- Related log if you're reporting an issue:
====

Am unable to delete an alias using iRedAdmin - it says it has been deleted, but it has not.

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: Unable to delete alias

Sorry about this trouble. It's a known bug in iRedAdmin-Pro-MySQL-1.9.2, and fixed in the new release immediately follows it: iRedAdmin-Pro-SQL-2.0 (and later releases).

here's patch to fix it:

diff -r 1b7bdaf10804 -r ef52758f69c6 templates/default/mysql/alias/list.html
--- a/templates/default/mysql/alias/list.html    Sat Feb 14 22:58:26 2015 +0800
+++ b/templates/default/mysql/alias/list.html    Fri Feb 20 13:15:06 2015 +0800
@@ -74,7 +74,7 @@
             {% set address = r.address |e %}
             {% set name = r.name |e %}
             <tr>
-                <td class="checkbox"><input type="checkbox" name="username" value="{{ address }}" /></td>
+                <td class="checkbox"><input type="checkbox" name="mail" value="{{ address }}" /></td>
                 <td>
                     <a href="{{ctx.homepath}}/profile/alias/general/{{address}}"><img src="{{ctx.homepath}}/static/{{skin}}/images/action_edit.png" class="fr-space" title="{{ _('Edit account profile') }}" /></a>
                     {{ set_account_status_img(r.active) }}

BTW, iRedAdmin-Pro-MySQL-1.9.2 is too old, you should upgrade both iRedMail and iRedAdmin-Pro to the latest stable releases.

3

Re: Unable to delete alias

Sorry for the basic question - but how do I implement this patch exactly?

For upgrading to the latest releases, as you know, there have been alot of modifications and configuration changes done to our setup and it has been working very well lately. Do you still recommend upgrading? and would this affect all of the customizations and configuration changes done to date?

Thanks as always!

4

Re: Unable to delete alias

markpike wrote:

Sorry for the basic question - but how do I implement this patch exactly?

This patch is very simple, if you compare the lines with '-' and '+' at the beginning, you can see we just changed one word (from 'name="username"' to 'name="mail"'), so you can update this file manually.

markpike wrote:

For upgrading to the latest releases, as you know, there have been alot of modifications and configuration changes done to our setup and it has been working very well lately. Do you still recommend upgrading? and would this affect all of the customizations and configuration changes done to date?

if you have many modifications and configuration changes, it might be hard for you to upgrade iRedMail and iRedAdmin-Pro. But it depends on what you actually modified. Would you mind sharing some more details of your modifications?

5

Re: Unable to delete alias

I have made this change manually as directed but still unable to delete the alias.
Is there anything else that needs to be done?

6

Re: Unable to delete alias

Did you restart Apache service after modified the file (templates/default/mysql/alias/list.html)?

7

Re: Unable to delete alias

Yes - apache was restarted.

8

Re: Unable to delete alias

It should be fixed if you correctly modified the HTML file. Could you please show me output of command below:

grep 'input type=' templates/default/mysql/alias/list.html

9

Re: Unable to delete alias

root@mail:~/iRedAdmin-Pro-MySQL-1.9.2# grep 'input type=' templates/default/mysql/alias/list.html
            <th class="checkbox"><input type="checkbox" class="checkbox select-all" /></th>
                <td class="checkbox"><input type="checkbox" name="mail" value="{{ address }}" /></td>
            <input type="submit" value="{{ _('Apply') }}" class="button fl-space" />
root@mail:~/iRedAdmin-Pro-MySQL-1.9.2#

10

Re: Unable to delete alias

markpike wrote:

                <td class="checkbox"><input type="checkbox" name="mail" value="{{ address }}" /></td>

It's fixed.
Did you restart Apache service?

11

Re: Unable to delete alias

Yes - the apache service was restarted (entire server rebooted)
Still not working.

12

Re: Unable to delete alias

Weird, it should fix your issue.
Do you plan to upgrade iRedMail to the latest release? and iRedAdmin-Pro?

13

Re: Unable to delete alias

Yes, but we will need assistance in the upgrade to ensure the stability is continued.