[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Mailflooding?



am 01.08.2009 15:43 schrieb Roger Rehnelt:
> Kurze Frage noch:
> 
>> deny message = imbecile helo
>>     condition = ${if !match {$sender_helo_name} {\N\.\N} }
>>
> 
> Kann man da noch ne Whitelist abfragen (wie)?

Ja. Ich mache das über eine Variable (hier "acl_m_lres"), finde ich
beim Testen flexibler ...

~~~ schnipp ~~~
#
# whitelisting based on helo name
#
accept set acl_m_lres = \
  ${lookup {$sender_helo_name} nwildlsearch{/path/wl-helo.txt} }
  condition = ${if eq {$acl_m_lres} {} {no} {yes} }
  ## fuer Testzwecke zusaetzl. Logzeile in mainlog:
  logwrite = whitelisted: $acl_m_lres - [$sender_host_address]
#
~~~ schnapp ~~~

und in der "/path/wl-helo.txt" steht dann etwa sowas ...

~~~ schnipp ~~~
^doll-seltsam$ : Ausnahme#1
^wasndas-\d$   : Ausnahme#2
~~~ schnapp ~~~

Kommen Patient mit 'HELO wasndas-zifr' angewackelt (und du hast die
logwrite-Zeile so drin wie oben angedeutet), dann siehst du im
exim-mainlog:

2009-08-01 15:43:38 +0200 whitelisted: Ausnahme#1 - [ip.ip.ip.ip]

HTH,
Peter


Reply to: