Email Forwarding

rvanscherpe

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