Re: [AMaViS-user] custom hooks: how to ban a message

2008-03-06 Thread Mark Martinec
Jeremy, In my current code I moved the custom hook initialization call (the Amavis::Custom-new) slightly earlier, so that loading a policy bank from there can influence a few more things, just in case someone would need it (like OS fingerprinting settings, local_domains). Nice. Not

Re: [AMaViS-user] custom hooks: how to ban a message

2007-11-29 Thread Mark Martinec
Jeremy, On 11/18/07, Mark Martinec [EMAIL PROTECTED] wrote: On a second thought, preparing a policy bank with required settings (like suppressing quarantine, special templates, destiny* settings, ..) and having it pre-configured in the normal config file, then loaded when needed by a

Re: [AMaViS-user] custom hooks: how to ban a message

2007-11-17 Thread Mark Martinec
myself wrote: I also see a need for a mechanism by which custom hooks could suppress normal notifications and quarantining - currently this is only possible indirectly by modifying attributes of a mail (e.g. its contents category). Then you could send your own notifications without worrying

Re: [AMaViS-user] custom hooks: how to ban a message

2007-11-17 Thread Jeremy Laidman
On 11/18/07, Mark Martinec [EMAIL PROTECTED] wrote: On a second thought, preparing a policy bank with required settings (like suppressing quarantine, special templates, destiny* settings, ..) and having it pre-configured in the normal config file, then loaded when needed by a custom hook -

Re: [AMaViS-user] custom hooks: how to ban a message

2007-11-16 Thread Mark Martinec
Jeremy, 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. The hooks are somewhat

Re: [AMaViS-user] custom hooks: how to ban a message

2007-11-15 Thread Jeremy Laidman
On 11/14/07, Jeremy Laidman [EMAIL PROTECTED] wrote: 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? Can anyone help? Or is this in the too hard basket? Is anyone

Re: [AMaViS-user] custom hooks: how to ban a message

2007-11-13 Thread Jeremy Laidman
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

Re: [AMaViS-user] custom hooks: how to ban a message

2007-10-31 Thread Mark Martinec
Jeremy, Don't set recip_done to true, just add_contents_category(). OK, but... If you do set recip_done, you must also set recip_smtp_response(...), indicating the success status of a delivery that you pretended to have done. So I could do this if I wanted to have control over the

Re: [AMaViS-user] custom hooks: how to ban a message

2007-10-30 Thread Mark Martinec
Jeremy, I'm running amavis 2.5.2 and I've written a custom hook for the checks() subroutine. My hook is analysing the headers of the message and the sender/recipient domains and, based on a local policy, I might need to quarantine a message. However I'm not sure what I'm supposed to do to

[AMaViS-user] custom hooks: how to ban a message

2007-10-29 Thread Jeremy Laidman
Hi all. I'm running amavis 2.5.2 and I've written a custom hook for the checks() subroutine. My hook is analysing the headers of the message and the sender/recipient domains and, based on a local policy, I might need to quarantine a message. However I'm not sure what I'm supposed to do to make