Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: DBMail: users

IPv6

 

 

DBMail users RSS feed   Index | Next | Previous | View Threaded


david.bandel at gmail

Aug 8, 2009, 6:59 AM

Post #1 of 12 (1624 views)
Permalink
IPv6

Folks,

Can't seem to find much on the subject. Seems last time someone asked about IPv6 in 2006 they got a curt "no ipv6" as an answer. But that was 3 years ago.

I am using dbmail (2.2.11), but I now have one domain that is IPv6 only.

Is IPv6 in the current (2.3.x) code? If not, is it planned? If not planned, is there any replacement for dbmail (sendmail+pgsql)?

I'm down to the last app not IPv6 -- dmail. All others (Apache2, BIND, sendmail, postgresql, ssh, ntpd, etc.) are dual stack or IPv6 only.

What's really odd is dbmail appears on the backend to be using IPv6 (output from netstat):
tcp6 0 0 ::1:5432 ::1:56169 ESTABLISHED 1881/postgres: dbma
tcp6 0 0 ::1:5432 ::1:38927 ESTABLISHED 2867/postgres: dbma
tcp6 0 0 ::1:38932 ::1:5432 ESTABLISHED 2967/dbmail-pop3d
tcp6 0 0 ::1:5432 ::1:33133 ESTABLISHED 14090/postgres: dbm
tcp6 0 0 ::1:38934 ::1:5432 ESTABLISHED 2971/dbmail-pop3d
tcp6 0 0 ::1:5432 ::1:56171 ESTABLISHED 1885/postgres: dbma

Just the pop3, imap, and lmtpd daemons appear to only bind ipv4 on the front end (or have I misconfigured something?).

Thanx,

David A. Bandel
--
Focus on the dream, not the competition.
- Nemesis Air Racing Team motto
Visit my blog at: http://www.pananix.com/cgi-bin/blosxom
Attachments: signature.asc (0.26 KB)


paul at nfg

Aug 8, 2009, 7:58 AM

Post #2 of 12 (1564 views)
Permalink
Re: IPv6 [In reply to]

david.bandel [at] gmail wrote:
> Folks,
>
> Can't seem to find much on the subject. Seems last time someone asked
> about IPv6 in 2006 they got a curt "no ipv6" as an answer. But that was
> 3 years ago.
>
> I am using dbmail (2.2.11), but I now have one domain that is IPv6 only.
>
> Is IPv6 in the current (2.3.x) code? If not, is it planned? If not
> planned, is there any replacement for dbmail (sendmail+pgsql)?

I'm perfectly willing to start using ipv6 interfaces by default. I'm not
too knowledgeable on the subject, but afaict an ipv6 interface will
happily serve ipv4 clients if bound to a mapped address like
::ffff:192.168.1.1 so using ipv6 interfaces internally would serve both
worlds.

Only caveat is people running on kernels that don't support ipv6. For
2.3 we could probably start using ipv6 in favor of ipv4. Any backports
to 2.2 would most likely require a compile time selection.


>
> I'm down to the last app not IPv6 -- dmail. All others (Apache2, BIND,
> sendmail, postgresql, ssh, ntpd, etc.) are dual stack or IPv6 only.
> What's really odd is dbmail appears on the backend to be using IPv6
> (output from netstat): tcp6 0 0 ::1:5432
> ::1:56169 ESTABLISHED 1881/postgres: dbma
> tcp6 0 0 ::1:5432 ::1:38927
> ESTABLISHED 2867/postgres: dbma
> tcp6 0 0 ::1:38932 ::1:5432
> ESTABLISHED 2967/dbmail-pop3d
> tcp6 0 0 ::1:5432 ::1:33133
> ESTABLISHED 14090/postgres: dbm
> tcp6 0 0 ::1:38934 ::1:5432
> ESTABLISHED 2971/dbmail-pop3d
> tcp6 0 0 ::1:5432 ::1:56171
> ESTABLISHED 1885/postgres: dbma
>
> Just the pop3, imap, and lmtpd daemons appear to only bind ipv4 on the
> front end (or have I misconfigured something?).

