<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[How to Forward all outbound mail port 25 using Outbound Nat to a local IP address on port 26 to Proxmox Mail Gateway]]></title><description><![CDATA[<p dir="auto">I am running Proxmox Mail Gateway, it is an email filtering product.</p>
<p dir="auto">The inbound Nat rule is straight forward, just forward any traffic from port 25 to the local ip of your proxmox mail gateway. (Most people know how to do an inbound Nat rule so I wont cover that here.)</p>
<p dir="auto">Previously I had configured All local mail servers to use the proxmox mail gateway as a relay host. This outbound Nat rule makes that no longer necessary.</p>
<p dir="auto">The below is how to make sure outbound mail also goes through the proxmox mail gateway. Take any traffic port 25 that did NOT originate from the proxmox mail gateway, and forward it to the proxmox mail gateway.</p>
<p dir="auto">PMG is a firewall Alias</p>
<p dir="auto">Navigate to: Firewall &gt; Aliases &gt; IP, type Hosts.</p>
<p dir="auto"><img src="https://i.imgur.com/TZrxWXW.png" alt="Outbound Nat Proxmox Mail Gateway" class=" img-fluid img-markdown" /></p>
<p dir="auto">Navigate to: Firewall &gt; NAT &gt; Outbound, select Manual Outbound NAT rule generation.</p>
<p dir="auto"><img src="https://i.imgur.com/Qqm1Z3V.png" alt="Outbound Nat Proxmox Mail Gateway" class=" img-fluid img-markdown" /></p>
<p dir="auto">Incase the pictures go down, heres the outbound nat rules in text format:</p>
<pre><code>WAN  PMG   * 	* 	25 (SMTP)   WAN address  *   PMG to WAN
WAN  PMG   25 (SMTP) 	* 	*   WAN address  *   PMG to WAN
WAN  any   * 	* 	25 (SMTP)   PMG 	 26  All port 25 to PMG:26
WAN  any   25 (SMTP) 	* 	*   PMG 	 26  All port 25 to PMG:26
</code></pre>
]]></description><link>https://forum.netgate.com/topic/161434/how-to-forward-all-outbound-mail-port-25-using-outbound-nat-to-a-local-ip-address-on-port-26-to-proxmox-mail-gateway</link><generator>RSS for Node</generator><lastBuildDate>Tue, 21 Apr 2026 23:13:30 GMT</lastBuildDate><atom:link href="https://forum.netgate.com/topic/161434.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 25 Feb 2021 20:18:52 GMT</pubDate><ttl>60</ttl></channel></rss>