Topic: Closed ticket not answered
Hi Zhang,
You closed a Pro thread that was not finished:
https://forum.iredmail.org/topic16990-a … dress.html
You stated:
Add your line ABOVE those 2 lines.
First match wins.
I replied:
But I am confused by the "first match wins" theory. If the problem IP address matched my line (and not the included sendgrid.net one), why didn't Postfix keep processing and then get to my line when it was after the Sendgrid line? So with my line above the Sendgrid line, how would a Sendgrid email be accepted?
Let me try again.
The two (three with the comment) lines in /etc/postfix/helo_access.pcre look like this:
# bypass some HELOs which contains IP address
/^o\d{1,3}-\d{1,3}-\d{1,3}-\d{1,3}\.unifiedlayer\.com$/ DUNNO
/^o\d{1,3}-\d{1,3}-\d{1,3}-\d{1,3}\.outbound-mail\.sendgrid\.net$/ DUNNO
You replied as above and I moved the "unifiedlayer" line above the "sendgrid" line and it worked as expected. However, if 99 to 99.99999% of emails are not from Sendgrid, then they do not match that line, so then the next line (which *was* the "unifiedlayer" line) should be compared. When the "unifiedlayer" line was the second line, it would have been the "first match". Now with the "sendgrid" line second, I wonder if any emails from Sendgrid will not match and they will be bounced.
Why wasn't the "unifiedlayer" layer line being compared when it was the second line? A link as an answer will be fine.
Thanks.
Craig
----
Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.