The backend connections are handled by the respective client libraries.
Those are ipv6 enabled of course. Time for dbmail to move on this issue
as well.


>
> Thanx,
>
> David A. Bandel
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> DBmail mailing list
> DBmail [at] dbmail
> http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail


--
________________________________________________________________
Paul Stevens paul at nfg.nl
NET FACILITIES GROUP GPG/PGP: 1024D/11F8CD31
The Netherlands________________________________http://www.nfg.nl
_______________________________________________
DBmail mailing list
DBmail [at] dbmail
http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail


paul at nfg

Aug 9, 2009, 3:16 AM

Post #3 of 12 (1567 views)
Permalink
Re: IPv6 [In reply to]

Paul J Stevens wrote:
> david.bandel [at] gmail wrote:
>> Folks,
>>
>> Can't seem to find much on the subject. Seems last time someone asked
>> about IPv6 in 2006 they got a curt "no ipv6" as an answer. But that was
>> 3 years ago.

David,

I've added full IPv4/IPv6 support to my git tree, so this will appear in
dbmail as of 2.3.7


http://git.dbmail.eu/cgit/cgit.cgi/paul/dbmail/commit/?id=be714e9326a86c37a32f18e90fc61b1acbd6deb1



--
________________________________________________________________
Paul Stevens paul at nfg.nl
NET FACILITIES GROUP GPG/PGP: 1024D/11F8CD31
The Netherlands________________________________http://www.nfg.nl
_______________________________________________
DBmail mailing list
DBmail [at] dbmail
http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail


paul at nfg

Aug 9, 2009, 6:41 AM

Post #4 of 12 (1566 views)
Permalink
Re: IPv6 [In reply to]

Paul J Stevens wrote:
> Paul J Stevens wrote:
>> david.bandel [at] gmail wrote:
>>> Folks,
>>>
>>> Can't seem to find much on the subject. Seems last time someone asked
>>> about IPv6 in 2006 they got a curt "no ipv6" as an answer. But that was
>>> 3 years ago.
>
> David,
>
> I've added full IPv4/IPv6 support to my git tree, so this will appear in
> dbmail as of 2.3.7

David,

Easy sunday here so I've backported IPv6 support to the 2.2 tree as well.

pickup the patch here:

http://git.dbmail.eu/cgit/cgit.cgi/paul/dbmail/patch/?id=fb4e2c74402abfdffcd3583be47691ef6a9252bc

--
________________________________________________________________
Paul Stevens paul at nfg.nl
NET FACILITIES GROUP GPG/PGP: 1024D/11F8CD31
The Netherlands________________________________http://www.nfg.nl
_______________________________________________
DBmail mailing list
DBmail [at] dbmail
http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail


david.bandel at gmail

Aug 9, 2009, 10:31 AM

Post #5 of 12 (1570 views)
Permalink
Re: IPv6 [In reply to]

On Sun, Aug 9, 2009 at 08:41, Paul J Stevens<paul [at] nfg> wrote:
> Paul J Stevens wrote:
>> Paul J Stevens wrote:
>>> david.bandel [at] gmail wrote:
>>>> Folks,
>>>>
>>>> Can't seem to find much on the subject.   Seems last time someone asked
>>>> about IPv6 in 2006 they got a curt "no ipv6" as an answer.  But that was
>>>> 3 years ago.
>>
>> David,
>>
>> I've added full IPv4/IPv6 support to my git tree, so this will appear in
>> dbmail as of 2.3.7
>
> David,
>
> Easy sunday here so I've backported IPv6 support to the 2.2 tree as well.
>
> pickup the patch here:
>
> http://git.dbmail.eu/cgit/cgit.cgi/paul/dbmail/patch/?id=fb4e2c74402abfdffcd3583be47691ef6a9252bc
>

Wow, Paul, that was fast. Thanx.

