MailScanner and Spamassasin and Recipient count
Rose, Bobby
brose at med.wayne.edu
Fri Apr 6 18:27:27 IST 2012
Nope, not what I'm talking about... trying to get a count of recipients for some SA rules which depends only on the To and CC header fields which is useless when the message has BCC recipients or the recipient in the header is a mail group. But I think I got it.
I added this to my sendmail mc to get the envelope recipient count into the headers
H?1?X-Envelope-Nrcpts: ${nrcpts}
Then this rule in SA to trip if greater than 1 to the max possible per transaction.
header __MULTIPLE_NRCPTS X-Envelope-Nrcpts =~ /^([2-9]\d*|[1]\d{1}|[1-9]\d{2})$/
-----Original Message-----
From: mailscanner-bounces at lists.mailscanner.info [mailto:mailscanner-bounces at lists.mailscanner.info] On Behalf Of Ken A
Sent: Friday, April 06, 2012 12:14 PM
To: mailscanner at lists.mailscanner.info
Subject: Re: MailScanner and Spamassasin and Recipient count
If you mean so that SA could apply per recipient rules, then you'll need to split recipients at the MTA.
http://wiki.mailscanner.info/doku.php?id=documentation:configuration:mta:sendmail:how_to:split_mails_per_recipient
Ken
On 4/6/2012 10:44 AM, Rose, Bobby wrote:
> Does anyone know how to have MailScanner pass the expanded recipients to spamassassin? I know you can count the number of recipients in the header but when it's to a group or BCC, it's only one recipient or so in the headers so you can't count. I'm assuming MailScanner knows the recipients since it logs it to mailwatch. Just wondering if there is a way of passing that info to SA so it could count envelope recipients instead of headers.
>
> Thanks
> -=B
>
> ________________________________
>
> This document may include proprietary and confidential information of Wayne State University Physician Group and may only be read by those person(s) to whom it is addressed. If you have received this e-mail message in error, please notify us immediately. This document may not be reproduced, copied, distributed, published, modified or furnished to third parties, without prior written consent of Wayne State University Physician Group. Thank you.
>
>
>
>
--
Ken Anderson
Pacific Internet - http://www.pacific.net Latest Pacific.Net Status - http://twitter.com/pacnetstatus
--
MailScanner mailing list
mailscanner at lists.mailscanner.info
http://lists.mailscanner.info/mailman/listinfo/mailscanner
Before posting, read http://wiki.mailscanner.info/posting
Support MailScanner development - buy the book off the website!
________________________________
This document may include proprietary and confidential information of Wayne State University Physician Group and may only be read by those person(s) to whom it is addressed. If you have received this e-mail message in error, please notify us immediately. This document may not be reproduced, copied, distributed, published, modified or furnished to third parties, without prior written consent of Wayne State University Physician Group. Thank you.
More information about the MailScanner
mailing list