Configure this scenario

lparamo

New Member
Jan 18, 2024
2
0
1
Hi, i'm new on proxmox Mail Gateway, i want to implement the PMG on my infraestructure and i wanna know how to do it, i want to send the email from my email server to the PMG and the the PMG should send the mail to other antispam which is gonna be the responsable to send the email to internet, the question is, it this scenerio posible?
and if you can give me some sugestions about it
 
sure, look in the GUI: Configuration / Mail Proxy / Relaying, disable MX lookup = yes, Smarthost = hostname+port of your external gateway.

if you need to authenticate to your external smarthost, things get a little bit more complicated. You will need to install libsasl2-module and setup the smarthost manually in the related templates of postfix configuration.
This tutorial still works, but changes to /etc/main.cf need to be made in the template /etc/pmg/templates/main.cf.in
https://www.caretech.io/2018/10/06/how-to-use-proxmox-mail-gateway-with-an-authenticated-smarthost/
 
Last edited: