[SOLVED] proxy-reject: END-OF-MESSAGE: 554 5.7.1 Rejected for policy reasons

itNGO

Active Member
Jun 12, 2020
456
95
33
44
Germany
it-ngo.com
Hi,
ok Proxmox has rejected this mail. So far so good.
But for "WHAT" reason exactly? Where in the log can this be seen? Tracking-Log does not show more that this:

May 10 10:04:25 RZ-PMG postfix/smtpd[507603]: proxy-reject: END-OF-MESSAGE: 554 5.7.1 Rejected for policy reasons (604F3627A1C82843A0);
 
Last edited:

mira

Proxmox Staff Member
Staff member
Aug 1, 2018
1,689
178
68
What's in the syslog during that time? All mails are logged in the syslog (/var/log/syslog) and the mail log (/var/log/mail.log).
 
  • Like
Reactions: itNGO

itNGO

Active Member
Jun 12, 2020
456
95
33
44
Germany
it-ngo.com
What's in the syslog during that time? All mails are logged in the syslog (/var/log/syslog) and the mail log (/var/log/mail.log).
Thx got it....
RZ-PMG pmg-smtp-filter[507574]: 604F3627A1C82843A0: block mail to <xxx> (rule: Block Spam (Level 10))

But this was not shown in Tracking-Center..... only part of this information was somehow "combined" to another Mail at the same time in Tracking Center.... weird.....
 

mira

Proxmox Staff Member
Staff member
Aug 1, 2018
1,689
178
68
Thx got it....
RZ-PMG pmg-smtp-filter[507574]: 604F3627A1C82843A0: block mail to <xxx> (rule: Block Spam (Level 10))

But this was not shown in Tracking-Center..... only part of this information was somehow "combined" to another Mail at the same time in Tracking Center.... weird.....
Thanks for letting us know.
Could you provide the complete mail log for this mail? With the complete log for that mail we should be able to reproduce it here and hopefully fix it, if that's possible.
 

itNGO

Active Member
Jun 12, 2020
456
95
33
44
Germany
it-ngo.com
I am sorry, but this log was already pruned due to GOBD.
Will take Screen if it happens again....
 

mira

Proxmox Staff Member
Staff member
Aug 1, 2018
1,689
178
68
I am sorry, but this log was already pruned due to GOBD.
Will take Screen if it happens again....
Thanks!
If possible, provide it as a text file.
 
  • Like
Reactions: itNGO

erikf

Member
Jan 29, 2020
2
0
6
50
please help me.
A lot of emails (almost all of them) are rejected by PMG with following error message :
========
May 20 06:12:09 pmg postfix/smtpd[15595]: connect from unknown[192.168.1.252]
May 20 06:12:15 pmg postfix/smtpd[15595]: NOQUEUE: reject: RCPT from unknown[192.168.1.252]: 554 5.7.1 <recipient@domain.sk>: Recipient address rejected: Rejected by SPF: 192.168.1.252 is not a designated mailserver for prvs%3D132b30eef%3Dsender%40domain.sk (context mfrom, on pmg.ns.lan); from=<prvs=132b30eef=sender@domain.sk> to=<recipient@domain.sk> proto=ESMTP helo=<scmgateway.domain.sk>
May 20 06:12:21 pmg postfix/smtpd[15595]: disconnect from unknown[192.168.1.252] ehlo=1 mail=1 rcpt=0/1 rset=1 quit=1 commands=4/
========
IP 192.168.1.252 is router in local LAN mikrotik.

Thank you very much in advance
 

Stoiko Ivanov

Proxmox Staff Member
Staff member
May 2, 2018
6,862
1,039
164
lease help me.
A lot of emails (almost all of them) are rejected by PMG with following error message :
========
May 20 06:12:09 pmg postfix/smtpd[15595]: connect from unknown[192.168.1.252]
May 20 06:12:15 pmg postfix/smtpd[15595]: NOQUEUE: reject: RCPT from unknown[192.168.1.252]: 554 5.7.1 <recipient@domain.sk>: Recipient address rejected: Rejected by SPF: 192.168.1.252 is not a designated mailserver for prvs%3D132b30eef%3Dsender%40domain.sk (context mfrom, on pmg.ns.lan);
this is not really related to the original post - so please open a new thread if necessary.

As a quick tip - it seems that you have enabled SPF checking in the mail-proxy and are sending internal mails for outside to the external port of PMG:
* configure 192.168.1.252 to relay mails to the internal port of PMG

check out the reference documentation:
https://pmg.proxmox.com/pmg-docs/pmg-admin-guide.html#_filtering_outgoing_emails
 

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 your own in 60 seconds.

Buy now!