Virtual Aliases, Transports, & Mail Relaying

kransom

New Member
Aug 22, 2023
24
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.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!