Re: [Mimedefang] stream_by_recipient beginner

2009-09-29 Thread Bernd Petrovitsch
On Die, 2009-09-29 at 16:09 -0500, Cliff Hayes wrote: 
> How does using stream_by_recipient compare with using filter_recipient?

If there is more than 1 recipient, stream_by_recipient() plain simply
resubmits that mail for each recipient separately (via `sendmail` - IIRC
you can find that function in mimedefang,pl). And (usually) these mails
go through the whole mail checking process again (as if the original
sender sent them that way).

And after that, the original mail is discarded (where all these log
messages come from).

[ Fullquote deleted ]

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@lists.roaringpenguin.com
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang


Re: [Mimedefang] stream_by_recipient beginner

2009-09-29 Thread Kris Deugau

Cliff Hayes wrote:

How does using stream_by_recipient compare with using filter_recipient?


They aren't really related.  filter_recipient allows you to tell 
sendmail about valid recipients by methods it can't use natively (or 
which might be painful to set up);  stream_by_recipient allows you to do 
content-inspection processing on a per-recipient basis once you've 
accepted one or more recipients and the message itself.


-kgd
___
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@lists.roaringpenguin.com
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang


Re: [Mimedefang] stream_by_recipient beginner

2009-09-29 Thread Cliff Hayes
How does using stream_by_recipient compare with using filter_recipient?

-Original Message-
From: mimedefang-boun...@lists.roaringpenguin.com
[mailto:mimedefang-boun...@lists.roaringpenguin.com]on Behalf Of David
F. Skoll
Sent: Tuesday, September 29, 2009 3:27 PM
To: mimedefang@lists.roaringpenguin.com
Subject: Re: [Mimedefang] stream_by_recipient beginner


Cliff Hayes wrote:

> The doc describes what stream_by_recipient is for and
> where to put it but not how to use it.

There's more info in the docs for stream_by_domain.  That info may
clarify how stream_by_recipient works.

Regards,

David.
___
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@lists.roaringpenguin.com
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang
___
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@lists.roaringpenguin.com
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang


Re: [Mimedefang] stream_by_recipient beginner

2009-09-29 Thread David F. Skoll
Cliff Hayes wrote:

> The doc describes what stream_by_recipient is for and
> where to put it but not how to use it.

There's more info in the docs for stream_by_domain.  That info may
clarify how stream_by_recipient works.

Regards,

David.
___
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@lists.roaringpenguin.com
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang


Re: [Mimedefang] stream_by_recipient beginner

2009-09-29 Thread Cliff Hayes
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-boun...@lists.roaringpenguin.com
[mailto:mimedefang-boun...@lists.roaringpenguin.com]on Behalf Of Bernd
Petrovitsch
Sent: Tuesday, September 29, 2009 2:08 PM
To: mimedefang@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@lists.roaringpenguin.com
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang

___
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@lists.roaringpenguin.com
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang


Re: [Mimedefang] stream_by_recipient beginner

2009-09-29 Thread Bernd Petrovitsch
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@lists.roaringpenguin.com
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang


Re: [Mimedefang] easy stream_by_recipient question

2009-09-29 Thread Michiel Brandenburg

Jason Bertoch wrote:

When stream_by_recipient is in use, is the message copied for each
recipient before or after all the spam testing is done?


I believe this is done prior to spam testing as each user may have different
preferences.


This is indeed the reason for sending the each recipient of the email a 
seperate copy of the email and thus, like David pointed out it should be 
done before spam scanning the email.


One user might find it spam and the other might love Russian images.  A 
smarter approach would be, if at all possible in your situation, to 
"look" at the recipient's spam rules and send one message only per 
unique combination of these rules.  If you use per user bayes scanning 
this of course will not work.  I don't use this approach as there is 
only one bayes table all scanners work off.


What can be done is stream like this.
1. generate a hash for each user's spam rules (in the order the spam 
scanner looks at)

2. sort all destinations based on the hash
3. send only one email per unique hash (might have more than one recipient.

As most of our uses don't bother with making their own spam rules this 
saves us some scanning work.


PS: my android sends html mail, just found out this list does not like 
it this message or something like it might appear twice, as the response 
from the Listbot told me my original message was changed.

--
Michiel Brandenburg
___
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@lists.roaringpenguin.com
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang


[Mimedefang] stream_by_recipient beginner

2009-09-29 Thread Cliff Hayes
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?

Thanks in advance,

Cliff

___
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@lists.roaringpenguin.com
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang


Re: [Mimedefang] easy stream_by_recipient question

2009-09-29 Thread David F. Skoll
Cliff Hayes wrote:

> When stream_by_recipient is in use, is the message copied for each recipient
> before or after all the spam testing is done?

Before.

Regards,

David.
___
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@lists.roaringpenguin.com
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang


Re: [Mimedefang] easy stream_by_recipient question

2009-09-29 Thread Jason Bertoch
> -Original Message-
> From: mimedefang-boun...@lists.roaringpenguin.com [mailto:mimedefang-
> boun...@lists.roaringpenguin.com] On Behalf Of Cliff Hayes
> Sent: Tuesday, September 29, 2009 11:00 AM
> To: mimedefang@lists.roaringpenguin.com
> Subject: [Mimedefang] easy stream_by_recipient question
> 
> 
> When stream_by_recipient is in use, is the message copied for each
> recipient before or after all the spam testing is done?
> 

I believe this is done prior to spam testing as each user may have different
preferences.


Jason A. Bertoch
Network Administrator
ja...@electronet.net
Electronet Broadband Communications
3411 Capital Medical Blvd.
Tallahassee, FL 32308
(V) 850.222.0229 (F) 850.222.8771


___
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@lists.roaringpenguin.com
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang


[Mimedefang] easy stream_by_recipient question

2009-09-29 Thread Cliff Hayes
Hello,

I searched for an answer first in docs and forums.

When stream_by_recipient is in use, is the message copied for each recipient
before or after all the spam testing is done?  If before, then I can
understand the increased load as the message has to be tested over and over
again for each recipient and I may not want to go there.  If after, that
would be ideal.

Thanks in advance,

Cliff

___
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@lists.roaringpenguin.com
http://lists.roaringpenguin.com/mailman/listinfo/mimedefang