postgrey icon indicating copy to clipboard operation
postgrey copied to clipboard

Disable the header modification

Open ghost opened this issue 9 years ago • 3 comments

Is it possible to disable the modification of the email headers?

I'd like the email to be left intact, without adding the X-Greylist line.

Thank you.

ghost avatar Feb 22 '16 21:02 ghost

Yes it's possible. Add this line to /etc/postfix/header_checks file: /^X-Greylist::/ IGNORE And in your main.cf add this: header_checks = regexp:/etc/postfix/header_checks

Restart postfix.

However I think it's a good idea to leave it as it is, for the sake of troubleshooting, if necessary.

Jolly-Pirate avatar Feb 23 '16 02:02 Jolly-Pirate

Nice and simple, thank you!

Although postgrey should have that as optional, in my humble opinion. As an alternative, there is the new postscreen feature of postfix.

ghost avatar Feb 23 '16 06:02 ghost

Glad it helped. And yes I agree that it should be an option to disable adding that header. Nevertheless, using header_checks grants more flexibility, as you can customize it for other headers filtering.

About postscreen, it's not really an alternative since it's a completely different concept from greylisting (postgrey). Personnaly, I use both on my server along with DNSBL's; this powerful combination virtually eliminated 99% of the spam!

Jolly-Pirate avatar Feb 23 '16 06:02 Jolly-Pirate