Difference between revisions of "Postfix: IPv6"
		
		
		
		
		
		Jump to navigation
		Jump to search
		
				
		
		
	
Onnowpurbo (talk | contribs)  (New page: Sumber: http://www.postfix.org/IPV6_README.html   Introduction  Postfix 2.2 introduces support for the IPv6 (IP version 6) protocol. IPv6 support for older Postfix versions was available a...)  | 
				Onnowpurbo (talk | contribs)   | 
				||
| Line 1: | Line 1: | ||
Sumber: http://www.postfix.org/IPV6_README.html  | Sumber: http://www.postfix.org/IPV6_README.html  | ||
| + | Sejak Postfix 2.2, IPv6 sudah mulai di dukung oleh Postfix dengan menggunakan protocol SMTP yang sama hanya saja menggunakan record AAAA di DNS-nya.  | ||
| − | |||
| − | + | ==Konfigurasi==  | |
| − | + | Untuk operasional IPv6 ada dua (2) tambahan parameter di main.cf, yaitu  | |
| − | + | * Semua IPv6 address harus masuk dalam "[]".  | |
| + | * loopback menggunakan "inet_interfaces = loopback-only" di main.cf  | ||
| − | + | Beberapa contoh setup parameter di main.cf  | |
| − | + | ===inet_protocols===  | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | + | Contoh parameter inet_protocols  | |
| − | Postfix   | + |  /etc/postfix/main.cf:  | 
| + |       # You must stop/start Postfix after changing this parameter.  | ||
| + |       inet_protocols = ipv4       (DEFAULT: enable IPv4 only)  | ||
| + |       inet_protocols = all        (enable IPv4, and IPv6 if supported)  | ||
| + |       inet_protocols = ipv4, ipv6 (enable both IPv4 and IPv6)  | ||
| + |       inet_protocols = ipv6       (enable IPv6 only)  | ||
| − | + | ===SMTP bind IPv6 address===  | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | + | Contoh parameter smtp_bind_address6  | |
| − | + |  /etc/postfix/main.cf:  | |
| − | + |       smtp_bind_address6 = 2001:240:587:0:250:56ff:fe89:1  | |
| − | + | ===mynetwork===  | |
| − | + | Contoh parameter mynetworks  | |
| − | + |  /etc/postfix/main.cf:  | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
         mynetworks = 127.0.0.0/8 168.100.189.0/28 [::1]/128 [fe80::]/10 [2001:240:587::]/64    |          mynetworks = 127.0.0.0/8 168.100.189.0/28 [::1]/128 [fe80::]/10 [2001:240:587::]/64    | ||
| − | + |  /etc/postfix/main.cf:  | |
| − | + |         mynetworks = ...IPv4 networks... [::1]/128 [2001:240:587::]/64 ...  | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
Revision as of 09:16, 21 February 2019
Sumber: http://www.postfix.org/IPV6_README.html
Sejak Postfix 2.2, IPv6 sudah mulai di dukung oleh Postfix dengan menggunakan protocol SMTP yang sama hanya saja menggunakan record AAAA di DNS-nya.
Konfigurasi
Untuk operasional IPv6 ada dua (2) tambahan parameter di main.cf, yaitu
- Semua IPv6 address harus masuk dalam "[]".
 - loopback menggunakan "inet_interfaces = loopback-only" di main.cf
 
Beberapa contoh setup parameter di main.cf
inet_protocols
Contoh parameter inet_protocols
/etc/postfix/main.cf:
     # You must stop/start Postfix after changing this parameter.
     inet_protocols = ipv4       (DEFAULT: enable IPv4 only)
     inet_protocols = all        (enable IPv4, and IPv6 if supported)
     inet_protocols = ipv4, ipv6 (enable both IPv4 and IPv6)
     inet_protocols = ipv6       (enable IPv6 only)
SMTP bind IPv6 address
Contoh parameter smtp_bind_address6
/etc/postfix/main.cf:
     smtp_bind_address6 = 2001:240:587:0:250:56ff:fe89:1
mynetwork
Contoh parameter mynetworks
/etc/postfix/main.cf:
       mynetworks = 127.0.0.0/8 168.100.189.0/28 [::1]/128 [fe80::]/10 [2001:240:587::]/64 
/etc/postfix/main.cf:
       mynetworks = ...IPv4 networks... [::1]/128 [2001:240:587::]/64 ...