[Mimedefang] Excluding people
James Smith
sysadmin at aims.gov.au
Wed Oct 8 19:01:01 EDT 2003
Hi Cem,
> -----Original Message-----
> From: Cem GÜLER [mailto:cem at megatek.com.tr]
>
> Is there a way to exclude people from filtering? I mean a mail with an
> attachment.exe file is filtered by mimedefang for
> no-boss at address.com and is
> not filtered to boss at address.com ?
Check out the mimedefang-filter man page for further details on
filter_recipient and the action ACCEPT_AND_NO_MORE_FILTERING, the following
is an untested example:
sub filter_recipient {
my ($recip, $sender, $ip, $hostname, $first, $helo, $rcpt_mailer,
$rcpt_host, $rcpt_addr) = @_;
if ($recip =~ /^<?boss\@address\.com>?$/i) {
return ('ACCEPT_AND_NO_MORE_FILTERING', "ok");
}
return ('CONTINUE', "ok");
}
Regards
James
><> ><> ><> ><> ><> ~~~~~ <>< <>< <>< <>< <><
Systems Administrator
Australian Insitute of Marine Science
Townsville, FNQ, Australia
Phone +61 7 4753 4400 Fax +61 7 4772 5852
Email: sysadmin at aims.gov.au
><> ><> ><> ><> ><> ~~~~~ <>< <>< <>< <>< <><
More information about the MIMEDefang
mailing list