IPv6

2016-03-23 Thread Sebastian Hagedorn via Info-cyrus

Hi,

we've been using IPv6 for a few years now, but so far we haven't used it 
with Cyrus. Now we want to, and I have a few questions:


Is it correct that if we use host names in the listen statement and add a 
 record to the DNS that Cyrus will automatically listen to both the 
IPv4 and the IPv6 address?


I have manually added listen statements with literal IPv6 addresses to 
cyrus.conf and HUP'ed the master, but that didn't seem to work. What format 
do I have to use? Plain addresses (e.g. 2001:DB8::6f0:484c:df5:e8b1:28cd), 
in brackets like in a browser (e.g. [2001:DB8::6f0:484c:df5:e8b1:28cd]), 
sendmail-style (e.g. IPv6:2001:DB8::6f0:484c:df5:e8b1:28cd) or ...? Or is 
the problem that for changes like that I have to restart the service?


Cheers
Sebastian
--
   .:.Sebastian Hagedorn - Weyertal 121 (Gebäude 133), Zimmer 2.02.:.
.:.Regionales Rechenzentrum (RRZK).:.
  .:.Universität zu Köln / Cologne University - ✆ +49-221-470-89578.:.

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus

Re: IPv6

2016-03-23 Thread Eric Luyten via Info-cyrus
On Wed, March 23, 2016 3:13 pm, Sebastian Hagedorn via Info-cyrus wrote:
> Hi,
>
>
> we've been using IPv6 for a few years now, but so far we haven't used it with
> Cyrus. Now we want to, and I have a few questions:
>
>
> Is it correct that if we use host names in the listen statement and add a
>  record to the DNS that Cyrus will automatically listen to both the
> IPv4 and the IPv6 address?
>
>
> I have manually added listen statements with literal IPv6 addresses to
> cyrus.conf and HUP'ed the master, but that didn't seem to work. What format do
> I have to use? Plain addresses (e.g. 2001:DB8::6f0:484c:df5:e8b1:28cd),
> in brackets like in a browser (e.g. [2001:DB8::6f0:484c:df5:e8b1:28cd]),
> sendmail-style (e.g. IPv6:2001:DB8::6f0:484c:df5:e8b1:28cd) or ...? Or is the
> problem that for changes like that I have to restart the service?


Sebastian,


'listen' entries go into /etc/cyrus.conf, not imapd.conf,
and IMO require a Cyrus service restart, yes.


Regards,
Eric Luyten, Computing Centre VUB/ULB, Brussels.



Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus


Re: IPv6

2016-03-23 Thread Eric Luyten via Info-cyrus

Please disregard my previous comment,
misread your original post.
Need coffee.


Eric Luyten.


On Wed, March 23, 2016 3:27 pm, Eric Luyten via Info-cyrus wrote:
<>


Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus


Re: IPv6

2016-03-23 Thread lst_hoe02--- via Info-cyrus


Zitat von Sebastian Hagedorn via Info-cyrus :


Hi,

we've been using IPv6 for a few years now, but so far we haven't  
used it with Cyrus. Now we want to, and I have a few questions:


Is it correct that if we use host names in the listen statement and  
add a  record to the DNS that Cyrus will automatically listen to  
both the IPv4 and the IPv6 address?


I have manually added listen statements with literal IPv6 addresses  
to cyrus.conf and HUP'ed the master, but that didn't seem to work.  
What format do I have to use? Plain addresses (e.g.  
2001:DB8::6f0:484c:df5:e8b1:28cd), in brackets like in a browser  
(e.g. [2001:DB8::6f0:484c:df5:e8b1:28cd]), sendmail-style (e.g.  
IPv6:2001:DB8::6f0:484c:df5:e8b1:28cd) or ...? Or is the problem  
that for changes like that I have to restart the service?


Cheers
Sebastian


Hm, the man page say "bracket-enclosed IP address" but until now we  
have only used the port as service name "imap" e.g. listen="imap"  
which works fine for both IPv4 and IPv6 on a dual stack host. Do you  
have any special need to use the hostname/IP address and not bind to  
all local addresses?


Regards

Andreas




smime.p7s
Description: S/MIME Cryptographic Signature

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus

Re: IPv6

2016-03-23 Thread Sebastian Hagedorn via Info-cyrus


--On 23. März 2016 um 15:41:25 +0100 lst_hoe02--- via Info-cyrus 
 wrote:



we've been using IPv6 for a few years now, but so far we haven't
used it with Cyrus. Now we want to, and I have a few questions:

Is it correct that if we use host names in the listen statement and
add a  record to the DNS that Cyrus will automatically listen to
both the IPv4 and the IPv6 address?

I have manually added listen statements with literal IPv6 addresses
to cyrus.conf and HUP'ed the master, but that didn't seem to work.
What format do I have to use? Plain addresses (e.g.
2001:DB8::6f0:484c:df5:e8b1:28cd), in brackets like in a browser
(e.g. [2001:DB8::6f0:484c:df5:e8b1:28cd]), sendmail-style (e.g.
IPv6:2001:DB8::6f0:484c:df5:e8b1:28cd) or ...? Or is the problem
that for changes like that I have to restart the service?