Used the above patch. Seems to patch only the server. I see dbmail-lmtpd, dmail-pop3d and dbmail-imap with netstat with ipv4 bindings only:
mail:~/dbmail-2.2.11# netstat -pan | grep dbmail
tcp 0 0 0.0.0.0:110 0.0.0.0:* LISTEN 28967/dbmail-pop3d
tcp 0 0 0.0.0.0:143 0.0.0.0:* LISTEN 29113/dbmail-imapd
tcp 0 0 0.0.0.0:24 0.0.0.0:* LISTEN 28986/dbmail-lmtpd
tcp6 0 0 ::1:52636 ::1:5432 ESTABLISHED 28987/dbmail-lmtpd
tcp6 0 0 ::1:53986 ::1:5432 ESTABLISHED 29116/dbmail-imapd
tcp6 0 0 ::1:52637 ::1:5432 ESTABLISHED 28989/dbmail-lmtpd
tcp6 0 0 ::1:52630 ::1:5432 ESTABLISHED 28968/dbmail-pop3d
tcp6 0 0 ::1:52632 ::1:5432 ESTABLISHED 28972/dbmail-pop3d
tcp6 0 0 ::1:53987 ::1:5432 ESTABLISHED 29118/dbmail-imapd
tcp6 0 0 ::1:53985 ::1:5432 ESTABLISHED 29114/dbmail-imapd
tcp6 0 0 ::1:52638 ::1:5432 ESTABLISHED 28991/dbmail-lmtpd
tcp6 0 0 ::1:52631 ::1:5432 ESTABLISHED 28970/dbmail-pop3d

I checked, and the binaries I'm running have the latest time-stamp. The tcp6 entries are database connections (port 5432 against postgresql-8.4).

Did I miss something?

Thanx,

David A. Bandel
--
Focus on the dream, not the competition.
- Nemesis Air Racing Team motto
Visit my blog at: http://www.pananix.com/cgi-bin/blosxom
Attachments: signature.asc (0.26 KB)


paul at nfg

Aug 9, 2009, 1:43 PM

Post #6 of 12 (1564 views)
Permalink
Re: IPv6 [In reply to]

David A. Bandel wrote:
> Used the above patch. Seems to patch only the server. I see
> dbmail-lmtpd, dmail-pop3d and dbmail-imap with netstat with ipv4

You need to specify ipv6 type addresses. Try:

bindip = ::ffff:<ipv4 address>

to get an ipv6 binding on an ipv4 address.

I'm using getaddrinfo(3) (see rfc2553) to provide portable ipv6 support
while maintaining ipv4 compatibility.



--
________________________________________________________________
Paul Stevens paul at nfg.nl
NET FACILITIES GROUP GPG/PGP: 1024D/11F8CD31
The Netherlands________________________________http://www.nfg.nl
_______________________________________________
DBmail mailing list
DBmail [at] dbmail
http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail


mysql.jorge at decimal

Aug 9, 2009, 1:48 PM

Post #7 of 12 (1564 views)
Permalink
Re: IPv6 [In reply to]

> You need to specify ipv6 type addresses. Try:
>
> bindip = ::ffff:<ipv4 address>
>
> to get an ipv6 binding on an ipv4 address.
>
> I'm using getaddrinfo(3) (see rfc2553) to provide portable ipv6 support
> while maintaining ipv4 compatibility.

Paul,
For all IPv6 addr's on the machine, can the bindip be specified like this:

BINDIP = ::ffff:0.0.0.0

?

_______________________________________________
DBmail mailing list
DBmail [at] dbmail
http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail


paul at nfg

Aug 9, 2009, 2:10 PM

Post #8 of 12 (1574 views)
Permalink
Re: IPv6 [In reply to]

Jorge Bastos wrote:
>> You need to specify ipv6 type addresses. Try:
>>
>> bindip = ::ffff:<ipv4 address>
>>
>> to get an ipv6 binding on an ipv4 address.
>>
>> I'm using getaddrinfo(3) (see rfc2553) to provide portable ipv6 support
>> while maintaining ipv4 compatibility.
>
> Paul,
> For all IPv6 addr's on the machine, can the bindip be specified like this:
>
> BINDIP = ::ffff:0.0.0.0

No. That specification will bind to all IPv4 addresses using IPv6 sockets.

For all IPv6 addresses I think you need to use:

bindip = 0:0:0:0:0:0:0:0



