I'm using a PHP milter to reject languages by their charset.
For example, look for the charset "ks_c_5601-1987" under headers: Subject: Content-Type: Thread-Topic: etc... An Base64-encoded subject would look like: Subject: =?ks_c_5601-1987?B?...base64string... or a mime content-type would look like: Content-Type: text/plain; charset="ks_c_5601-1987" All I need, is an array of white-listed charsets and a blacklist equivalent. Based on those, I reject or accept emails. When done properly, you can have the client (Roundcube in my case) show a list of charsets/languages to the user and allow them to blacklist the ones they don't want to see. On Wed, 19 Apr 2023 02:54:22 +0800 tom--- via Postfix-users <postfix-users@postfix.org> wrote: > How to reject messages by languages? > For example, only English, Germany and Chinese messages will be > accepted. All others should be rejected. > > Thanks. > _______________________________________________ > Postfix-users mailing list -- postfix-users@postfix.org > To unsubscribe send an email to postfix-users-le...@postfix.org _______________________________________________ Postfix-users mailing list -- postfix-users@postfix.org To unsubscribe send an email to postfix-users-le...@postfix.org