Difference between revisions of "Dovecot: IPv6 Enable"
Onnowpurbo (talk | contribs) (Created page with "Sumber: https://efod.se/dovecot-postfix-ipv6/ Enabling IPv6 in Dovecot and Postfix I realized after some testing that neither Postfix (my MTA), nor Dovecot listened to IPv6...") |
Onnowpurbo (talk | contribs) |
||
Line 20: | Line 20: | ||
At least on Linux, this will make Dovecot listen to both IPv4 and IPv6. Setting the value of listen to *, will make it listen only to IPv4. | At least on Linux, this will make Dovecot listen to both IPv4 and IPv6. Setting the value of listen to *, will make it listen only to IPv4. | ||
+ | |||
+ | Edit the /etc/sentora/config/dovecot2/dovecot.conf file. | ||
+ | |||
+ | Right in the start of the file you need to edit the listen = * to listen = *, :: | ||
+ | |||
+ | ## | ||
+ | ## Dovecot config file | ||
+ | ## | ||
+ | listen = *, :: | ||
+ | |||
+ | After the change you need to restart dovecot, just issue the restart command: sudo service dovecot restart | ||
+ | |||
+ | |||
Apache | Apache |
Revision as of 10:53, 12 June 2020
Sumber: https://efod.se/dovecot-postfix-ipv6/
Enabling IPv6 in Dovecot and Postfix
I realized after some testing that neither Postfix (my MTA), nor Dovecot listened to IPv6 by default. In both cases, enabling IPv6 was easy.
(This is where I found out that my algorithm for getting parts of an entry and showing it on the front page doesn’t work that well.. so therefore, this text has been added, as it works as a workaround).
Postfix Set the inet_protocols parameter in /etc/postfix/main.cf:
inet_protocols=all
The default value is ipv4.
Dovecot Set the listen parameter in /etc/dovecot/dovecot.conf:
listen=[::]
At least on Linux, this will make Dovecot listen to both IPv4 and IPv6. Setting the value of listen to *, will make it listen only to IPv4.
Edit the /etc/sentora/config/dovecot2/dovecot.conf file.
Right in the start of the file you need to edit the listen = * to listen = *, ::
## ## Dovecot config file ## listen = *, ::
After the change you need to restart dovecot, just issue the restart command: sudo service dovecot restart
Apache My apache server happily picked up the presence of an IPv6 interface after a restart. This is probably due to the fact that I have a the following in my Apache configuration:
listen=*