Virtual Aliases, Transports, & Mail Relaying

kransom

New Member
Aug 22, 2023
26
1
3
I have been receiving this error when testing.

Sep 12 11:16:43 pmg postfix/error[955]: 147123C14C4: to=<kransom@l.domain.org>, orig_to=<kransom@g.domain.org>, relay=none, delay=0.11, delays=0.07/0.01/0/0.03, dsn=5.1.1, status=bounced (User unknown in virtual alias table)

It was suggested in another forum not to edit /etc/postfix/main.cf directly so I made dir /etc/pmg/templates then cp /var/lib/pmg/templates/* then edited /etc/pmg/templates/main.cf.in. I added these lines.

virtual_alias_maps = hash:/etc/postfix/virtual
virtual_alias_domains = llc.domain.edu, l.domain.org, i1.domain.org, i2.domain.org, g.domain.org

should those domains above be listed under Configuration > Mail Proxy > Relay Domains?
I have transports for those domains above as well.
 
Update. I added the virtual_alias_domains under mydestination and the emails sent to those domains were able to be relayed to the transports that were configured. Not sure why this works, but it does.