On 2016-04-18 16:45, BP20 wrote:
> Does anyone have an idea for how to decode base64 encoded
> emails (Content-Transfer-Encoding: base64) in order to filter the
> content?
> http://www.postfix.org/FILTER_README.html#simple_filter
> <http://www.postfix.org/FILTER_README.html#simple_filter>  

As the content filter can be any file you can execute, several in fact.

You can take a look at base64-de/encoding in bash (will most likely
involve perl or python), or write the filter in a real language to begin
with.

All your program needs is to take a mail from stdin, do things,
re-inject the mail if appropriate, and set a proper status code.


-- 
Mit freundlichen Grüßen, / Best Regards,
Sven Schwedas
Systemadministrator
TAO Beratungs- und Management GmbH | Lendplatz 45 | A - 8020 Graz
Mail/XMPP: sven.schwe...@tao.at | +43 (0)680 301 7167
http://software.tao.at

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to