Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 31 May 2004 11:41:53 +1000
From:      Murray Taylor <murraytaylor@bytecraftsystems.com>
To:        Robert Storey <y2kbug@ms25.hinet.net>
Cc:        freebsdquestions <freebsd-questions@freebsd.org>
Subject:   Re: Policy filtering with postfix
Message-ID:  <1085967713.88093.68.camel@wstaylorm.dand06.au.bytecraft.au.com>
In-Reply-To: <20040530115539.16c895cc.y2kbug@ms25.hinet.net>
References:  <40B9122A.9C031AB8@ene.asda.gr> <20040530115539.16c895cc.y2kbug@ms25.hinet.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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@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@example.org, stripped rcpt=lefty@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@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.
************************************************************************



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1085967713.88093.68.camel>