February 17, 2023, 9:00pm
OS type and version
CentOS Linux 7.9.2009
Feb 16 16:20:44 www postfix/smtpd: connect from mail-os0jpn01on2110.outbound.protection.outlook.com[22.214.171.124]
Feb 16 16:20:56 www postgrey: action=pass, reason=client whitelist, client_name=mail-os0jpn01on2110.outbound.protection.outlook.com, client_address=126.96.36.199, email@example.com, firstname.lastname@example.org
Feb 16 16:20:56 www postfix/smtpd: 34CBFB0C: client=mail-os0jpn01on2110.outbound.protection.outlook.com[188.8.131.52]
Feb 16 16:20:56 www postfix/cleanup: 34CBFB0C: message-id=<OS3P301MB04569CF1F14CA3A97553DA43CFA09@OS3P301MB0456.JPNP301.PROD.OUTLOOK.COM>
Feb 16 16:20:56 www postfix/cleanup: 34CBFB0C: discard: header x-microsoft-antispam-message-info:? tiZJ4lXXpg1d2m1uFoxpF0VSZjcguS04AQ53z4KHnnlOURWytzMKkX+dKecsuxPtBsJmHDo48bsjXIBiKrfYXXyHTvPXoYLMh6RXAygARI4AueXj/IRlPNbzajj/1qgchQA1VD3In2EHKg2h8S+hhEc9JpI7fblcuxyJ from mail-os0jpn01on2110.outbound.protection.outlook.com[184.108.40.206]; from=<email@example.com> to=<firstname.lastname@example.org> proto=ESMTP helo=<JPN01-OS0-obe.outbound.protection.outlook.com>
Feb 16 16:20:57 www postfix/smtpd: disconnect from mail-os0jpn01on2110.outbound.protection.outlook.com[220.127.116.11]
Have you checked the spam box?
February 17, 2023, 10:31pm
It never made it to procmail, as far as I can tell, so it can’t be in spam.
Are you using RBLs in Postfix? Any other rules that would reject mail?
February 17, 2023, 10:33pm
I’ve never seen
cleanup discard a message. I just checked our maillog for the past week and see nothing like that.
I’m not sure how
cleanup would even do that, it doesn’t seem like that’s it’s job.
Postfix manual - cleanup(8)
Maybe it just means it discarded a bogus/weird header?
February 17, 2023, 11:27pm
I am using RBLs but I am also using header_checks which I suspected originally and is probably the cause. I will have to go through it carefully again to see what the offending string is.
February 17, 2023, 11:40pm
Yes, definitely header checks. It even says so (
header ...) I just didn’t understand how to read it since I’ve never seen
cleanup discard a message…I didn’t even know that’s where it happened with header/body checks, as I usually don’t use any filtering in Postfix. I do all my spam processing, except postgrey, outside of Postfix so it can always be a weight.
February 18, 2023, 2:08am
Is there a log or way to log the header checks to know what the match is?
February 18, 2023, 3:11am
Your guess is as good as mine. I’ve never used that feature of postfix. I guess since you do use it, your guess might even be better than mine!
April 19, 2023, 3:12am
This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.