On Mon, Jul 24, 2017 at 02:27:16PM -0700, robg...@nospammail.net wrote: > I'm getting Postfix setup to deal with "bad headers". > > Looks like there's a bunch of ways to do it. > > Three I'm looking at are > > 1) Postfix's built in headers check > 2) A milter that'll check for & reject headers > 3) Amavisd's built in header handling
It all depends on things we don't know: 1) What's the actual end goal of this? 2) What's easier for you? Since you mention amavisd and milter (and also your email domain, haha) I suppose your interest is in spam control/abatement. If so, start with postscreen, first: http://www.postfix.org/POSTSCREEN_README.html http://rob0.nodns4.us/postscreen.html > I can actually get all three to work pretty much the way I want. > > Is there any reason to use one over the other if they're all > doing it PreQueue? > > Is it more efficient to use a separate milter than to use > Postfix's built in stuff? You're unlikely to come up with anything on your own which is a better email content filter than SpamAssassin. But there too, content filtering is less safe and accurate than pre-DATA checks. -- http://rob0.nodns4.us/ Offlist GMX mail is seen only if "/dev/rob0" is in the Subject: