Stopping unwanted character sets
Hugo van der Kooij
hvdkooij at vanderkooij.org
Fri Aug 3 19:38:08 IST 2007
Hi,
There was some discussion a while ago about stopping messages based on
country of orrigin.
But I see more use in stopping unwanted charactersets.
For example:
------=_NextPart_000_0000_7D761D51.CFA8A7DF
Content-Type: text/plain;
charset="windows-1251"
Content-Transfer-Encoding: quoted-printable
I have no need for messages in this character set nor anyone else.
Is there a way to filter on these?
I can find them if they mess with the subject line in postfix with:
/^Subject: =\?KOI8-R\?/ REJECT Russian encoding not allowed here.
/^Subject: .* =\?windows-1251\?/ REJECT Crappy propriatary encoding not allowed here.
/^Subject: .*\[windows-1251\]/ REJECT Crappy propriatary encoding not allowed here.
/^Subject: =\?windows-1252\?/ REJECT Crappy propriatary encoding not allowed here.
But what if it is proper MIME message and the character set is used only
in some mime parts?
Is there a SA ruleset for this? (Or even a postfix trick to do this.)
Hugo.
--
hvdkooij at vanderkooij.org http://hugo.vanderkooij.org/
This message is using 100% recycled electrons.
Some men see computers as they are and say "Windows"
I use computers with Linux and say "Why Windows?"
(Thanks JFK, for the insight.)
More information about the MailScanner
mailing list