On 2/6/2014 2:27 AM, Ralf Hildebrandt via amavis-users wrote: > From a banned mail: > > X-Amavis-Alert: BANNED, message contains text/html,.asc,cid: > [email protected] > > Is it somehow possible to block .*\.com attachments, while allowing > the stuff blockend above through? >
I can't remember the last time I got an actual .com attachment, so I removed |com| from the $banned_filename_re big extension list, and added the line qr'^\.com$', # block .com file(1) type as a safety net. As an alternative, I suppose you could do something like (untested) [ qr'\S@\S+\.com$' => 0 ], just above the big list. Or some combination of the above ideas. First match wins. I expect the newer $banned_namepath_re can do this more elegantly, but I never bothered to figure out the syntax. -- Noel Jones