Cheers
Sebastian


Hm, the man page say "bracket-enclosed IP address" but until now we have
only used the port as service name "imap" e.g. listen="imap" which works
fine for both IPv4 and IPv6 on a dual stack host. Do you have any special
need to use the hostname/IP address and not bind to all local addresses?


Yes, I do (multi-homed system), and I have just tried it on a test system. 
Using literal IPv6 adresses without brackets works fine, even though it 
looks strange:


 imapv6cmd="imapd" listen="2001:DB8:0:6f0:21c:42ff:fe5e:202e:imap"

I will now try a host name with bot A and  records, but I assume that 
will work as well.

--
   .:.Sebastian Hagedorn - Weyertal 121 (Gebäude 133), Zimmer 2.02.:.
.:.Regionales Rechenzentrum (RRZK).:.
  .:.Universität zu Köln / Cologne University - ✆ +49-221-470-89578.:.

pgpgFDC_Ancj7.pgp
Description: PGP signature

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus

Re: IPv6

2016-03-23 Thread Hajimu UMEMOTO via Info-cyrus
Hi,

> On Wed, 23 Mar 2016 16:03:10 +0100
> Sebastian Hagedorn via Info-cyrus  said:

info-cyrus> Yes, I do (multi-homed system), and I have just tried it on a test
info-cyrus> system. Using literal IPv6 adresses without brackets works fine, 
even
info-cyrus> though it looks strange:

info-cyrus>  imapv6cmd="imapd" 
listen="2001:DB8:0:6f0:21c:42ff:fe5e:202e:imap"

Though it is not mentioned in the manpage, the address:port notation
without bracket is also accepted.
You can find the following comment for parse_inet_listen() in
master/master.c:

 * Parse the "listen" parameter as one of the forms:
 *
 * hostname
 * hostname ':' port
 * ipv4-address
 * ipv4-address ':' port
 * '[' ipv4-address ']'
 * '[' ipv4-address ']' ':' port
 * '[' ipv6-address ']'
 * '[' ipv6-address ']' ':' port

info-cyrus> I will now try a host name with bot A and  records, but I assume
info-cyrus> that will work as well.

Yes, it should work.

Sincerely,

--
Hajimu UMEMOTO
u...@mahoroba.org  u...@freebsd.org
http://www.mahoroba.org/~ume/

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus


Re: IPv6

2016-03-23 Thread Sebastian Hagedorn via Info-cyrus


--On 24. März 2016 um 01:32:57 +0900 Hajimu UMEMOTO  
wrote:



Though it is not mentioned in the manpage, the address:port notation
without bracket is also accepted.
You can find the following comment for parse_inet_listen() in
master/master.c:

 * Parse the "listen" parameter as one of the forms:
 *
 * hostname
 * hostname ':' port
 * ipv4-address
 * ipv4-address ':' port
 * '[' ipv4-address ']'
 * '[' ipv4-address ']' ':' port
 * '[' ipv6-address ']'
 * '[' ipv6-address ']' ':' port

info-cyrus> I will now try a host name with bot A and  records, but I
assume info-cyrus> that will work as well.

Yes, it should work.


Thank you! Perhaps that should go into the manpage of cyrus.conf?
--
   .:.Sebastian Hagedorn - Weyertal 121 (Gebäude 133), Zimmer 2.02.:.
.:.Regionales Rechenzentrum (RRZK).:.
  .:.Universität zu Köln / Cologne University - ✆ +49-221-470-89578.:.

pgpdz9rAqdF4t.pgp
Description: PGP signature

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus

Re: IPv6

2016-03-23 Thread Hajimu UMEMOTO via Info-cyrus
Hi,

> On Wed, 23 Mar 2016 17:43:30 +0100
> Sebastian Hagedorn  said:

>  * Parse the "listen" parameter as one of the forms:
>  *
>  * hostname
>  * hostname ':' port
>  * ipv4-address
>  * ipv4-address ':' port
>  * '[' ipv4-address ']'
>  * '[' ipv4-address ']' ':' port
>  * '[' ipv6-address ']'
>  * '[' ipv6-address ']' ':' port

The `ipv6-address ':' port' notation is also accepted.  However, it is
not mentioned even in the comment.

Hagedorn> Thank you! Perhaps that should go into the manpage of cyrus.conf?

I'm not sure but I think the bracket notation is recommended.

Sincerely,

--
Hajimu UMEMOTO
u...@mahoroba.org  u...@freebsd.org
http://www.mahoroba.org/~ume/

Cyrus Home Page: http://www.cyrusimap.org/
List Archives/Info: http://lists.andrew.cmu.edu/pipermail/info-cyrus/
To Unsubscribe:
https://lists.andrew.cmu.edu/mailman/listinfo/info-cyrus