Nate,

> In this setup, there are thousands of domains being scanned, and
> amavis as well as postfix utilize a mysql db to determine where
> to forward the email after it's scanned via a postfix transport
> table.  With this setup, I typically leave @mynetworks and
> @local_domains_maps undefined and the setup works great.

This does not allow amavisd to distinguish between incoming,
outgoing, and internal mail.  Depending on your intended use
of features, this may or may not be important.

> I am experimenting with penpals now and when I activate it with my
> current config it seems to only log a penpals scan on one in every
> few thousand messages.  Even messages which the SQL statement should
> hit (and does hit if i run the SQL statement by hand) are ignored by
> amavis for penpals purposes.  I modified my @mynetworks and
> @local_domains_maps to have valid data for the local network and my
> test domain I'm working with.  The results of this caused all
> outbound email from anywhere in @mynetworks to get penpals attributes
> checked when the sql statement returned data;

Yes, this is normal. Inbound, and internal-to-internal mail
is checked for pen pals, matching it to a previous mail
originating from inside.

> however, no inbound email would ever produce penpals log entries.

Is not even checked, or just does not find a matching record in a database?

Turn up log level to 4 and grep the log for a string 'penpals:' .
(the more important of these log entries are at log level 2, one is
at level 3, the rest is at 4; log level 5 would also show SQL clauses
being executed).

> Of course my goal is for penpals to mark incoming emails, not outgoing.

Incoming and internal is supposed to be checked, outgoing not.

> Do these symtoms ring any familiar bells for anyone that might point
> out where i goofed?

- all recipients matching @local_domains_maps (except when sender is the
  same as recipient) should result in a penpals SQL query;

- for a query to match some previous mail in the opposite direction,
  that mail must have exactly matching sender and recipient address
  (swapped), or at least have a matching previous sender _and_
  and match on Message-ID. Make sure virtual_alias_maps and canonical
  (when used) is not causing mismatches.

- to save cycles, a ham message with low spam score which does not need
  pen pals help is not checked, and on the other extreme, an high
  scoring spam which would not have a chance of being saved
  even by a maximum pen pals contribution, is not checked either.
  To override these two optimization steps for test purposes, set:
    $penpals_threshold_low = undef;
    $penpals_threshold_high = undef;

- one additional condition: unauthenticated senders from outside (i.e.
  not having IP matching @mynetworks) _and_ using a local domain address
  do not receive a pen pals bonus. Make sure your @mynetworks is correct. 


Mark

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
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