Mail Proxy Transports - Wildcard Support

AsankaG

Member
Jul 17, 2018
23
2
23
38
Hi Everyone,

As the title says, I'm trying to figure out if PMG supports wildcards in transports for relay domain. I have many domains with same name but different TLDs so it would nice to put a single entry like domain.* instead of many.

Kind Regards,
Asanka
 
As the title says, I'm trying to figure out if PMG supports wildcards in transports for relay domain. I have many domains with same name but different TLDs so it would nice to put a single entry like domain.* instead of many.
Does not seem possible according to the relevant parts of the postfix documentation:
https://www.postfix.org/transport.5.html
(TABLE SEARCH ORDER section)

depending on your setup you can however:
* set a default relay and not configure an explicit transport entry for them (if all/most of your domains go to the same downstream mailserver)
* use the REST-API to enter the transport entries:
https://pmg.proxmox.com/pmg-docs/api-viewer/index.html#/config/transport (the POST call)
* currently - also edit /etc/pmg/transport directly and afterwards call postmap on it.


I hope this helps!