Re: [Exim] question

トップ ページ
このメッセージを削除
このメッセージに返信
著者: Odhiambo Washington
日付:  
To: Ivan Matveyev
CC: exim-users
題目: Re: [Exim] question
--
* Ivan Matveyev <hobot@???> [20031217 12:29]: wrote:
> Is smtp_accept_max_per_host is the only variable which can be set by
> lookup/lsearch like this:
>
> ${lookup{${mask:$sender_host_address/24}}lsearch*{/usr/exim/smtp_accept_max_per_host.cfg}}
>
> ?
>
> I've tried to set
>
> recipients_max
> smtp_accept_max_per_connection
>
> but failed. I would like to set them too. Any suggestions?



From Exim spec:

smtp_accept_max_per_host
Type: string, expanded
Default: unset

This option restricts the number of simultaneous IP connections from a
single host (strictly, from a single IP address) to the Exim daemon. The
option is expanded, to enable different limits to be applied to
different hosts by reference to $sender_host_address. Once the limit is
reached, additional connection attempts from the same host are rejected
with error code 421. The default value of zero imposes no limit. If this
option is set, it is required that smtp_accept_max be non-zero.

Warning: When setting this option you should not use any expansion
constructions that take an appreciable amount of time. The expansion and
test happen in the main daemon loop, in order to reject additional
connections without forking additional processes (otherwise a
denial-of-service attack could cause a vast number or processes to be
created). While the daemon is doing this processing, it cannot accept
any other incoming connections.



So the clue, I believe, is "(strictly, from a single IP address)".

${lookup{$sender_host_address}lsearch*{/usr/exim/smtp_accept_max_per_host.cfg}}
shoudl work, I think.


-Wash

http://www.netmeister.org/news/learn2quote.html

--
+======================================================================+
    |\      _,,,---,,_     | Odhiambo Washington    <wash@???>
Zzz /,`.-'`'    -.  ;-;;,_ | Wananchi Online Ltd.   www.wananchi.com
   |,4-  ) )-,_. ,\ (  `'-'| Tel: +254 20 313985-9  +254 20 313922
  '---''(_/--'  `-'\_)     | GSM: +254 722 743223   +254 733 744121
+======================================================================+
But soft you, the fair Ophelia:
Ope not thy ponderous and marble jaws,
But get thee to a nunnery -- go!
        -- Mark "The Bard" Twain
--
[ Content of type application/pgp-signature deleted ]
--