Hi, I've configured Proxmox Mail Gateway to filter de incomming messages from a remote server but I don't know how to do the same from the outgoing messages.
short answer:
* configure the server which sends the outgoing messages to use your PMG on port 26 (or whatever you configure as internal port) as smart host
* add the IP address of the server which sends the mails to the trusted networks