1

Topic: Trouble with getting alias domain working

==== REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER ====
- iRedMail version (check /etc/iredmail-release): 1.2.1
- Deployed with iRedMail Easy or the downloadable installer? installer
- Linux/BSD distribution name and version: Ubuntu 18.04
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): PGSQL
- 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.
====

Hi all,

I'm trying to add an alias domain, but it doesn't seem to be working.
I've followed instruction as per this document: https://docs.iredmail.org/sql.add.alias.domain.html
And confirmed that my database is showing the correct alias and target domains, and active = 1.

Any ideas?
Thanks

2

Re: Trouble with getting alias domain working

Please show us related SQL records, otherwise others can not help troubleshoot.

----

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: Trouble with getting alias domain working

Thanks for the response. I got it working with individual forwarding/aliases, but not the whole domain. I'm not sure where this would be logged, but can also provide logs if that would help?

SQL records are as follows:
alias_domain    target_domain    created                                    modified                                    active
silience.co.za    stead.africa    2020-06-26 07:53:44.62134    2020-06-26 07:53:44.62134    1

4

Re: Trouble with getting alias domain working

So the alias domain is "silience.co.za", and real domain is "stead.africa", right?
Try these commands:

cd /etc/postfix/mysql/
postmap -v -q 'postmaster@stead.africa' mysql:./virtual_mailbox_domains.cf
postmap -v -q 'postmaster@silience.co.za' mysql:./virtual_mailbox_domains.cf

Check the SQL queries performed by Postfix, and compare the real SQL records.

----

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

buy me a cup of coffee