From: Karl O. P. <ko...@me...> - 2015-06-09 14:23:48
|
On Tue, 09 Jun 2015 09:51:53 -0400 Alex Regan <mys...@gm...> wrote: > Hi Karl, > > >> It seems when a message is sent to multiple recipients, multiple > >> X-Greylist headers are added. When there are dozens of these, it > >> appears some systems are rejecting it due to the header being too > >> large. > >> > >> How can I configure it to only include one copy of the X-Greylist > >> header? > >> > >> I'm using postfix. Is it possible to strip off all but one copy of > >> the header? > >> > >> X-Greylist: whitelisted by SQLgrey-1.8.0 > > > > Is this inbound, outbound, or relayed mail? > > This is from the headers on the destination system. It is received by > our mail relay, where the header is added, then sent to the > destination system where the user reads the mail. You shouldn't be relaying except from trusted systems, so your smtpd_relay_restrictions should include something like "permit_mynetworks", in addition to your check_policy_service that runs sqlgrey. Then relayed mail won't go through sqlgrey. (Use smtpd_recipient_restrictions on older versions of postfix.) Whitelisting via sqlgrey is the wong approach. But it looks to me like you've got something else wrong since I wouldn't think, without having really investigated, that any piece of mail should go through sqlgrey more than once. So you should only get one header no matter what. Karl <ko...@me...> Free Software: "You don't pay back, you pay forward." -- Robert A. Heinlein |