Gary V wrote:
> Alan wrote:
> 
> > I'm not seeing any penpals bonuses and I'm at a loss for why.
> 
> > I've believe I've got amavisd-new properly logging to PostgreSQL:
> 
> > My amavisd.conf contains:
> 
> > $penpals_bonus_score = 4;  # (no effect without a @storage_sql_dsn database)
> > $penpals_threshold_high = $sa_kill_level_deflt; # don't waste time on hi 
> > spam
> 
> > So what am I missing? Do I need to turn something else on 
> > in amavisd.conf to have this work? How could I better debug?
> 
> > Thanks in advance,
> 
> >  Alan
> 
> Only mail that scores above $penpals_threshold_low (default is 1) will
> get a boost. To debug, temporarily set $penpals_threshold_low = undef;

Thanks. I've figured out the problem. amavisd is looking at the
SMTP recipient address rather than the To: header when
trying to match up sender and recipient.

This is a problem in my setup, because I send email out as
[EMAIL PROTECTED] (using /etc/postfix/sender_canonical and my mail
client's settings), but incoming email to that address goes to another
mail server first, which then sends a copy to [EMAIL PROTECTED]
(my personal server), and while that copy arrives with To:
[EMAIL PROTECTED], the SMTP recipient address is [EMAIL PROTECTED]
This prevents an sid/rid match in the penpals code.

I've stopped using sender_canonical this way, and left it to my
mail client to put in the right From: header, and now all is well.
Outgoing mail is recorded by amavisd as coming from
[EMAIL PROTECTED], while the recipient sees [EMAIL PROTECTED] 
in the From: header (but [EMAIL PROTECTED] in the Return-Path,
which is fine, as that's where bounces are best handled anyway).
Mail back to [EMAIL PROTECTED] is forwarded here and recorded by
amavisd as being for [EMAIL PROTECTED], so it all matches.

Thanks again for all the help!


-- 
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
           Alan Schwartz               | Disclaimer: I represent no one
          <[EMAIL PROTECTED]>             |
         Associate Professor           |Life is what happens to you while
   Department of Medical Education     | you're busy making other plans
  University of Illinois at Chicago    |          - J. Lennon
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
AMaViS-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/

Reply via email to