Score:0

postfix-How can I discard emails without message-id?

ly flag

Some users send smtp emails by postfix. But there emails have no header Message-ID. I want to reject them or discard them. I tried to modify header_checks, but the file filter headers line by line.It can't filter emails without header Message-ID. Is there any way to solve it?

anx avatar
fr flag
anx
Are you aware of the [`always_add_missing_headers` feature](https://serverfault.com/questions/1106397/)? You might be content with just editing malformed messages, and extracting the list of offending users from logs later on: The postfix-added header will look like `Message-ID: <[email protected]>` whereas compliant users will add Message-ID: <[email protected]>.
catFly avatar
ly flag
I have tried it.I used post fix docker image.I modified it to yes.But I can't get event logs any more.
catFly avatar
ly flag
Should i modify other params at the same time?
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.