EMail: Mempersiapkan Server eMail IPv6: Difference between revisions

From OnnoCenterWiki
Jump to navigationJump to search
Onnowpurbo (talk | contribs)
Onnowpurbo (talk | contribs)
 
(18 intermediate revisions by the same user not shown)
Line 7: Line 7:
==Server A dan B==
==Server A dan B==


Server A
Siapkan SMTP, POP3 dan IMAP server.


ip addr add 2345::1/64 dev enp0s3
  sudo su
  sudo su
  apt update
  apt update
  apt install postfix dovecot-common dovecot-imapd dovecot-pop3d
  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


===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
  ip addr add 2345::2/64 dev enp0s3


==Client A dan B==
==Client A dan B==


Client A
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
 


ip addr add 2345::1000/64 dev enp0s3
Setup alpine


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


ip addr add 2345::2000/64 dev enp0s3


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==
==Pranala Menarik==


* [[IPv6]]
* [[IPv6]]

Latest revision as of 01: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