Attila,

> I would like to maintain per IP statistics for each sender in memcached
> for further evaluation. This would include the number of total messages
> sent (I can collect it via a postfix policy server), the number of
> viruses sent and the average spam score.
>
> Is there an easy hook where I can collect these (sender IP and the
> result of virus and spam filtering in amavis), or a suggested method to
> retrieve the information from amavis?

No such hooks are provided, but all the necessary information
is available when a subroutine save_info_final() is cxalled,
where you can add your code.

$msginfo->sender
$msginfo->client_addr
$msginfo->spam_level (or $msginfo->spam_level + $r->recip_score_boost
                      on a per-recipient basis)
$content_type

and similar. Information is stored mostly in a per-message
and in per-recipient objects of type Amavis::In::Message
and Amavis::In::Message::PerRecip, see available methods there.

  Mark

-------------------------------------------------------------------------
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