Afficher un message
Vieux 16/01/2007, 20h19   #2
Kees Theunissen
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: OT: MIMEdefang and spamassassin/filter_end

J.O. Aho wrote:
> I would like to do something like this
>
> if (($remote=="remote.example.net") && ($hits >= 2 * $req)) {
> action_bounce("Sorry, we can't accept this spam.");
> return;
> }
>



See the mimedefang-filter(5) manpage.


GLOBAL VARIABLES SET BY MIMEDEFANG.PL
The following global variables are set by mimedefang.pl and are
available for use in your filter. All of these variables are
always available to filter_begin, filter, filter_multipart
and filter_end. In addition, some of them are available in
filter_relay, filter_sender or filter_recipient. If this is
the case, it will be noted below.

[...]

$RelayHostname
The host name of the relay. This is the name of the host
which is attempting to send e-mail to your host. May
be "undef" if the host name could not be determined.
This variable is available in filter_relay, filter_sender
and filter_recipient.

$RelayAddr
The IP address of the sending relay (as a string consisting
of four dot-separated decimal numbers.) One potential use
of $RelayAddr is to limit mailing to certain lists to
people within your organization. This variable is available
in filter_relay, filter_sender and filter_recipient.




Regards,

Kees.


--
Kees Theunissen.
  Réponse avec citation
 
Page generated in 0,04784 seconds with 9 queries