Perhaps found the solution.

Poking my nose around in various documentation... I messed with a few things
and got it to work.  I also fixed (inadvertently) something else that was on
my wish list.

I made two changes to main.cf:

transport_destination_recipient_limit=1
spamassassin_transport_destination_recipient_limit=1

I then made a change to the flags on my filter line in master.cf:

spamassassin unix - n n - - pipe
  flags=DRq user=spamassassin   .......

I added the 'D' to the flags.  This puts the delivered-to in the header...
which in fact made it easier for my parsing script to get what I needed.

So I guess either both played a part in it, or just one or the other.

Either way, It's working how I want it to.  I hope this might solve someone
else's dilemma.

Any additional comments would be helpful to me.  Thanks.


-Alan Fullmer
[EMAIL PROTECTED]
www.xnote.com 



-----Original Message-----
From: Divák Ádám [mailto:[EMAIL PROTECTED] 
Sent: Sunday, October 29, 2006 6:29 PM
To: Alan Fullmer
Subject: Re: Postfix setting? or Spam Assassin?

well, it is currently the problem for both & none - and as far as i
know, you won't find any better solution than breaking up the messages
(one for each recipient) and sending it separately to SA. anyway, if you may
find a better
solution, please let me know about it.

> I have a question.  I'm not sure If it's a setting in Postfix or if
> something needs to be set with my wrapper script.

> Currently I have Postfix doing virtual lookups by mysql tables.  From that
> point, I have this:
> Master.cf
> --------------------------
> smtp      inet  n       -       -       -       -       smtpd -o
> content_filter=spamassassin:dummy


> spamassassin unix - n n - - pipe
>   flags=Rq user=spamassassin argv=/data/scripts/spamfilter.sh -f ${sender}
> -- ${recipient}

> -----------------end

> Everything works except on minor detail, but I say major detail.

> If I send a message to "[EMAIL PROTECTED]" it goes through the spamassassin
> filters and assigns its value appropriately.

> However, if I sent a message that has a BCC or CC, or even a comma
separated
> on the TO: line, it only works with the first value.

> Example:  To: [EMAIL PROTECTED], [EMAIL PROTECTED] it looks up joe's SA value
> and assigns it to "essentially both" by not running each recipient
through.

> This is a problem for me because cindy may have a lower score than joe.

> Basically one could evade a blacklist entry or a low score entry by cc'ing
> an additional user. 

> Hope this makes sense.  I really am frustrated.  I am not sure any other
> topics I could google with to find help in this matter.

> Thanks in advance.




Reply via email to