Configuring Promox Mail Gateway

jose valdez

New Member
Oct 16, 2018
18
0
1
53
Hi good day. I am trying to configure the proxmox mail gateway that I recently installed, but I have not managed to work even observing the same information in the Traking Center.

What I am trying to do is that all the emails that come from my zimbra mail server are sent to the Proxmox Mail Gateway and the latter sends it to the endian firewall.

In proxmox mail gateway I made the following configurations:

Mail Proxy Configuration:

Default Relay: Zimbra Mail Server IP
Port: 25
SmartHost: Endian firewall IP

Relay Domain: Add the name of the mail domain in this case ferrominera.gob.ve

External port SMTP: 25
Internal SMTP port: 26

This is all I have configured in PMG.

At the Zimbra level, configure it to send mails from the domain ferrominera.gob.ve to the IP address of the PMG through port 25.

Please could you help me if something is wrongly configured or I need to do in the PMG.
 
Hi jose,

On Zimbra server in MTA settings:

Relay MTA for external delivery: <PMG IP> and port 26 (Internal SMTP port, previous configured on PMG).

Regards.
 
Good morning, Mr. Danube.

Thank you very much for your reply. I have made the recommended configuration to make at the level of my Zimbra mail server, but I still do not see traffic between the Zimbra Mail server and PMG. Enclosed I am sending you screenshots of the configurations made at the MTA level of Zimbra and PMG. In case of any observation, you can indicate me in this way.

Thank you very much, I thank you in advance for your help.
 

Attachments

  • Configuration Puerto PMG.png
    Configuration Puerto PMG.png
    146.1 KB · Views: 315
  • Configuration Proxy PMG.png
    Configuration Proxy PMG.png
    150.3 KB · Views: 303
  • Configuration RED.png
    Configuration RED.png
    163.9 KB · Views: 289
  • Configuration Zimbra.png
    Configuration Zimbra.png
    164.5 KB · Views: 289
Hello Jose,

I think the settings on PMG and Zimbra is ok.

The ip 170.100.230.250 of smarthost is allowing relay from the PMG?

Regards!
 
The ip 170.100.230.250 performs the firewall service and I do not observe mail traffic from PMG to the firewall, I also see mail traffic in the PMG. I do not know if this is because I do not have a subscription with Proxmox, although it is a free tool. In case you are misplacing a configuration, I would appreciate your help.

Greetings.
 
Jose, i dont think that this is a subscription proxmox problem.

Can you test telnet on port 25 (smtp) of firewall to pmg and vice versa? Post the output.

And, the smarthost is an device with service mail capacity. I dont know if your firewall have this feature.

Regards.
 
Hello Mr. Danubio, receive a greeting.
Thank you very much for your answers, I have applied them all to achieve success, because I do not give up on fulfilling the goal of installing the PMG well.
Attached to the email, I am sending you a captured screen to please indicate that I must place in the parameter Hostname FQDN, these are the only values about which I have doubts about what I put in the installation.
Thanks for your help. Greetings.
 

Attachments

  • upload_2018-12-12_14-50-46.png
    upload_2018-12-12_14-50-46.png
    383 KB · Views: 183
  • capture.pdf
    115.9 KB · Views: 130
Hello, Jose.

No need to thank, this forum is to help each other my friend. Its a pleasure help you.

About the installation step that you questioned, the FQDN is a DNS internet routed name. Typically is the MX name of your domain.

Best regards.
 
Excuse my ignorance of the subject, but when you refer to the MX domain name what I have to write is the name of the domain of the company that used to send the emails? the domain we are working on is ferrominera.gob.ve, that the value that I have to place in the fqdn?
 
Which version should I install 5.0 or 5.1?

From what I observe I have to change the name of the FQDN, since I confused this parameter with the name of the Host, the correct name is mail.ferrominera.gob.ve. To change this, do I have to reinstall the software? Or is there any location in the software where you can change it via console with a command?
 
Hello Jose.

The FQDN is the hostname plus your domain name. For example, the domain name where i work is serra.es.gov.br. The MX of domain is mail.serra.es.gov.br, this is the fqdn setting on our PMG.

Do you have two MX register on your domain?

ferrominera.gob.ve MX preference = 10, mail exchanger = fmosmtp.ferrominera.gob.ve
ferrominera.gob.ve MX preference = 20, mail exchanger = hierro.ferrominera.gob.ve

On Debian, the hostname is on /etc/hostname file and the fqdn on /etc/hosts file. This files you can to edit. You dont need install again the software.

About PMG version i recomend to install the last stable version, i think that is the 5.1.
 
Hello, Mr. Danube, greetings.
At the end, configure the fqdn with the name of fmosmtp.ferrominera.gob.ve because the other is our backup mx.
Now, I was observing all the information that you have supplied to me, including the PMG configuration manual, which mentions that PMG receives the emails through port 26, but when I check the ports that are listening in my operating system I observe the associated port 26 to the tsftp service, as shown in the image that I send you. How can I modify the service to place smtp in this port?
regards.

