From: Alex R. <mys...@gm...> - 2015-06-10 17:18:57
|
Hi Karl, >> I'm not doubting what you're saying, but here's a thread that seems >> to indicate it's the expected behavior: > > Looks like what I'm saying is wrong. The policy > daemon is called for each destination address. > See the postfix SMTPD_POLICY_README. > >> Here's another one from Lionel discussing: >> >> http://sourceforge.net/p/sqlgrey/mailman/sqlgrey-users/thread/42F...@bo.../ >> >> Could that be the solution here as well? > > "That" being rcpt_awl? Dunno. > > Looks like as of postfix 2.1 there is an "instance" > variable passed to the policy daemon that could be used > to keep from adding multiple header lines. It's not > clear how this would work and it's not implemented > in sqlgrey. > > Something for somebody's todo list. Do you think sqlgrey is still the best option for doing greylisting with postfix, or are is there something else we should be looking it? I originally thought policyd was an alternative, but it looks to be more of a front-end or management system that just uses apps like sqlgrey. >> I'm going to have to use postfix to strip them because I believe it's >> causing some mail to be rejected because the headers are too large. > > That sounds like a sensible approach. > > Since the policy check is smtpd you ought to be able > to use header_checks = pcre:/etc/postfix/header_checks > with file content of: > > /^X-Greylist: whitelisted by SQLgrey/ IGNORE > > I'd bet there's an even more clever way to > "collapse" all the identical entries but > haven't investigated. Yes, that's exactly how I'm currently doing it. Thanks again, Alex |