Blocking email from...
 
Notifications
Clear all

Blocking email from domain not working

2 Posts
2 Users
0 Likes
94 Views
 boby
(@boby)
Joined: 4 weeks ago
Posts: 1
Topic starter  

 

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.


   
Quote
(@anahuac)
Joined: 11 months ago
Posts: 306
 

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

 

 

 

 

 

 


   
ReplyQuote