Block specific destination email address

Discuss your pilot or production implementation with other Zimbra admins or our engineers.
Post Reply
phil_discount
Posts: 3
Joined: Mon Jun 04, 2018 7:04 am

Block specific destination email address

Post by phil_discount »

Hello!

we have got a main domain (domain1.com) and one alias domain (domain2.com).
If i create an email account info@domain1.com, the account automatically get the email address info@domain2.com (alias domain for domain1.com).
I want to block/delete all emails to info@domain2.com because we are receiving about 100 emails in one hour into the spam.
Does somebody know how i can do it on CLI?

Thanks and best regards
Philip

Single Server Installation: Zimbra 8.6.0 GA Network
phoenix
Ambassador
Ambassador
Posts: 27278
Joined: Fri Sep 12, 2014 9:56 pm
Location: Liverpool, England

Re: Block specific destination email address

Post by phoenix »

Did you actually create an alias domain with a catchall address? If you have a catchall address on your server you will never stop spam for the obvious reason that a 'catcall' address will catch everything including spam.
Regards

Bill

Rspamd: A high performance spamassassin replacement

Per ardua ad astra
phil_discount
Posts: 3
Joined: Mon Jun 04, 2018 7:04 am

Re: Block specific destination email address

Post by phil_discount »

Yes, it a catchall alias - we need it.
But my question is to block only one email address.
imanudin11
Outstanding Member
Outstanding Member
Posts: 304
Joined: Sat Sep 13, 2014 2:23 am
ZCS/ZD Version: Release 8.8.15.GA.3829.UBUNTU16.64
Contact:

Re: Block specific destination email address

Post by imanudin11 »

phil_discount wrote:Yes, it a catchall alias - we need it.
But my question is to block only one email address.
Hi,

You can install policyd on your server and use access control module. I am use access control module to restrict user sending email into outside. But, you can adjust with your requirement ;)

Below is sample guidance : https://imanudin.net/2014/09/29/how-to- ... h-policyd/

Thanks
AI
phil_discount
Posts: 3
Joined: Mon Jun 04, 2018 7:04 am

Re: Block specific destination email address

Post by phil_discount »

The system works fine - i dont want to change anything big (-:
I hoped there is a easy way like our whitelist and blacklist.
Whitelist /opt/zimbra/conf/salocal.cf.in
Blacklist /opt/zimbra/postfix/conf/postfix_reject_sender
Post Reply