Policy filtering with postfix

Murray Taylor murraytaylor at bytecraftsystems.com
Sun May 30 18:41:59 PDT 2004


On Sun, 2004-05-30 at 13:55, Robert Storey wrote:
> I'm not an expert on Postfix or any other MTA, but it might be that your
> logs are displaying headers or attachments with high-order ASCII text
> used by non-Roman scripts (Chinese, Korean and Japanese would be good
> examples).
> 
> I have some files from Chinese Windows (Word docs and html) and when I
> list the filesnames at the console in FreeBSD, this is how they display:
> 
> 
> ????.doc
> ????.htm
> ????1?1.doc
> ??????.doc
> ??????? ????????.doc
> ?????????  ??????.doc
> ?????????? ?????.doc
> ??????????.htm
> ????????????.doc
> ??????????????.doc
> ??????????????? ?.doc
> ??????????????? ??.doc
> ???????????????.doc
> ?????????????????.doc
> ??????????????????????????????.doc
> ????????????????????????????????.doc
> 
> So maybe this is your problem.
> 
> best regards,
> Robert
> 
> On Sun, 30 May 2004 01:43:54 +0300
> Lefteris Tsintjelis <lefty at ene.asda.gr> wrote:
> 
> > Hi,
> > 
> > I am trying to setup policy but I keep on getting all these "????" in
> > my log files.
> > 
> > postfix/policy-spf[15755]: : testing: stripped
> > sender=owner at example.org, stripped rcpt=lefty at ene.asda.gr
> > postfix/policy-spf[15755]: : SPF ????:
> > smtp_comment=????????????????????????????????????????????????????????
> > ????????????????????????,
> > header_comment=??????????????????????????????????????????????????????
> > ?????????????????????????????????????????? postfix/policy-spf[15755]:
> > decided action=DUNNO 
> > 
> > Are all these "????" normal to show up in the maillog? Anyone has any
> > idea what they are? I suspect it maybe an IPv6 problem. Can anyone
> > please confirm it?
> > 
> > Thank you,
> > Lefteris

If you are using the header_check options in postfix the following rule

-----------------------------8<--------------------------------------
# This filter will block subjects that contain ISO specifications.
# If you use any languages other than English, 
#   you might need to comment this out.
/^Subject: .*\=\?ISO/                           DISCARD ISO header
-----------------------------8<--------------------------------------

will discard emails that use other languages.
This could be what you are looking for if you need to manage content
that is in non-english character sets. You could look for the iso header
then sort/discard accordingly
-- 
Murray Taylor
Special Projects Engineer
---------------------------------
Bytecraft Systems & Entertainment
P: +61 3 8710 2555
F: +61 3 8710 2599
D: +61 3 9238 4275
M: +61 417 319 256
E: murraytaylor at bytecraftsystems.com
or visit us on the web
http://www.bytecraftsystems.com
http://www.bytecraftentertainment.com



************************************************************************
This Email has been scanned for Viruses by MailMarshal.
************************************************************************


More information about the freebsd-questions mailing list