From: Lionel B. <lio...@bo...> - 2004-12-19 21:04:43
|
Klaus Alexander Seistrup wrote the following on 12/19/04 20:37 : >Hi, > >Just wondering . . . My primary MX, mx.szn.dk, accepts connections on >both IPv4 and IPv6. How does SQLgrey handle IPv6 addresses? > > I believe badly... I must admit I never thought of the IPv6 case. I've not yet thought much about this but the main problem is that the current address fields aren't large enough to store every IPv6 addresses. The simplest thing for SQLgrey is take the input it gets from Postfix and put it directly in the address field. The second problem is in the smart and classc greylisting algorithms, they'll have to be IPv6 aware (what's a rough equivalent of a class C network in v6, can it be made of all IPv6 with only the last 2 bytes modified or are there more subtle things to consider, think of the representation of IPv4 addresses encapsulated in IPv6 for example). Unfortunately, I've zero access to IPv6 networks so I can't test any of these. What I can do is changing the table layouts in 1.5.x to handle the maximum IPv6 address representation size (39 bytes). You should then switch to the 'full' greylisting method and send me examples of IPv6 entries (I'm not sure of the layout used by Postfix, in fact I'm not sure Postfix decides the layout, it might be the libc). I'll ask on the Postfix mailing-list... Lionel. |