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
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
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
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 -
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
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
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
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
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
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
10 matches
Mail list logo