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

----

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

2

Re: Trouble with getting alias domain working

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

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.