Plesk + PMG -> works, but not 100%

icehq

Member
Nov 24, 2021
9
0
6
38
Hi. I'm just getting to know Proxmox and I have all the services at home so far (including the cluster). Most things are clear to me from the documentation, but here I have a little problem.

My main email server is currently on the Ubuntu VM -> Plesk. There is this image, of course, in Proxmox. The mail works fine.
So yesterday for test i push mail into PMG. In /etc/postfix/main.cf relayhost I gave the pgm address in the local network - 192.168.3.144:26.

I have configured PMG. In Mail proxy I added realy to IP Plesk - 192.168.3.89, port 25, added relay domains, external ports 26, internal 25, added transports - domain, host: plesk ip, port: 25, smtp.

In PMG I changed the host name - to match the name that was in Plesk, of course using /etc/pmg/templates/main.cf.in .
And to the goal. Virtually everything works, e-mails can be sent and received. But not all of them. Below are some problems.

Code:
Dec 6 15:16:43 pmg postfix/smtpd[53924]: connect from smtpo93.poczta.onet.pl[213.180.149.146]
Dec 6 15:16:43 pmg postfix/smtpd[53924]: A85D5161125: client=smtpo93.poczta.onet.pl[213.180.149.146]
Dec 6 15:16:43 pmg postfix/cleanup[53961]: A85D5161125: message-id=<0eae48f6-df42-8a9e-c3cf-661060ff3a4c@onet.pl>
Dec 6 15:16:43 pmg postfix/qmgr[53799]: A85D5161125: from=<komunikaty@onet.pl>, size=2174, nrcpt=1 (queue active)
Dec 6 15:16:43 pmg postfix/smtpd[53924]: disconnect from smtpo93.poczta.onet.pl[213.180.149.146] ehlo=1 mail=1 rcpt=1 data=1 quit=1 commands=5
Dec 6 15:16:43 pmg pmg-smtp-filter[53898]: 16113161AE1B4BAFF7E: new mail message-id=<0eae48f6-df42-8a9e-c3cf-661060ff3a4c@onet.pl>#012
Dec 6 15:16:44 pmg pmg-smtp-filter[53898]: 16113161AE1B4BAFF7E: SA score=0/5 time=0.572 bayes=undefined autolearn=no autolearn_force=no hits=AWL(-0.001),DKIM_SIGNED(0.1),DKIM_VALID(-0.1),DKIM_VALID_AU(-0.1),DKIM_VALID_EF(-0.1),FREEMAIL_FROM(0.001),HTML_MESSAGE(0.001),HTML_MIME_NO_HTML_TAG(0.635),MIME_HTML_ONLY(0.1),SPF_HELO_NONE(0.001),SPF_PASS(-0.001),URIBL_BLOCKED(0.001)
Dec 6 15:16:44 pmg postfix/smtpd[53966]: connect from localhost.localdomain[127.0.0.1]
Dec 6 15:16:44 pmg postfix/smtpd[53966]: 4FC35161132: client=localhost.localdomain[127.0.0.1], orig_client=smtpo93.poczta.onet.pl[213.180.149.146]
Dec 6 15:16:44 pmg postfix/cleanup[53961]: 4FC35161132: message-id=<0eae48f6-df42-8a9e-c3cf-661060ff3a4c@onet.pl>
Dec 6 15:16:44 pmg postfix/qmgr[53799]: 4FC35161132: from=<komunikaty@onet.pl>, size=3464, nrcpt=1 (queue active)
Dec 6 15:16:44 pmg pmg-smtp-filter[53898]: 16113161AE1B4BAFF7E: accept mail to <ab@partnersecurity.pl> (4FC35161132) (rule: default-accept)
Dec 6 15:16:44 pmg postfix/smtpd[53966]: disconnect from localhost.localdomain[127.0.0.1] ehlo=1 xforward=1 mail=1 rcpt=1 data=1 commands=5
Dec 6 15:16:44 pmg pmg-smtp-filter[53898]: 16113161AE1B4BAFF7E: processing time: 0.638 seconds (0.572, 0.017, 0)
Dec 6 15:16:44 pmg postfix/lmtp[53962]: A85D5161125: to=<ab@partnersecurity.pl>, relay=127.0.0.1[127.0.0.1]:10024, delay=0.71, delays=0.04/0.01/0/0.66, dsn=2.5.0, status=sent (250 2.5.0 OK (16113161AE1B4BAFF7E))
Dec 6 15:16:44 pmg postfix/qmgr[53799]: A85D5161125: removed
Dec 6 15:16:44 pmg postfix/smtp[53967]: 4FC35161132: to=<ab@partnersecurity.pl>, relay=192.168.3.89[192.168.3.89]:25, delay=0.05, delays=0.03/0.01/0.01/0, dsn=5.4.6, status=bounced (mail for [192.168.3.89]:25 loops back to myself)
Dec 6 15:16:44 pmg postfix/qmgr[53799]: 4FC35161132: removed

