Difference between revisions of "EMail: Mempersiapkan Server eMail IPv6"

From OnnoWiki
Jump to navigation Jump to search
 
(7 intermediate revisions by the same user not shown)
Line 17: Line 17:
 
* Hostname - coba1.id - [Server A]
 
* Hostname - coba1.id - [Server A]
 
* Hostname - coba2.id - [Server B]
 
* Hostname - coba2.id - [Server B]
 +
 +
 +
Edit (supaya tidak rewel, agak di longarkan security)
 +
 +
vi /etc/postfix/main.cf
 +
 +
my_hostname = coba*.id
 +
my_destination = coba*.id
 +
my_networks = [::]/0
 +
smtp_bind_address6 = 2345::*
 +
inet_protocols = all  (atau ipv6)
 +
 +
Dimana *=1 (server A), *=2 (server B)
 +
  
 
Edit
 
Edit
  
 
  vi /etc/resolv.conf
 
  vi /etc/resolv.conf
 +
vi /var/spool/postfix/etc/resolv.conf
  
 
  nameserver 2345::1
 
  nameserver 2345::1
 +
 +
Restart
 +
 +
/etc/init.d/postfix restart
 +
/etc/init.d/dovecot restart
 +
 +
  
 
===Server A===
 
===Server A===
Line 38: Line 60:
 
  sudo su
 
  sudo su
 
  ip addr add 2345::2/64 dev enp0s3
 
  ip addr add 2345::2/64 dev enp0s3
 
  
 
==Client A dan B==
 
==Client A dan B==
Line 45: Line 66:
  
 
  sudo su
 
  sudo su
  apt -y install fetchmail alpine thunderbird
+
  apt -y install fetchmail postfix alpine thunderbird
  
 
Edit /etc/resolv.conf
 
Edit /etc/resolv.conf
Line 59: Line 80:
 
  S > C >  
 
  S > C >  
 
     User Domain = coba1.id (untuk Client B coba2.id)
 
     User Domain = coba1.id (untuk Client B coba2.id)
     SMTP Server = coba1.id (untuk Client B coba2.id)
+
     SMTP Server = coba1.id/novalidate-cert (untuk Client B coba2.id)
  
  
Setup fetchmail
+
Setup fetchmail (untuk Client B coba2.id)
  
 +
cd ~
 +
vi .fetchmailrc
 +
poll coba1.id protocol pop3 username "onno" password "123456"
  
 
===Client A===
 
===Client A===

Latest revision as of 08:07, 21 February 2019

Topology Jaringan

Client A --- Server A ------- Server B ---- Client B
2345::1000   2345::1          2345::2       2345::2000

Server A dan B

Siapkan SMTP, POP3 dan IMAP server.

sudo su
apt update
apt -y install postfix dovecot-core dovecot-imapd dovecot-pop3d

Pilih

  • Internet Site
  • Hostname - coba1.id - [Server A]
  • Hostname - coba2.id - [Server B]


Edit (supaya tidak rewel, agak di longarkan security)

vi /etc/postfix/main.cf
my_hostname = coba*.id
my_destination = coba*.id
my_networks = [::]/0
smtp_bind_address6 = 2345::*
inet_protocols = all  (atau ipv6)

Dimana *=1 (server A), *=2 (server B)


Edit

vi /etc/resolv.conf
vi /var/spool/postfix/etc/resolv.conf
nameserver 2345::1

Restart

/etc/init.d/postfix restart
/etc/init.d/dovecot restart


Server A

sudo su
ip addr add 2345::1/64 dev enp0s3

Konfigurasi DNS Server untuk percobaan pengiriman eMail di terangkan di EMail: Mempersiapkan DNS dan MX record IPv6


Server B

Pada dasarnya tidak berbeda jauh dengan Server A, kecuali tidak ada DNS Server.

sudo su
ip addr add 2345::2/64 dev enp0s3

Client A dan B

Pada Client A dan B, instalasi

sudo su
apt -y install fetchmail postfix alpine thunderbird

Edit /etc/resolv.conf

vi /etc/resolv.conf
nameserver 2345::1


Setup alpine

alpine
S > C > 
    User Domain = coba1.id (untuk Client B coba2.id)
    SMTP Server = coba1.id/novalidate-cert (untuk Client B coba2.id)


Setup fetchmail (untuk Client B coba2.id)

cd ~
vi .fetchmailrc 
poll coba1.id protocol pop3 username "onno" password "123456"

Client A

sudo su
ip addr add 2345::1000/64 dev enp0s3

Client B

sudo su
ip addr add 2345::2000/64 dev enp0s3

Pranala Menarik