 |
Qmail Support Forum Qmail Email Server Support Forums
|
| View previous topic :: View next topic |
| Author |
Message |
Aecio F. Neto Guest
|
Posted: Sun Jul 17, 2005 3:04 pm Post subject: More than one CDB for tcpserver |
|
|
I wonder if it is possible to have more than one tcp rule defined for tcpserver this way:
I have a huge tcp.smtp rule that I would like to compile into cdb just once and have it for tcpserver as primary rule set.
connections not catch by this primary set would invoke checking on a secondary list that is dinamically generated.
So, I would have something like this:
tcpserver -x tcp.smtp.primary -x tcp.smtp.dinamically
Possible the way it is or needs to patch it? |
|
| Back to top |
|
 |
Adrian Ho Guest
|
Posted: Sun Jul 17, 2005 3:12 pm Post subject: |
|
|
How large is the static rule set? Even with a million records:
cat static.rule.set dynamic.rule.set | tcprules smtp.cdb smtp.tmp
every time dynamic.rule.set changes shouldn't be a pain.
In fact, I did a quick test myself of 1,040,400 records:
127.{1..16}.{1..255}.{1..255}:allow,RELAYCLIENT=""
Generating this ruleset with a triply-nested bash for-loop took 45 secs
on a P4/2.4G 512MB. tcprules crunched it in 2 secs. 'Nuff said. |
|
| Back to top |
|
 |
Aecio F. Neto Guest
|
Posted: Sun Jul 17, 2005 3:13 pm Post subject: |
|
|
Well, up to now it is...
Primary tcp.smtp has over 100Mb and more than 1M entries.
This dynamic rule set can be generate each second, due to client authentication.
I now this is not best way to handle this, but that's the way it is setup now and changing it to smtp auth right now is not feasible.
I had already tried it and cat operation takes about 12 secs in our production box. So, this is out of question.
> In fact, I did a quick test myself of 1,040,400 records:
>
> 127.{1..16}.{1..255}.{1..255}:allow,RELAYCLIENT=""
>
> Generating this ruleset with a triply-nested bash for-loop took 45 secs
> on a P4/2.4G 512MB. tcprules crunched it in 2 secs. 'Nuff said.
Right, as soon as cdb is created it takes "almost nothing" to load ~100Mb file.
Said that, I *really* need tcpserver to load 2 cdbs... I have to patch it, right? |
|
| Back to top |
|
 |
Richard Lyons Guest
|
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|