problem in exchange with proxmox

shahramie

New Member
May 31, 2021
2
0
1
43
Hi everyone
in my case I have two exchange server, and created DAG,
I installed Proxmox as mail gateway with two interface network, on for connect exchange to proxmox, and the other hand for connect proxmox to internet,
questions:
first: how can i change port number in exchange to 26 for internal connection on proxmox? (if needed)
second: I can currently receive emails from outside (Internet), but I have trouble sending them from inside (exchange clients) to outside. with this error:

pmg postfix/smtpd[2859]: connect from ((EXCHANGE LOCAL NAME))[EXCHANGE LOCAL IP]
pmg postfix/smtpd[2859]: NOQUEUE: reject: RCPT from ((EXCHANGE LOCAL NAME))[EXCHANGE LOCAL IP]: 554 5.7.1 <INTERNET MAIL ADDRESS>: Relay access denied; from=<INTERNAL MAIL ADDRESS> to=<INTERNET MAIL ADDRESS> proto=ESMTP helo=<MAIL FQDN>
pmg postfix/smtpd[2859]: disconnect from ((EXCHANGE LOCAL NAME))[EXCHANGE LOCAL IP] ehlo=2 starttls=1 mail=1 rcpt=0/1 quit=1 commands=5/6

please help me.
thanks.
 
PMG usually does the multiplexing/distinction if a mail is from 'inside' or 'outside' based on tcp ports (GUI->Configuration->Mail Proxy->Ports).
If you want to use different IPs for that you need to modify the postfix configuration template (master.cf.in) and change the smtpd listener on the internal port to instead listen on the internal IP and port 25.

https://pmg.proxmox.com/pmg-docs/pmg-admin-guide.html#pmgconfig_template_engine

I hope this helps!
 
Please advise me, how should the "exchange server" be designed for that port 2525 is being the internal port of the proxmox?

there is my ip plan:

Exchange Servers:
EXCH-1: 172.16.63.85
EXCH-2: 172.16.63.86
EXCHANGE-DAG: 172.16.63.90

Proxmox:
inside: 172.16.63.95 (cannot set gateway)
Outside: 172.16.63.96 (With Gateway)
External SMTP Port: 25
Internal SMTP Port: 2525