On Mon, 8 Mar 2004, Jason Englander wrote:
> So if I create a global variable up top with 'use vars' or whatever, then
> _set_ it in filter_relay to the value of $helo, it won't be available in
> filter_begin or end?
It might.
Or it might not.
It just depends if the multiplexor picks the same s
On Mon, 8 Mar 2004, David F. Skoll wrote:
>> ...but you could set a global variable in filter_relay to reflect
>> whether or not it only has a hostname component, then act on it where you
>> can run action_change_header, change the SA score, etc.
> No, you couldn't. :-)
>
> Please see GLOBAL VARI
--On Monday, March 8, 2004 11:55 AM -0700 Lucas Albers
<[EMAIL PROTECTED]> wrote:
I was working adding to the sa score for clients that only have a
hostname component.
I found the simplest way was to add scores and reasons to two
variables in Mimedefang, and then tack them on to Spamassassin
At 11:20 AM 3/8/2004, Jason Englander wrote:
...but you could set a global variable in filter_relay to reflect whether
or not it only has a hostname component, then act on it where you can run
action_change_header, change the SA score, etc.
Actually, no, you can't - filter_relay and filter_end ca
On Mon, 8 Mar 2004, Jason Englander wrote:
> ...but you could set a global variable in filter_relay to reflect
> whether or not it only has a hostname component, then act on it where you
> can run action_change_header, change the SA score, etc.
No, you couldn't. :-)
Please see GLOBAL VARIABLE LI
On Mon, 8 Mar 2004, Lucas Albers wrote:
> Can I do:
> an action_change_header in filter_relay?
action_change_header($hdr, $val, $index)
Changes an existing header in the message. This can be used in
filter_begin or filter_end. The $hdr parameter is the header
...but
On Mon, 8 Mar 2004, Lucas Albers wrote:
> Can I do:
> an action_change_header in filter_relay?
No. It's too early in the milter dialog.
> action_change_header("X-Helo-Hostname", "$helo");
No. Even in filter_end, action_change_header just makes a note
for Milter to ask Sendmail to add the head
I was working adding to the sa score for clients that only have a
hostname component.
Perhaps 1 point.
Can I do:
an action_change_header in filter_relay?
action_change_header("X-Helo-Hostname", "$helo");
Then I can do a SA rule to match on the X-Helo-Hostname.
sub filter_relay {
my ($ip, $nam
8 matches
Mail list logo