--
________________________________________________________________
Paul Stevens paul at nfg.nl
NET FACILITIES GROUP GPG/PGP: 1024D/11F8CD31
The Netherlands________________________________http://www.nfg.nl
_______________________________________________
DBmail mailing list
DBmail [at] dbmail
http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail


mysql.jorge at decimal

Aug 9, 2009, 2:14 PM

Post #9 of 12 (1563 views)
Permalink
Re: IPv6 [In reply to]

> > BINDIP = ::ffff:0.0.0.0
>
> No. That specification will bind to all IPv4 addresses using IPv6
> sockets.
>
> For all IPv6 addresses I think you need to use:
>
> bindip = 0:0:0:0:0:0:0:0

I believe it's correct.
But for a bind on both IPv4 & IPv6? Will it result on:

Bindip = 0:0:0:0:0:0:0:0:0.0.0.0 ?

_______________________________________________
DBmail mailing list
DBmail [at] dbmail
http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail


paul at nfg

Aug 9, 2009, 2:26 PM

Post #10 of 12 (1563 views)
Permalink
Re: IPv6 [In reply to]

Jorge Bastos wrote:
>>> BINDIP = ::ffff:0.0.0.0
>> No. That specification will bind to all IPv4 addresses using IPv6
>> sockets.
>>
>> For all IPv6 addresses I think you need to use:
>>
>> bindip = 0:0:0:0:0:0:0:0
>
> I believe it's correct.
> But for a bind on both IPv4 & IPv6? Will it result on:
>
> Bindip = 0:0:0:0:0:0:0:0:0.0.0.0 ?

The code should be fixed to allow

bindip =
or
bindip = *

to mean: bind any address in any protocol family


--
________________________________________________________________
Paul Stevens paul at nfg.nl
NET FACILITIES GROUP GPG/PGP: 1024D/11F8CD31
The Netherlands________________________________http://www.nfg.nl
_______________________________________________
DBmail mailing list
DBmail [at] dbmail
http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail


david.bandel at gmail

Aug 9, 2009, 3:15 PM

Post #11 of 12 (1559 views)
Permalink
Re: IPv6 [In reply to]

On Sun, Aug 9, 2009 at 16:26, Paul J Stevens<paul [at] nfg> wrote:
> Jorge Bastos wrote:
>>>> BINDIP = ::ffff:0.0.0.0
>>> No. That specification will bind to all IPv4 addresses using IPv6
>>> sockets.
>>>
>>> For all IPv6 addresses I think you need to use:
>>>
>>> bindip = 0:0:0:0:0:0:0:0
>>
>> I believe it's correct.
>> But for a bind on both IPv4 & IPv6? Will it result on:
>>
>> Bindip = 0:0:0:0:0:0:0:0:0.0.0.0 ?

the above is correct:

tcp6 0 0 :::110 :::* LISTEN 2524/dbmail-pop3d
tcp6 0 0 :::143 :::* LISTEN 2533/dbmail-imapd
tcp6 0 0 :::24 :::* LISTEN 2515/dbmail-lmtpd
tcp6 0 0 2001:470:d8e9::3:143 2001:470:d8e9:fff:41511 ESTABLISHED 2654/dbmail-imapd

Thanx for all the great work.

David A. Bandel
--
Focus on the dream, not the competition.
- Nemesis Air Racing Team motto
Visit my blog at: http://www.pananix.com/cgi-bin/blosxom
Attachments: signature.asc (0.26 KB)


mysql.jorge at decimal

Aug 10, 2009, 2:51 PM

Post #12 of 12 (1552 views)
Permalink
Re: IPv6 [In reply to]

> >> For all IPv6 addresses I think you need to use:
> >>
> >> bindip = 0:0:0:0:0:0:0:0
> >
> > I believe it's correct.
> > But for a bind on both IPv4 & IPv6? Will it result on:
> >
> > Bindip = 0:0:0:0:0:0:0:0:0.0.0.0 ?
>
> The code should be fixed to allow
>
> bindip =
> or
> bindip = *
>
> to mean: bind any address in any protocol family

Oh perfect then,
For all ifaces, "*" then!


_______________________________________________
DBmail mailing list
DBmail [at] dbmail
http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail

DBMail users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.