Jika anda ingin membuat SMTP Servers email untuk perusahaan atau untuk pengguna, anda dapat menggunakan Postal Sebagai SMTP Servers. dan disini saya Menggunakan VPS Centos 7 dari MikyHost.com . dan silahkan ikuti panduan ini.
Pertama-tama Silahkan daftarkan domain anda di
setelah itu Silahkan Pilih VPS berdasarkan kebutuhkan
VPS Asia :
VPS Premium AMD :
VPS Premium INTEL :
Video Tutorial
Buat catatan berikut:
Name | Type | Value |
@ | A | 1.2.3.4 |
A | 1.2.3.4 | |
rp.mail | A | 1.2.3.4 |
track.mail | A | 1.2.3.4 |
psrp | Cname | rp.mail.yoursite.com |
@ | MX | mail.yoursite.com ; 10 |
routes.mail | MX | mail.yoursite.com ; 10 |
rp.mail | MX | mail.yoursite.com ; 10 |
@ | TXT | v=spf1 a mx include:spf.mail.yoursite.com ~all |
rp.mail | TXT | v=spf1 a mx include:spf.mail.yoursite.com ~all |
spf.mail | TXT | v=spf1 ip4:1.2.3.4 ~all |
_dmarc | TXT | v=DMARC1; p=none; fo=1; rua=mailto:[email protected]; ruf=mailto:[email protected] |
Masukan Kode Perintah
# sudo apt-get update
# sudo apt-get install apt-transport-https ca-certificates curl software-properties-common -y
# curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
Selanjutanya masukan semua kode
Code:
echo \
"deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
Selanjutnya
# sudo apt-get update
# sudo apt-get install docker-ce docker-ce-cli containerd.io
# sudo curl -L "https://github.com/docker/compose/releases/download/1.29.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
# sudo chmod +x /usr/local/bin/docker-compose
# apt install git
# apt install git curl jq
# git clone https://postalserver.io/start/install /opt/postal/install
# sudo ln -s /opt/postal/install/bin/postal /usr/bin/postal
Install MariaDB
Code:
docker run -d \
--name postal-mariadb \
-p 127.0.0.1:3306:3306 \
--restart always \
-e MARIADB_DATABASE=postal \
-e MARIADB_ROOT_PASSWORD=postal \
mariadb
Install RabbitMQ
Code:
docker run -d \
--name postal-rabbitmq \
-p 127.0.0.1:5672:5672 \
--restart always \
-e RABBITMQ_DEFAULT_USER=postal \
-e RABBITMQ_DEFAULT_PASS=postal \
-e RABBITMQ_DEFAULT_VHOST=postal \
rabbitmq:3.8
Configuration
# postal bootstrap postal.yourdomain.com
# nano /opt/postal/config/postal.yml
# postal initialize
# postal make-user
Jalankan Postal
# postal start
Install Caddy
Code:
docker run -d \
--name postal-caddy \
--restart always \
--network host \
-v /opt/postal/config/Caddyfile:/etc/caddy/Caddyfile \
-v /opt/postal/caddy-data:/data \
caddy
Enjoy...
Last edited: