On 10/31/07, Mark Martinec wrote:
> Jeremy Laidman wrote:
> > Can I choose to not quarantine a message in some cases, but send a
> > notification as if I had?

(I've given up on skipping the quarantine for now.)

> Additional notifications can be sent from a custom hook,
> as indicated in the amavisd-custom.conf example.

I'm having a bit of trouble with this.  I'm not sure if I'm fighting
amavis or just my inexperience with it.  Any pointers would be very
useful.

I want to notify the local user (sender for outbound, recipient(s) for
inbound) when a message is banned by my custom hook, using a template.
 I can't leave things to the normal final destiny settings, because
banned files need to be handled differently to these policy
violations, and I can't see any way of making the notification
dependent on the reason for a banned message.  So I'm trying to notify
within my custom hook.

When I follow the example, it doesn't seem to be able to expand a
template's macros successfully.  I'm copying the global
Amavis::builtins and trying to use that, calling the expand sub from
its package in the main code.

Even if I get this working, I think the normal banned template gets
sent to the user, as well as my notification, which is not acceptable.

So my questions:
1) Can I expand a template within a custom hook?
2) Can I prevent the original notification from being sent?
3) Do I want to do this?  Is there a better way?

Thanks so much for your help, and amavis - such a very useful program.

Cheers
Jeremy

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
AMaViS-user mailing list
AMaViS-user@lists.sourceforge.net
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