Memblokir Akun Mengirim Email Ke Local atau Eksternal Di Zimbra 8.8.15
Memblokir Akun Mengirim Email Ke Local atau Eksternal Di Zimbra 8.8.15, digunakan untuk memblokir akun atau domain mengirim ke eksternal dan lokal, atau hanya bisa mengirim antar lokal saja. Berikut langkah-langkahnya
1. Buat file restrict_senders dan restrict_recipients
su - zimbra touch /opt/zimbra/common/conf/restrict_senders postmap /opt/zimbra/common/conf/restrict_senders touch /opt/zimbra/common/conf/restrict_recipients postmap /opt/zimbra/common/conf/restrict_recipients
2. Ubah file /opt/zimbra/conf/zmconfigd.cf
vi /opt/zimbra/conf/zmconfigd.cf
Cari baris “SECTION mta DEPENDS amavis” tambahkan baris dibawah sebelum “RESTART mta”
POSTCONF smtpd_restriction_classes restrict_sender POSTCONF restrict_sender FILE postfix_restrict_sender.cf
Contoh
POSTCONF postscreen_pipelining_action VAR zimbraMtaPostscreenPipeliningAction POSTCONF postscreen_pipelining_enable VAR zimbraMtaPostscreenPipeliningEnable POSTCONF postscreen_pipelining_ttl VAR zimbraMtaPostscreenPipeliningTTL POSTCONF postscreen_upstream_proxy_protocol VAR zimbraMtaPostscreenUpstreamProxyProtocol POSTCONF postscreen_watchdog_timeout VAR zimbraMtaPostscreenWatchdogTimeout POSTCONF postscreen_whitelist_interfaces VAR zimbraMtaPostscreenWhitelistInterfaces POSTCONF smtpd_restriction_classes restrict_sender POSTCONF restrict_sender FILE postfix_restrict_sender.cf RESTART mta SECTION opendkim DEPENDS mta LOCAL ldap_postfix_password LOCAL ldap_starttls_supported LOCAL av_notify_user LOCAL ldap_url VAR zimbraMtaMyNetworks VAR zimbraIPMode REWRITE conf/opendkim.conf.in conf/opendkim.conf REWRITE conf/opendkim-localnets.conf.in conf/opendkim-localnets.conf RESTART opendkim
3. ubah file /opt/zimbra/conf/zmconfigd/smtpd_sender_restrictions.cf
vi /opt/zimbra/conf/zmconfigd/smtpd_sender_restrictions.cf
Masukkan baris berikut diposisi paling atas
check_sender_access lmdb:/opt/zimbra/common/conf/restrict_senders
4. Keluar dari user zimbra, edit main.cf
exit vi /opt/zimbra/common/conf/main.cf
Masukkan paling bawah baris berikut
smtpd_restriction_classes = restrict_sender restrict_sender = check_recipient_access lmdb:/opt/zimbra/common/conf/restrict_senders, reject
5. Buat file postfix_restrict_sender.cf
cd /opt/zimbra/conf echo "check_recipient_access lmdb:/opt/zimbra/common/conf/restrict_recipients, reject" >> postfix_restrict_sender.cf chown zimbra.zimbra postfix_restrict_sender.cf
Membuat Rule
1 akun hanya bisa kirim local saja, tanpa bisa kirim ke semua eksternal
1. Ubah /opt/zimbra/common/conf/restrict_senders
vi /opt/zimbra/common/conf/restrict_senders
Masukkan akun email, simpan
email1@saad.my.id restrict_sender
2. Create database
postmap /opt/zimbra/common/conf/restrict_senders
3. Ubah /opt/zimbra/common/conf/restrict_recipients
vi /opt/zimbra/common/conf/restrict_recipients
Masukkan domain lokal, simpan
saad.my.id OK
4. Create database
postmap /opt/zimbra/common/conf/restrict_recipients
1 akun tidak bisa kirim ke eksternal, tidak bisa kirim ke lokal
1. Ubah /opt/zimbra/common/conf/restrict_senders
vi /opt/zimbra/common/conf/restrict_senders
Masukkan akun email, simpan
email1@saad.my.id restrict_sender
2. Create database
postmap /opt/zimbra/common/conf/restrict_senders
3. Ubah /opt/zimbra/common/conf/restrict_recipients
vi /opt/zimbra/common/conf/restrict_recipients
Hapus domain lokal, simpan
saad.my.id OK
4. Create database
postmap /opt/zimbra/common/conf/restrict_recipients
Selesai, Semoga bermanfat
Berikut layanan yang ada di saadwebid terkait zimbra
Layanan Jasa Maintenance Zimbra
Layanan Jasa Migrasi Zimbra Mail Server
VPS/Cloud Zimbra
SSL Zimbra Mail Server
SMTP Relay
Layanan Antivirus, Antispam dan Antimalware