Yahoo Groups archive

Milter-greylist

Index last updated: 2026-04-28 23:32 UTC

Message

Re: [milter-greylist] high load / high perf. / low memory

2004-09-10 by manu@netbsd.org

l_facq <facq@...> wrote:

>  i have think to this : 
> 
>  using a hash function like md5 on ip/from/to info 
>  could be a good mean to
>  - speed up (to check) the matching process
>  - limit memory fragmentation (compared to futur string allocation in
> replacement of the fixed ADDRLEN siwe)
>  - limit memory consumation
>  - limit .db size and speed up dump/reload process

milter-greylist supports regexs matching, you can't do that if you store
hashes.

If the performance was a real problem, we could store both the strings,
and the hash, but nobody ever reported that the process of walking the
grey list had a performance issue yet.

>  but on a BIG mail server whith millions of user... memory consumation
> can be a problem.

You mean if hotmail or yahoo want to use milter-greylist? I guess they
have the ressources to propose a patch :)

The first performance problem you'll encounter on a big setup is not the
greylist walk, it's the text dump. I guess it could be solved by
partially dumping to multiples files, or by using a real database
backend.

-- 
Emmanuel Dreyfus
Il y a 10 sortes de personnes dans le monde: ceux qui comprennent 
le binaire et ceux qui ne le comprennent pas.
manu@...

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.