Difference between revisions of "Dovecot: IPv6 Enable"

From OnnoWiki
Jump to navigation Jump to search
Line 5: Line 5:
 
I realized after some testing that neither Postfix (my MTA), nor Dovecot listened to IPv6 by default. In both cases, enabling IPv6 was easy.
 
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
+
==Postfix==
Set the inet_protocols parameter in /etc/postfix/main.cf:
+
 
 +
Default Postfix (MTA) tidak mendengarkan IPv6.
 +
Agar Postfix mendengarkan IPv6 dan IPv4, kita dapat mengubah parameter di/etc/postfix/main.cf agar,
  
 
  inet_protocols=all
 
  inet_protocols=all
  
The default value is ipv4.
+
Default value adalah ipv4.
  
Dovecot
+
==Dovecot==
Set the listen parameter in /etc/dovecot/dovecot.conf:
+
 
 +
Default Dovecot tidak mendengarkan IPv6.
 +
Agar default mendengarkan IPv6 dan IPv4, kita dapat mengubah parameter /etc/dovecot/dovecot.conf agar,
  
 
  listen=[::]
 
  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.
+
Minimal di Linux, ini akan menyebabkan Dovecot akan mendengarkan IPv4 dan IPv6.
 +
Default value *, hanya akan mendengarkan IPv4.
  
Edit the /etc/sentora/config/dovecot2/dovecot.conf file.
+
Alternatif lain,
  
Right in the start of the file you need to edit the listen = * to listen = *, ::
+
listen = *, ::
  
##
+
Restart dovecot menggunakan,
## Dovecot config file
+
 
##
+
  sudo service dovecot restart
  listen = *, ::
 
  
After the change you need to restart dovecot, just issue the restart command: sudo service dovecot restart
 
  
  
 +
==Apache==
  
Apache
+
Server Apache dapat langsung mendeteksi IPv6 saat restart. Pada konfigurasi apache biasanya, default-nya
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=*
 
  listen=*

Revision as of 10:59, 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.


Postfix

Default Postfix (MTA) tidak mendengarkan IPv6. Agar Postfix mendengarkan IPv6 dan IPv4, kita dapat mengubah parameter di/etc/postfix/main.cf agar,

inet_protocols=all

Default value adalah ipv4.

Dovecot

Default Dovecot tidak mendengarkan IPv6. Agar default mendengarkan IPv6 dan IPv4, kita dapat mengubah parameter /etc/dovecot/dovecot.conf agar,

listen=[::]

Minimal di Linux, ini akan menyebabkan Dovecot akan mendengarkan IPv4 dan IPv6. Default value *, hanya akan mendengarkan IPv4.

Alternatif lain,

listen = *, ::

Restart dovecot menggunakan,

sudo service dovecot restart


Apache

Server Apache dapat langsung mendeteksi IPv6 saat restart. Pada konfigurasi apache biasanya, default-nya

listen=*



Referensi

Pranala Menarik