You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@spamassassin.apache.org by Alan Fullmer <li...@xnote.com> on 2006/10/30 02:15:12 UTC

Postfix setting? or Spam Assassin?

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 "joe@domain.com" 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: joe@domain.com, cindy@domain.com 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.





Re: Postfix setting? or Spam Assassin?

Posted by Clifton Royston <cl...@lava.net>.
On Sun, Oct 29, 2006 at 06:15:12PM -0700, Alan Fullmer wrote:
> 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

  It's generally far preferable to use an smtp filter such as
amavisd-new.

  It can work correctly though less efficiently with a pipe, but your
spamfilter.sh wrapper script would need to be considerably more complex
to work correctly; in particular, it needs to pass all of the
recipients to the reinjection step.

  -- Clifton

  P.S. Please don't crosspost to lists with disjoint memberships; I'm
trimming the postfix list as I'm not currently subscribed.

-- 
    Clifton Royston  --  cliftonr@iandicomputing.com / cliftonr@lava.net
       President  - I and I Computing * http://www.iandicomputing.com/
 Custom programming, network design, systems and network consulting services