upload_2018-12-19_16-57-19.png

upload_2018-12-19_16-56-36.png
 
hope you all good .
i am facing same issue in my zimbra mail and proxmox ... right now i have fresh install of proxmox and zimbra. :

Zimbra:
i have added a MTA which is my proxmox server " proxmox.cubexsweatherly.com with 26" .

i need help in proxmox what i have to fill in their setting :

Proxmox detail :


default realy : ?
SMTP port is : 25
Disable MX lookup : No
Smart host : ?


Relying domain :
i add my domain name that is onegig.com.pk

kindly guide me in this matter , looking forward your good response.
 
hi

now i am facing this issue .:

Dec 20 15:00:15 zmail amavis[42505]: (42505-03) Checking: kaUfKx_c9tJk ORIGINATING_POST/MYNETS [127.0.0.1] <test1@onegig.com.pk> -> <fayazlinux@gmail.com>
Dec 20 15:00:17 zmail postfix/amavisd/smtpd[21788]: connect from localhost[127.0.0.1]
Dec 20 15:00:17 zmail postfix/amavisd/smtpd[21788]: 13BD342B1AFC: client=localhost[127.0.0.1]
Dec 20 15:00:17 zmail postfix/cleanup[21780]: 13BD342B1AFC: message-id=<875680664.49.1545300015358.JavaMail.zimbra@onegig.com.pk>
Dec 20 15:00:17 zmail postfix/amavisd/smtpd[21788]: disconnect from localhost[127.0.0.1]
Dec 20 15:00:17 zmail postfix/qmgr[50922]: 13BD342B1AFC: from=<test1@onegig.com.pk>, size=1973, nrcpt=1 (queue active)
Dec 20 15:00:17 zmail amavis[42505]: (42505-03) kaUfKx_c9tJk FWD from <test1@onegig.com.pk> -> <fayazlinux@gmail.com>, BODY=7BIT 250 2.0.0 from MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued as 13BD342B1AFC
Dec 20 15:00:17 zmail amavis[42505]: (42505-03) Passed CLEAN {RelayedOutbound}, ORIGINATING_POST/MYNETS LOCAL [127.0.0.1]:43592 [202.63.219.58] <test1@onegig.com.pk> -> <fayazlinux@gmail.com>, Queue-ID: B13EB42B1A5C, Message-ID: <875680664.49.1545300015358.JavaMail.zimbra@onegig.com.pk>, mail_id: kaUfKx_c9tJk, Hits: -1.909, size: 1570, queued_as: 13BD342B1AFC, 1288 ms
Dec 20 15:00:17 zmail postfix/smtp[21781]: B13EB42B1A5C: to=<fayazlinux@gmail.com>, relay=127.0.0.1[127.0.0.1]:10032, delay=1.4, delays=0.09/0.01/0/1.3, dsn=2.0.0, status=sent (250 2.0.0 from MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued as 13BD342B1AFC)
Dec 20 15:00:17 zmail postfix/qmgr[50922]: B13EB42B1A5C: removed
Dec 20 15:00:19 zmail postfix/smtp[21789]: 13BD342B1AFC: to=<fayazlinux@gmail.com>, relay=proxmox.cubexsweatherly.com[202.63.215.31]:26, delay=2, delays=0.02/0.01/1.8/0.19, dsn=4.7.1, status=deferred (host proxmox.cubexsweatherly.com[202.63.215.31] said: 454 4.7.1 <fayazlinux@gmail.com>: Relay access denied (in reply to RCPT TO command))
 
Hello, Mr. Danube, greetings.
At the end, configure the fqdn with the name of fmosmtp.ferrominera.gob.ve because the other is our backup mx.
Now, I was observing all the information that you have supplied to me, including the PMG configuration manual, which mentions that PMG receives the emails through port 26, but when I check the ports that are listening in my operating system I observe the associated port 26 to the tsftp service, as shown in the image that I send you. How can I modify the service to place smtp in this port?
regards.

View attachment 9056

View attachment 9055

Hello Jose.

On PMG, the SMTP port (this port is used for PMG to communicate with Zimbra server), here i'm using the 25. And on Zimbra server in MTA settings i'm using the 26 port for external delivery.

You can to edit the port on PMG if necessary. For this, click on SMTP Port and after on Edit button.

Regards.
 
hope you all good .
i am facing same issue in my zimbra mail and proxmox ... right now i have fresh install of proxmox and zimbra. :

Zimbra:
i have added a MTA which is my proxmox server " proxmox.cubexsweatherly.com with 26" .

i need help in proxmox what i have to fill in their setting :

Proxmox detail :


default realy : ?
SMTP port is : 25
Disable MX lookup : No
Smart host : ?


Relying domain :
i add my domain name that is onegig.com.pk

kindly guide me in this matter , looking forward your good response.

Hello fayaz.

Answer your questions:

