Add Relay Access to Proxmox Mail Gateway

VUSAL M. DADASHOV

New Member
Mar 19, 2018
19
3
3
41
Hi everyone
I would like to ask you to help me with Proxmox Mail Gateway Configuration. It is rather Postfix config than Proxmox itself.

So I need to tell my Mail Gateway that a website from external IP address (let's say it has an IP 4.4.4.4) be able to send mails to gmail and any other external domains using my Exchange 2010. IU know how to do it on Exchange, but since I use Proxmox as Spam Filter I need to do ot is on my proxmox machine.

Code:
vusald@WhoAmI:~$ telnet mail.mydomain.az 25
Trying 94.20.63.54...
Connected to mail.mydomain.az.
Escape character is '^]'.
220 mail.taxes.gov.az ESMTP Proxmox
ehlo mydomain.az
250-mail.mydomain.az
250-PIPELINING
250-SIZE 40485760
250-VRFY
250-ETRN
250-ENHANCEDSTATUSCODES
250-8BITMIME
250 SMTPUTF8
mail from: bot@mydomain.az
250 2.1.0 Ok
rcpt to: vusaldadashev@gmail.com
454 4.7.1 <vusaldadashev@gmail.com>: Relay access denied
quit
221 2.0.0 Bye
Connection closed by foreign host.
 
Yes I did connect... Internal SMTP port is 26... I created SMTP connector in Exchange 2010 Hub Transport and specified port 26

I understand that I must write down that external IP address somwhere in Postfix :) But cant find where Relaying options....

I have already wrote that external IP in mynetworks, but this allow me to send anonymously only to internal domain not external

Code:
mynetworks = 127.0.0.0/8 [::1]/128 10.22.10.0/24 4.4.4.4
 
Just queuried in Exchange. You know.. I didnt change Exchange Port... I created a new SMTP connector smtpAuth with Port 26

Code:
[PS] C:\Windows\system32>Get-SendConnector smtpAuth | fl Port
Creating a new session for implicit remoting of "Get-SendConnector" command...


Port : 26

Telling MS exchange to use not the default SMTP port is quite hard and sometimes not possible at all. - To be honest mail system works like a charm/// No problem detected since I deployed proxmox here, but I just needed to find settings for relaying ....

Just wanted allow anyone from 4.4.4.4 to use my Proxmox (with Exchange behind) as open relay server
 
..
Just wanted allow anyone from 4.4.4.4 to use my Proxmox (with Exchange behind) as open relay server

Realying in only allowed if you connect to the 'internal' SMTP port - so just add you IP there.
 
OK.. I created a rule on the firewall. Mapped port 2525 to Exchanges' port 25 and created Receive Connector for anonymous sending ...This is not what I want but it also works for me...