CustomConfig.pm question

Julian Field mailscanner at ecs.soton.ac.uk
Tue Oct 14 22:24:27 IST 2003


At 22:01 14/10/2003, you wrote:
>I am messing around with the CustomConfig.pm and looking at ways to set up
>virus scanning on a per domain basis (among other settings). I am looking
>at pulling this information out of a database.
>
>My question is in regards to the following scenario:
>
>* Say I have two domains, domain1.com and domain2.com.
>* Say I would like to have Virus Scanning = yes for domain1.com and no for
>domain2.com.
>* Suppose I receive an e-mail to user at domain1.com AND user at domain2.com
>
>Since custom functions appear to only run once for each e-mail message
>(even if it has multiple recipients), it appears like the function will
>have to return either a 1 or a 0 (yes or no) for the entire message.  How
>can one message be scanned for one domain and not for another given this
>scenario?

MailScanner itself does not split up messages, it has to have 1 answer for
the entire message. In this case the right answer is easy: you scan it if
*any* of the recipients wants it scanned.

However, the solution to the general problem is to search the mailing list
archive for "queue groups" assuming you are using sendmail. This can be
used to split up a message into a separate message for each recipient.

--
Julian Field
www.MailScanner.info
Professional Support Services at www.MailScanner.biz
MailScanner thanks transtec Computers for their support
PGP footprint: EE81 D763 3DB0 0BFD E1DC  7222 11F6 5947 1415 B654



More information about the MailScanner mailing list