schweikert / postgrey

Postfix Greylisting Policy-Daemon
https://postgrey.schweikert.ch/
GNU General Public License v2.0
162 stars 47 forks source link

Disable the header modification #31

Open ghost opened 8 years ago

ghost commented 8 years ago

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.

Jolly-Pirate commented 8 years ago

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.

ghost commented 8 years ago

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.

Jolly-Pirate commented 8 years ago

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!