Email Forwarding


New Member
Sep 16, 2019
Is there a way to configure the gateway so that it receives email for a domain but then forwards it over to a different domain per user?

For example, ->

I believe i know how to relay a whole domain, I was just wondering if Proxmox allowed for individual users to be forwarded to different email addresses.

Thanks in advance!

This is not directly in the scope of PMG (thus not included in the GUI or REST-API).
Depending on the concrete use case I think that 'virtual_alias_domains' and 'virtual_alias_maps' of the postfix-configuration could be what you're looking for - see the well written postfix howto:

you can adapt PMG's postfix config through the templating system:

Just so it's noted: since it's not in the scope of PMG this setup is nothing that gets tested by us.

I hope this helps!
  • Like
Reactions: rvanscherpe
if I copy the template of /etc/pmg/templates(had to create the template directory) and then add something like this:

virtual_alias_maps = hash:/etc/postfix/virtual

What do I need to do in order for PMG to recognize those changes?




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!