Email Forwarding

rvanscherpe

New Member
Sep 16, 2019
3
0
1
44
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,

user@abc.com -> user@123.com

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!

Ron.
 
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: http://www.postfix.org/VIRTUAL_README.html

you can adapt PMG's postfix config through the templating system: https://pmg.proxmox.com/pmg-docs/pmg-admin-guide.html#_service_configuration_templates

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 main.cf.in /etc/pmg/templates(had to create the template directory) and then add something like this:

virtual_alias_domains =corp.com
virtual_alias_maps = hash:/etc/postfix/virtual

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

Thanks!

Ron
 

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!