Topic: Config outbound relay without having to mirror email accounts
### REQUIRED BASIC INFO OF YOUR IREDMAIL SERVER
- iRedMail version (check /etc/iredmail-release): 0.9.9
- Deployed with iRedMail Easy or the downloadable installer? downloadable installer
- Linux/BSD distribution name and version: Centos 7
- Store mail accounts in which backend (LDAP/MySQL/PGSQL): MySQL
- Web server (Apache or Nginx): Nginx
- Manage mail accounts with iRedAdmin-Pro? Yes
- [IMPORTANT] Related original log or error message is required if you're experiencing an issue.
Server Environment / Scenario:
mx-master.servers.com (10.1.1.1/32): Primary email server (running iredmail 0.9.9)
mx-relay.servers.com (10.1.1.2/32): Relay email server (running iredmail 0.9.9)
Email accounts for servers.com domain are managed on mx-master
I'm trying to configure mx-relay to relay email originally sent from mx-master destined for att.com
Here is the issue I am having:
The configurations outlined below successfully relay email destined to firstname.lastname@example.org only if the sending email account on servers.com exists on both mx-master and mx-relay. The relay does not work if I send an email to email@example.com from a servers.com email account that exists on mx-master but does not exist on mx-relay.
My primary question:
How can I configure mx-relay to successfully relay email destined to att.com without having to mirror all email accounts on mx-relay to be the same as on mx-master?
Thanks in advance.
The following are excerpts from the configurations I am currently using for mx-master and mx-relay:
On mx-relay, I've created the email account firstname.lastname@example.org
/etc/postfix/main.cf @ mx-relay:
mynetworks = 127.0.0.1 [::1], 10.1.1.1/32
/opt/iredapd/settings.py @ mx-relay
MYNETWORKS = ["10.1.1.1/32"]
I've configured postfix on mx-master to use smtp_sasl_passwd_maps and transport hash as follows:
/etc/postfix/main.cf @ mx-master:
# outbound relay configurations smtp_sasl_auth_enable = yes smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd ... transport_maps = hash:/etc/postfix/transport
/etc/postfix/sasl_passwd @ mx-master:
/etc/postfix/transport @ mx-master: