Sorry to reply to my own email...but I've been working on this, and I think I have something that should work...but I'm getting an error in amavisd-new
I'm hacking around on amavisd-new 2.7.0pre9. I've got a before send hook like this: sub before_send { my($self,$conn,$msginfo) = @_; do_log(2,"CUSTOM: before_send hook for additional quarantine"); if ($msginfo->quarantined_to) { my($quar_addr) = 'quarant...@mydomain.com'; Amavis::do_quarantine($conn, $msginfo, undef, [$quar_addr], 'smtp:[127.0.0.1]:10025:email'); } } But when I run amavisd-new in debug mode, I'm seeing this error: (!)custom before_send error: Can't locate object method "sender" via package "Amavis::In::Connection" at /usr/local/mroute/sbin/amavisd.mroute.2.7.0pre9 line 13713, <GEN17> line 54. What am I missing? Is my lack of perl experience tripping me up? Am I not passing the connection or the msginfo properly? And do I need to check quarantined_to for each recipient in some sort of loop over msgingo->per_recip_data? Thanks! If anyone has any ideas, I really need to try to get this going this weekend! Thanks- Tim ------------------------------------------------------------------------------ The modern datacenter depends on network connectivity to access resources and provide services. The best practices for maximizing a physical server's connectivity to a physical network are well understood - see how these rules translate into the virtual world? http://p.sf.net/sfu/oracle-sfdevnlfb _______________________________________________ AMaViS-user mailing list AMaViS-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/amavis-user Please visit http://www.ijs.si/software/amavisd/ regularly For administrativa requests please send email to rainer at openantivirus dot org