default realy : (name or ip address of your zimbra server)
SMTP port is : 25
Disable MX lookup : No (ok)
Smart host : (if you wish all outgoing mails are delivery to an specific device) Here i don't use this. The Zimbra server forward all outgoing mails to PMG to delivery through 26 port.

Regards.
 
hi

now i am facing this issue .:

Dec 20 15:00:15 zmail amavis[42505]: (42505-03) Checking: kaUfKx_c9tJk ORIGINATING_POST/MYNETS [127.0.0.1] <test1@onegig.com.pk> -> <fayazlinux@gmail.com>
Dec 20 15:00:17 zmail postfix/amavisd/smtpd[21788]: connect from localhost[127.0.0.1]
Dec 20 15:00:17 zmail postfix/amavisd/smtpd[21788]: 13BD342B1AFC: client=localhost[127.0.0.1]
Dec 20 15:00:17 zmail postfix/cleanup[21780]: 13BD342B1AFC: message-id=<875680664.49.1545300015358.JavaMail.zimbra@onegig.com.pk>
Dec 20 15:00:17 zmail postfix/amavisd/smtpd[21788]: disconnect from localhost[127.0.0.1]
Dec 20 15:00:17 zmail postfix/qmgr[50922]: 13BD342B1AFC: from=<test1@onegig.com.pk>, size=1973, nrcpt=1 (queue active)
Dec 20 15:00:17 zmail amavis[42505]: (42505-03) kaUfKx_c9tJk FWD from <test1@onegig.com.pk> -> <fayazlinux@gmail.com>, BODY=7BIT 250 2.0.0 from MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued as 13BD342B1AFC
Dec 20 15:00:17 zmail amavis[42505]: (42505-03) Passed CLEAN {RelayedOutbound}, ORIGINATING_POST/MYNETS LOCAL [127.0.0.1]:43592 [202.63.219.58] <test1@onegig.com.pk> -> <fayazlinux@gmail.com>, Queue-ID: B13EB42B1A5C, Message-ID: <875680664.49.1545300015358.JavaMail.zimbra@onegig.com.pk>, mail_id: kaUfKx_c9tJk, Hits: -1.909, size: 1570, queued_as: 13BD342B1AFC, 1288 ms
Dec 20 15:00:17 zmail postfix/smtp[21781]: B13EB42B1A5C: to=<fayazlinux@gmail.com>, relay=127.0.0.1[127.0.0.1]:10032, delay=1.4, delays=0.09/0.01/0/1.3, dsn=2.0.0, status=sent (250 2.0.0 from MTA(smtp:[127.0.0.1]:10025): 250 2.0.0 Ok: queued as 13BD342B1AFC)
Dec 20 15:00:17 zmail postfix/qmgr[50922]: B13EB42B1A5C: removed
Dec 20 15:00:19 zmail postfix/smtp[21789]: 13BD342B1AFC: to=<fayazlinux@gmail.com>, relay=proxmox.cubexsweatherly.com[202.63.215.31]:26, delay=2, delays=0.02/0.01/1.8/0.19, dsn=4.7.1, status=deferred (host proxmox.cubexsweatherly.com[202.63.215.31] said: 454 4.7.1 <fayazlinux@gmail.com>: Relay access denied (in reply to RCPT TO command))

Hello fayaz

Does your Zimbra server allow relay to the PMG ip?

Is necessary that the IP of PMG is setting on mynetworks or trusted networks of Zimbra server.

Regards.
 
Hi.
In my case in Zimbra at the level of MTC retransmission parameters place port 26. However, when I check port 26 on the server debian where PMG is running, this port is associated with the RSFTP service, I even try to make a connection via telnet from zimbra to PMG through port 26, and I can not connect, and I think that this is why PMG does not receive mail traffic from Zimbra. Please can you help me.
 
Hi.
In my case in Zimbra at the level of MTC retransmission parameters place port 26. However, when I check port 26 on the server debian where PMG is running, this port is associated with the RSFTP service, I even try to make a connection via telnet from zimbra to PMG through port 26, and I can not connect, and I think that this is why PMG does not receive mail traffic from Zimbra. Please can you help me.

Hi Jose.

Did you tried to change the internal smtp port on PMG? See the picture below.

upload_2018-12-27_11-34-14.png

Did you installed some sftp client on PMG machine?
 
Hello Mr. Danúbio, a pleasure to say hello and wish you had a happy Christmas.
Thanks for your reply. What I actually did was to change port 26 to a new one that opened at the level of Debian's services by mapping it to the SMTP service, and opened them with the IPTABLE command. Likewise I also place that new port in Zimbra's MTC, and even then I do not have mail traffic in PMG from Zimbra. I'm just receiving the PMG statistics mails through port 25. I do not know what else to check unless there is some other element to configure in Zimbra so that you can see PMG with confidence. I send you the attachments so you can see the latest settings I've made.
Best regards.
 

Attachments

  • PMG.pdf
    353.1 KB · Views: 112

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!