dapurhosting.com Blog for Tech

January 31, 2017

Block domain for sending mail

Filed under: cPanel/WHM,Email — dh @ 9:42 am

touch /etc/blockeddomains
echo "domain.com" >> /etc/blockeddomains

Buka WHM > Exim Configuration Editor > Advanced Editor
Klik tombol Add additional configuration setting
Tambahkan

domainlist blocked_domains = lsearch;/etc/blockeddomains

Cari tulisan ROUTERS CONFIGURATION, setelah kode ini

democheck:
driver = redirect
require_files = "+/etc/demouids"
condition = "${if eq {${lookup {$originator_uid} lsearch {/etc/demouids} {$value}}}{}{false}{true}}"
allow_fail
data = :fail: demo accounts are not permitted to relay email

Tambahkan kode berikut

reject_domains:

driver = redirect
# RBL Blacklist incoming hosts
domains = blocked_domains
allow_fail
data = :fail: Connection rejected: SPAM source $domain is manually blacklisted.

ref: https://forums.cpanel.net/threads/how-do-i-block-one-domain-from-sending-email-from-my-server.223731/#post920912

Powered by WordPress