Allow attachment with blocked extension for some senders

Gregory Sloop gregs at
Tue Apr 5 16:26:06 CEST 2016

Yes, that's right. For banned-files, sender white-lists are not an option. [I have a script that does handle sender white-lists, and I'm glad to discuss off-list if someone is interested.] 

In our case, white-listing senders is incredibly helpful - but Amavis, I believe, has made a choice not to support sender white-lists for banned files. [We blanket ban nearly all attachments, and then allow a few senders through to certain/specific recipients.]

There are a few work-arounds - but they're cludgy IMO, and won't work with pre-accept in Postfix - which is how we use amavis - so there's no even-cludgy way for us.


DE> Someone correct me if I'm wrong, but I don't believe there is a
DE> way to add exceptions for senders when it comes to attachments.

>> -----Original Message-----
>> From: amavis-users [mailto:amavis-users-
>> at] On Behalf Of Jonny
>> Oschätzky
>> Sent: Tuesday, April 05, 2016 7:42 AM
>> To: amavis-users at
>> Subject: Allow attachment with blocked extension for some senders

>> Hi,

>> I've added .xls to the list of blocked extensions.

>> Now I need an exception for some specific senders (sender address or
>> mailserver ip - both is possible). How can I realize that?

>> Thanks :-)
>> Jonny

Gregory Sloop, Principal: Sloop Network & Computer Consulting
Voice: 503.251.0452 x82
EMail: gregs at
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the amavis-users mailing list