and one more

Code:
Dec 6 14:49:54 pmg postfix/smtpd[53486]: connect from dedicated-aid170.rev.nazwa.pl[77.55.211.170]
Dec 6 14:49:54 pmg postfix/smtpd[53486]: 8663016112A: client=dedicated-aid170.rev.nazwa.pl[77.55.211.170]
Dec 6 14:49:54 pmg postfix/cleanup[53489]: 8663016112A: message-id=<d4c288602530c8d2887f010e7a06c433@bdo.freemask1.email>
Dec 6 14:49:54 pmg postfix/qmgr[53083]: 8663016112A: from=<zwroty@szkolimy.waw.pl>, size=27947, nrcpt=1 (queue active)
Dec 6 14:49:54 pmg postfix/smtpd[53486]: disconnect from dedicated-aid170.rev.nazwa.pl[77.55.211.170] ehlo=1 mail=1 rcpt=1 data=1 quit=1 commands=5
Dec 6 14:49:54 pmg pmg-smtp-filter[53455]: 16112B61AE1502928A5: new mail message-id=<d4c288602530c8d2887f010e7a06c433@bdo.freemask1.email>#012
Dec 6 14:49:58 pmg pmg-smtp-filter[53455]: 16112B61AE1502928A5: SA score=2/5 time=4.042 bayes=undefined autolearn=no autolearn_force=no hits=DKIM_SIGNED(0.1),DKIM_VALID(-0.1),DKIM_VALID_AU(-0.1),HTML_MESSAGE(0.001),SPF_HELO_NONE(0.001),SPF_PASS(-0.001),URIBL_BLOCKED(0.001),URIBL_DBL_SPAM(2.5)
Dec 6 14:49:58 pmg postfix/smtpd[53494]: connect from localhost.localdomain[127.0.0.1]
Dec 6 14:49:58 pmg postfix/smtpd[53494]: A945416112E: client=localhost.localdomain[127.0.0.1], orig_client=dedicated-aid170.rev.nazwa.pl[77.55.211.170]
Dec 6 14:49:58 pmg postfix/cleanup[53489]: A945416112E: message-id=<d4c288602530c8d2887f010e7a06c433@bdo.freemask1.email>
Dec 6 14:49:58 pmg postfix/qmgr[53083]: A945416112E: from=<zwroty@szkolimy.waw.pl>, size=28940, nrcpt=1 (queue active)
Dec 6 14:49:58 pmg pmg-smtp-filter[53455]: 16112B61AE1502928A5: accept mail to <biuro@kgtradca.pl> (A945416112E) (rule: default-accept)
Dec 6 14:49:58 pmg postfix/smtpd[53494]: disconnect from localhost.localdomain[127.0.0.1] ehlo=1 xforward=1 mail=1 rcpt=1 data=1 commands=5
Dec 6 14:49:58 pmg pmg-smtp-filter[53455]: 16112B61AE1502928A5: processing time: 4.127 seconds (4.042, 0.03, 0)
Dec 6 14:49:58 pmg postfix/lmtp[53490]: 8663016112A: to=<biuro@kgtradca.pl>, relay=127.0.0.1[127.0.0.1]:10024, delay=4.3, delays=0.1/0.01/0/4.1, dsn=2.5.0, status=sent (250 2.5.0 OK (16112B61AE1502928A5))
Dec 6 14:49:58 pmg postfix/qmgr[53083]: 8663016112A: removed
Dec 6 14:49:58 pmg postfix/smtp[53495]: A945416112E: to=<biuro@kgtradca.pl>, relay=192.168.3.89[192.168.3.89]:25, delay=0.05, delays=0.03/0.01/0.01/0, dsn=5.4.6, status=bounced (mail for [192.168.3.89]:25 loops back to myself)
Dec 6 14:49:58 pmg postfix/qmgr[53083]: A945416112E: removed

Where is the problem? Because the vast majority of emails work and pass, but some bounce
Best regards.
 
In Proxmox change nameserver in /etc/pmg/templates/main.cf.in line: myhostname = must be diffrent to hostname in Plesk.
 

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!