1 (edited by fr 2019-07-17 22:51:01)

Topic: remove alias sql

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 0.9.9
- Deployed with iRedMail Easy or the downloadable installer? installer
- Linux/BSD distribution name and version: openbsd 6.4
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): mariadb
- Web server (Apache or Nginx): nginx
- Manage mail accounts with iRedAdmin-Pro? no
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
====

Hello. how can I remove an alias sql account?
I tried with


[vmail] delete from alias where address='alias@domain.com';

I then have to create a user account (normal) with the same name, but the alias is still existing... why?

2

Re: remove alias sql

You should also remove it from "vmail.forwardings" table.

You may consider managing mail accounts with our full-featured web admin panel - iRedAdmin-Pro:
https://www.iredmail.org/admin_panel.html

----

Does my reply help a little? How about buying me a cup of coffee ($5) as an encouragement?

buy me a cup of coffee

3

Re: remove alias sql

ZhangHuangbin wrote:

You should also remove it from "vmail.forwardings" table.

You may consider managing mail accounts with our full-featured web admin panel - iRedAdmin-Pro:
https://www.iredmail.org/admin_panel.html


I had solved just removing the alias fw as well.
Thanks again.