Notifications
Clear all
Topic starter
04/07/2024 22:47
I created file
/opt/zextras/common/conf/postfix_reject_sender
with the following content
gmx.com REJECT
I run
su - zextras /opt/zextras/common/sbin/postmap /opt/zextras/common/conf/postfix_reject_sender zmprov ms correo.mvc.gob.gt +zimbraMtaSmtpdSenderRestrictions "check_sender_access lmdb:/opt/zextras/common/conf/postfix_reject_sender" zmmtactl reload
emails from gmx.com is not blocked, when i check postfix config, the restrictions is not added.
zextras@correo:~$ postconf smtpd_sender_restrictions smtpd_sender_restrictions = check_sender_access regexp:/opt/zextras/common/conf/tag_as_originating.re, permit_mynetworks, reject_sender_login_mismatch, permit_sasl_authenticated, permit_tls_clientcerts, check_sender_access regexp:/opt/zextras/common/conf/tag_as_foreign.re zextras@correo:~$
How do I fix this, I need to block all emails from a specific domain name.
04/09/2024 22:53
You may try this command to block domains:
zmprov md yourdomain.com +amavisBlacklistSender domaintoblock.com zmamavisdctl restart
And the domaintoblock.com shouldn't have "@"
You can use the same logic to block just an email:
zmprov md yourdomain.com +amavisBlacklistSender email@domaintoblock.com zmamavisdctl restart
If you don't want it on your blocklist anymore just replace "+" by "-" and it will be removed
You may like to join us in Telegram: https://t.me/CarbonioMail
Regards