[Mimedefang] filter_recipient and @recipients array

Cliff Hayes chayes at afo.net
Tue Sep 22 20:48:10 EDT 2009


Hello all,

Before I started using filter_recipient to reject or accept mail based on
email address, I had the full @Recipients array available to me in
filter_end.  I was using that to log email data to a database.  Now that I'm
using filter_recipient, if a recipient is rejected, that recipient is
removed from the @Recipients array.  So, I tried accessing the array in
filter_begin and it's gone from there too.  How can I record the full list
of recipients while using filter_recipient?

Also, I noticed since I started using filter_recipient, sendmail no longer
makes log entries (listed below) in maillog when mimedefang adds headers for
spam.  Mimedefang still does it's job, and there are a couple of log
entries, but not any of the lines shown below from a server which is not
using filter_recipient:

Sep 22 19:23:18 mailserver01 sendmail[10765]: n8N0N7pK010765: Milter change
(add): header: X-Spam-Score: 20.09: (********************) required: (2)
Sep 22 19:23:18 mailserver01 sendmail[10765]: n8N0N7pK010765: Milter add:
header: X-Spam-Tests:
BODY_ENHANCEMENT,BODY_ENHANCEMENT2,DCC_CHECK,DIGEST_MULTIPLE,FH_HELO_EQ_D_D_
D_D,HELO_DYNAMIC_IPADDR2,HTML_MESSAGE,MIME_HTML_ONLY,PYZOR_CHECK,RAZOR2_CF_R
ANGE_51_100,RAZOR2_CF_RANGE_E4_51_100,RAZOR2_CHECK,RCVD_IN_PBL,RCVD_IN_XBL,R
DNS_DYNAMIC,SPF_FAIL
Sep 22 19:23:18 mailserver01 sendmail[10765]: n8N0N7pK010765: Milter change:
header Subject: from  {device_head} to *** SPAM *** {device_head}
Sep 22 19:23:18 mailserver01 sendmail[10765]: n8N0N7pK010765: Milter change:
header Content-Type: from  text/html;\n  charset=iso-8859-2 to
multipart/mixed; boundary="----------=_1253665396-8917-401"
Sep 22 19:23:18 mailserver01 sendmail[10765]: n8N0N7pK010765: Milter change:
header MIME-Version: from  1.0 to 1.0
Sep 22 19:23:18 mailserver01 sendmail[10765]: n8N0N7pK010765: Milter delete:
header Content-Transfer-Encoding: 7bit
Sep 22 19:23:18 mailserver01 sendmail[10765]: n8N0N7pK010765: Milter
message: body replaced
Sep 22 19:23:18 mailserver01 sendmail[10765]: n8N0N7pK010765: Milter add:
header: X-Scanned-By: MIMEDefang 2.67 on 72.215.140.71

How can I get my full recipients list and log entries back?

Thanks in advance,

Cliff




More information about the MIMEDefang mailing list