Les Stott writes:
> Hello All,
>
> I have courier.0.35 running on redhat 7.1. Maildrop does the delivery for
> all mail locally and globally.
>
> I am having issues with maildrop filtering and delivery.
>
> I employ the following global mail filter file (maildroprc) to screen for
> certain attachments and then if found send them to the system administrator
> instead of the intended recipient.
>
> if(/From:.*sysadm/ || /Delivered-To:.*sysadm/)
> {
> }
> else
> if(/.*name=.*\.exe\"/:b \
> || /.*name=.*\.vbs\"/:b \
> || /.*name=.*\.scr\"/:b \
> || /.*name=.*\.pif\"/:b \
> || /.*name=.*\.bat\"/:b \
> || /.*name=.*\.com\"/:b)
> {
> to "[EMAIL PROTECTED]"
> }
>
> I also employ a sizelimit file which is set to 10mb.
>
> During periods of high mail sending I see messages build up in the mail
> queue, Sometimes up to 50 messages. maildrop struggles with some messages
> especially if there is a 15 or 16 person recipient list. The attachments on
> the files are not that big (776k) but I believe maildrop is scanning the
> message for every recipient so in effect scanning the same message 15 or 16
> times. However it eventually times out and defers the message putting it
> down the queue. Other messages then go through fine. Then it tries to resend
> the deferred message again and gets into a loop. Some of the messages have
> been in the queue for days.
> It also gets compounded by other emails that have attachments of 2mb to 5mb
> trying to be sent at the same time.
>
> I understand however that I am scanning the message body and that will
> impact on cpu time and performance. However if I just scan the header I miss
> some files. For example if someone sends an email with an attachment AS AN
> attachment and it is a .exe or .scr it will never get picked up by searching
> just the header.
If you want a virus scanner, then get a virus scanner. Use the right tool
for the right job.
You could use a bandaid solution of collapsing all your regexps into a
simple:
if(/name=.*\.(exe|vbs|scr|pif|bat|com)\"/:b)
{
...
}
This pattern will match much faster.
--
Sam
_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users