[Mimedefang] stream_by_recipient beginner

Cliff Hayes chayes at afo.net
Tue Sep 29 16:20:47 EDT 2009


Yes but I didn't do anything yet.  I'm trying to figure out how to use
stream_by_recipient to allow users to build a custom whitelist.  All I did
was add the stream_by_recipient.  I added no extra code to cause the message
to be discarded.  Am I supposed to move the spam checking code from
filter_end into stream_by_recipient?  Am I supposed to move the code from
filter_begin into stream_by_recipient?  From the man doc example it looks
like stream_by_recipient simply skips all the stuff in filter_begin for
multiple-recipient messages. Well I don't see how that helps me but I was
hoping to see something in the logs other than "discarded" to give me
something to go on. The doc describes what stream_by_recipient is for and
where to put it but not how to use it.

Cliff

-----Original Message-----
From: mimedefang-bounces at lists.roaringpenguin.com
[mailto:mimedefang-bounces at lists.roaringpenguin.com]On Behalf Of Bernd
Petrovitsch
Sent: Tuesday, September 29, 2009 2:08 PM
To: mimedefang at lists.roaringpenguin.com
Subject: Re: [Mimedefang] stream_by_recipient beginner


On Die, 2009-09-29 at 13:33 -0500, Cliff Hayes wrote:
> Hello,
>
> I am attempting to use stream_by_recipient.
>
> I followed the instructions in the man page and added the following:
>
> sub filter_begin {
>  if (stream_by_recipient()) {
>   return;
>  }
> ...
>
> Now I get this in the maillog:
>
> Sep 29 10:35:35 sadev mimedefang.pl[11193]: n8TFZZYj011357: filter_begin
set
> TerminateAndDiscard flag.
> Sep 29 10:35:35 sadev mimedefang[11208]: n8TFZZYj011357: Discarding
because
> filter instructed us to
> Sep 29 10:35:35 sadev mimedefang[11208]: n8TFZZYj011357: Filter time is
> 139ms
> Sep 29 10:35:35 sadev sendmail[11357]: n8TFZZYj011357: Milter: data,
discard
> Sep 29 10:35:35 sadev sendmail[11357]: n8TFZZYj011357: discarded
>
> If there's more to it than that, is there a walkthrough somewhere on the
> Internet you could hook me up with to help me out?
No, that looks normal.
And that "discarded" mail should appear than multiple times each with
exactly one recipient.

Bernd
--
Firmix Software GmbH                   http://www.firmix.at/
mobil: +43 664 4416156                 fax: +43 1 7890849-55
          Embedded Linux Development and Services

_______________________________________________
NOTE: If there is a disclaimer or other legal boilerplate in the above
message, it is NULL AND VOID.  You may ignore it.

Visit http://www.mimedefang.org and http://www.roaringpenguin.com
MIMEDefang mailing list MIMEDefang at lists.roaringpenguin.com
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang




More information about the MIMEDefang mailing list