Email WhiteListing Attachments with Amavis and Microsoft Files

@lbutlr kremels at kreme.com
Tue Nov 13 00:43:51 CET 2018


On 9 Nov 2018, at 10:56, Johnny Time <lifeme92 at gmail.com> wrote:
> [ qr'^application/doc|docx|ppt|pdf|xls|vsd$'i => 0 ],

This syntax is broken an will allow application/document binary/pptx and virusload.exe/pptanythinggoeshere

You either need to put a $ at the end of all of those

[ qr'^application/(doc$|docx$|ppt$|pdf$|xls$|vsd$)'i => 0 ],

NB the addition of parens.

Or better, what Hoyer suggested (which also adds the critical parens you are missing).



-- 
Of course, there were various groups seeking his overthrow, and this was
right and proper and the sign of a vigorous and healthy society. No-one
could call him unreasonable about the matter. Why, hadn't he founded
most of them himself? And what was so beautiful was the way they spent
nearly all their time bickering with one another. Human nature, the
Patrician always said, was a marvelous thing. Once you understood where
its levers were. --Guards! Guards!



More information about the amavis-users mailing list