incoming mails rejected

erikf

Member
Jan 29, 2020
4
2
8
54
please help me.
A lot of incoming 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
Please ASAP
 
I'd guess that the issue is that your router configuration is problematic:
* the mails look as if they come from the mikrotik IP (192.168.1.252) and not from the public internet

I assume that the mikrotik is the device which has the public IP and is doing the NAT for the network and PMG

you need to configure the Mikrotik to forward connections on port 25 to PMG without NATing the source (only the destination)

I don't have experience with Mikrotik - so cannot help you how to achieve that - but look for Port-forwarding ... DMZ, exposed host...

I hope this helps!