[Mimedefang] HOw do I?
David F. Skoll
dfs at roaringpenguin.com
Wed Nov 21 07:23:43 EST 2001
On Wed, 21 Nov 2001, Anthony Giggins wrote:
> I wish to pass any emails to a certain domain without attachments being
> filtered I tried
> if (@Recipients =~ /domain.com/) {action_accept() }
> else {
> Attachment filters.....
> }
> but this doesn't seem to work, Any Ideas?
Well, @Recipients is an array, so you have to go through them all:
foreach $recip (@Recipients) {
if ($recip =~ /domain\.com>?$/) {
return action_accept();
}
}
# Attachment filters...
However, this is dangerous, because if a single piece of e-mail is sent
to two recipients (one at domain.com and another at foo.net), then foo.net's
mail is not scanned.
I have a similar problem and I'm working on a way to split message recipients
into classes which get scanned differently. I think the only way to solve
this is to re-mail the message as several different messages (one per
scanning class) and return action_discard() from the main (initial) filter.
Stay tuned.
--
David.
More information about the MIMEDefang
mailing list