[Mimedefang] filter_bad_filename based on recipient
Dianne Skoll
dfs at roaringpenguin.com
Mon Sep 19 08:57:50 EDT 2016
On Mon, 19 Sep 2016 14:48:16 +0200
Marcus Schopen <lists at localguru.de> wrote:
> is it possible to define $bad_exts in sub filter_bad_filename based on
> domain name? I'd like to filter ".docm"-attachments, but not globally
> for all domains on that server, just for my private domain. Seems to
> be that $recipient is not known in sub filter_bad_filename?
The sample filter is just a sample... all the information is available
for you in various global variables and/or parameters passed to the
various filter functions. However, you do need to be fairly comfortable
programming in Perl to make the sort of adjustment you seek; you can start
by reading the mimedefang-filter man page.
Regards,
Dianne.
More information about the MIMEDefang
mailing list