{"id":592,"date":"2025-12-01T21:44:05","date_gmt":"2025-12-01T14:44:05","guid":{"rendered":"https:\/\/ilmusekawan.web.id\/?p=592"},"modified":"2025-12-02T20:53:14","modified_gmt":"2025-12-02T13:53:14","slug":"konfigurasi-external-smtp-relay-menggunakan-user-password-di-proxmox-mail-gateway","status":"publish","type":"post","link":"https:\/\/ilmusekawan.web.id\/index.php\/2025\/12\/01\/konfigurasi-external-smtp-relay-menggunakan-user-password-di-proxmox-mail-gateway\/","title":{"rendered":"Konfigurasi External SMTP Relay Menggunakan Autentikasi di Proxmox Mail Gateway"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Hi, Kawan. Kali ini saya akan berbagi tutorial cara konfigurasi External SMTP Relay yang menggunakan user\/password di Proxmox Mail Gateway.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em class=\"dracula-style-txt-border dracula-processed\" data-dracula_alpha_bg=\"rgba(0, 0, 0, 0)\">Catatan : konfigurasi ini saya lakukan di PMG versi 9.0<\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Masuk ke console PMG atau ssh ke servernya.<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">via GUI ke menu <strong class=\"dracula-style-txt-border dracula-processed\" data-dracula_alpha_bg=\"rgba(0, 0, 0, 0)\">Administration &gt;<\/strong> <strong class=\"dracula-style-txt-border dracula-processed\" data-dracula_alpha_bg=\"rgba(0, 0, 0, 0)\">Console<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Instalasi dependensi yang diperlukan (diinstall jika belum ada).<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ apt update\n$ apt install libsasl2-modules<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong class=\"dracula-style-txt-border dracula-processed\" data-dracula_alpha_bg=\"rgba(0, 0, 0, 0)\">Buat file relay_password di dalam folder \/etc\/postfix<\/strong>.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ cd \/etc\/postfix\n$ touch relay_passwd\n$ chmod 0600 relay_passwd<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Edit file relay_password dan masukan konfigurasi smtp, user dan passwordnya.<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&#91;smtp.domain.com]:587 username:password<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong class=\"dracula-style-txt-border dracula-processed\" data-dracula_alpha_bg=\"rgba(0, 0, 0, 0)\">Lakukan postmap untuk membuat file db postfix<\/strong>.<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ postmap relay_passwd<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Buat salinan file main.cf sebelum melakukan modifikasi terhadap file tersebut.<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ cp main.cf main.cf.backup<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Edit file main.cf dan tambahkan parameter berikut.<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ vi main.cf<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code># Konfigurasi External SMTP Relay\nrelayhost=&#91;smtp.domain.com]:587\nsmtp_use_tls = yes\nsmtp_sasl_auth_enable = yes\nsmtp_sasl_password_maps = hash:\/etc\/postfix\/relay_passwd\nsmtp_sasl_security_options = noanonymous<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Lakukan restart pada postfix<\/strong><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>$ systemctl restart postfix<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>Lakukan pengetesan pengiriman email untuk memastikan konfigurasi di atas berjalan dengan baik.<\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Referansi:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/www.caretech.io\/2018\/10\/06\/how-to-use-proxmox-mail-gateway-with-an-authenticated-smarthost\/\">How to Use Proxmox Mail Gateway with an Authenticated Smarthost \u2013 CareTech Computing<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Hi, Kawan. Kali ini saya akan berbagi tutorial cara konfigurasi External SMTP Relay yang menggunakan user\/password di Proxmox Mail Gateway. Catatan : konfigurasi ini saya lakukan di PMG versi 9.0 Masuk ke console PMG atau ssh ke servernya. via GUI ke menu Administration &gt; Console Instalasi dependensi yang diperlukan (diinstall&#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"telegram_tosend":false,"telegram_tosend_message":"","telegram_tosend_target":0,"footnotes":""},"categories":[4],"tags":[71,68,69,23],"class_list":["post-592","post","type-post","status-publish","format-standard","hentry","category-tips-trick","tag-mailgateway","tag-promox","tag-relay","tag-smtp"],"_links":{"self":[{"href":"https:\/\/ilmusekawan.web.id\/index.php\/wp-json\/wp\/v2\/posts\/592","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ilmusekawan.web.id\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ilmusekawan.web.id\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ilmusekawan.web.id\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ilmusekawan.web.id\/index.php\/wp-json\/wp\/v2\/comments?post=592"}],"version-history":[{"count":12,"href":"https:\/\/ilmusekawan.web.id\/index.php\/wp-json\/wp\/v2\/posts\/592\/revisions"}],"predecessor-version":[{"id":605,"href":"https:\/\/ilmusekawan.web.id\/index.php\/wp-json\/wp\/v2\/posts\/592\/revisions\/605"}],"wp:attachment":[{"href":"https:\/\/ilmusekawan.web.id\/index.php\/wp-json\/wp\/v2\/media?parent=592"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ilmusekawan.web.id\/index.php\/wp-json\/wp\/v2\/categories?post=592"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ilmusekawan.web.id\/index.php\/wp-json\/wp\/v2\/tags?post=592"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}