BLOCK TLD

Discuss your pilot or production implementation with other Zimbra admins or our engineers.
fladnar
Posts: 29
Joined: Tue Jun 04, 2019 10:17 am

BLOCK TLD

Post by fladnar »

Good morning. :-)
How can i block TLD, like .icu and .pro?
I'm using blacklisting (/opt/zimbra/conf/postfix_blacklist), but it does not accept wildcards...
fladnar
Posts: 29
Joined: Tue Jun 04, 2019 10:17 am

Re: BLOCK TLD

Post by fladnar »

Nobody?
Iḿ suffering with .icu domains!!!
siliconalchemy
Posts: 16
Joined: Wed Jan 03, 2018 8:39 am

Re: BLOCK TLD

Post by siliconalchemy »

This should absolutely be in the wiki. There is colossal amounts of spam coming from TLDs like .icu that can often be safely blocked. Zimbra's antispam is well behind the times and is minimally effective these days.
fladnar
Posts: 29
Joined: Tue Jun 04, 2019 10:17 am

Re: BLOCK TLD

Post by fladnar »

No way to do that?
phoenix
Ambassador
Ambassador
Posts: 27278
Joined: Fri Sep 12, 2014 9:56 pm
Location: Liverpool, England

Re: BLOCK TLD

Post by phoenix »

fladnar wrote:No way to do that?
An internet search would have found this: https://www.davidmartinwhite.com/2016/1 ... h-postfix/

I haven't tried it and I don't know whether it does, or does not, work with Zimbra and I take no responsibility if you use it and it eats all of you email. :) If it does work you can always put an article in the Zimbra wiki
Regards

Bill

Rspamd: A high performance spamassassin replacement

Per ardua ad astra
siliconalchemy
Posts: 16
Joined: Wed Jan 03, 2018 8:39 am

Re: BLOCK TLD

Post by siliconalchemy »

phoenix wrote:
fladnar wrote:No way to do that?
An internet search would have found this: https://www.davidmartinwhite.com/2016/1 ... h-postfix/

I haven't tried it and I don't know whether it does, or does not, work with Zimbra and I take no responsibility if you use it and it eats all of you email. :) If it does work you can always put an article in the Zimbra wiki
^^ Which is exactly why nobody else here should be doing it.

There's a (buggy) zimbra wiki article that almost works:
https://wiki.zimbra.com/wiki/Domain_lev ... g_of_users

The exact steps (as zimbra user) are:

Code: Select all

cd ~/conf
echo 'icu REJECT' >postfix_reject_sender
postmap postfix_reject_sender
zmprov ms `zmhostname` +zimbraMtaSmtpdSenderRestrictions "check_sender_access lmdb:/opt/zimbra/conf/postfix_reject_sender"
zmmtactl restart
phoenix
Ambassador
Ambassador
Posts: 27278
Joined: Fri Sep 12, 2014 9:56 pm
Location: Liverpool, England

Re: BLOCK TLD

Post by phoenix »

siliconalchemy wrote:^^ Which is exactly why nobody else here should be doing it.
Quite right!
There's a (buggy) zimbra wiki article that almost works:
https://wiki.zimbra.com/wiki/Domain_lev ... g_of_users

The exact steps (as zimbra user) are:
Then why don't you create a 'correct' wiki article on the subject and people wouldn't have to read rubbish that I post in the forums. It's also possible to do that in Rspamd but I guess most people wouldn't want to install a better anti-spam system just to solve a little problem like this. :)
Regards

Bill

Rspamd: A high performance spamassassin replacement

Per ardua ad astra
fladnar
Posts: 29
Joined: Tue Jun 04, 2019 10:17 am

Re: BLOCK TLD

Post by fladnar »

phoenix wrote:
fladnar wrote:No way to do that?
An internet search would have found this: https://www.davidmartinwhite.com/2016/1 ... h-postfix/

I haven't tried it and I don't know whether it does, or does not, work with Zimbra and I take no responsibility if you use it and it eats all of you email. :) If it does work you can always put an article in the Zimbra wiki
Been there, done that, unfortunately, it does not work
fladnar
Posts: 29
Joined: Tue Jun 04, 2019 10:17 am

Re: BLOCK TLD

Post by fladnar »

siliconalchemy wrote:
phoenix wrote:
fladnar wrote:No way to do that?
The exact steps (as zimbra user) are:

Code: Select all

cd ~/conf
echo 'icu REJECT' >postfix_reject_sender
postmap postfix_reject_sender
zmprov ms `zmhostname` +zimbraMtaSmtpdSenderRestrictions "check_sender_access lmdb:/opt/zimbra/conf/postfix_reject_sender"
zmmtactl restart

Trying this, thank you!
phoenix
Ambassador
Ambassador
Posts: 27278
Joined: Fri Sep 12, 2014 9:56 pm
Location: Liverpool, England

Re: BLOCK TLD

Post by phoenix »

fladnar wrote:Been there, done that, unfortunately, it does not work
It always helps if you explain at the start what steps you've tried to fix you problem and whether they worked or not otherwise people waste time giving you the same information you've already looked at. ;)
Regards

Bill

Rspamd: A high performance spamassassin replacement

Per ardua ad astra
Post Reply