how to configure pmg so that all outgoing mail is not delivered to the default gateway (internet) otherwise it is delivered to another external smtp
relayhost=[mysandblast.computer.com]:25
Unless I'm misunderstanding the request - this is configured in GUI->Configuration->Mail Proxy->Relaying->Smart HostThis standard feature should be incorporated into the UI.
this is documented - quite visibly in the reference documentation:OK. I never heard the term smarthost,
Isn't this only for incoming emails? If proxy multiple domains, one need incoming relay rules and outoging relay rules including outgoying relay rules to smart host.Unless I'm misunderstanding the request - this is configured in GUI->Configuration->Mail Proxy->Relaying->Smart Host
sender-specific/sender-dependent relaying is not implemented (and it's not planned in the near future)
I hope this helps!
see: https://pmg.proxmox.com/pmg-docs/pmg-admin-guide.html#pmgconfig_template_engineI know I can edit the main.cf in postfix but that config file gets over written every time there is a change using the WebGUI. I guess I could get this part working and don't make any changes in the WebGUI that pretains to SMTP.