Block all but specific IPs

Discuss your pilot or production implementation with other Zimbra admins or our engineers.
Post Reply
alnet
Posts: 11
Joined: Sat Sep 13, 2014 3:36 am

Block all but specific IPs

Post by alnet »

Hey folks,

my Zimbra is running behind a spam relay that only deliveres pre-filtered emails. I do not need the internal av/as capabilities of Zimbra, so I deactivated that. My MX points to the spam relay, of course, my folks drop their mails in the zimbra appliance.

So I played with
zmprov mcf -zimbraMtaRestriction 'check_client_access lmdb:/opt/zimbra/conf/postfix_blacklist'

and edited the blacklist according to the usual postfix docs. However: If I only want to allow specific IPs but deny all others (no use case) does anyone know how to do this?
User avatar
axslingr
Outstanding Member
Outstanding Member
Posts: 256
Joined: Sat Sep 13, 2014 2:20 am
ZCS/ZD Version: 8.8.15.GA.3869.UBUNTU18.64 UBUNTU18

Re: Block all but specific IPs

Post by axslingr »

Sounds like a job for firewall rules instead of postfix.
alnet
Posts: 11
Joined: Sat Sep 13, 2014 3:36 am

Re: Block all but specific IPs

Post by alnet »

... and just how would you open port 25 for all clients using auth & using port 25 to drop off Emails while closing port 25 for all smtp servers trying to drop emails w/o auth?
Just closing port 25 is easy, keeping access to the remaining clients is the trick.
User avatar
axslingr
Outstanding Member
Outstanding Member
Posts: 256
Joined: Sat Sep 13, 2014 2:20 am
ZCS/ZD Version: 8.8.15.GA.3869.UBUNTU18.64 UBUNTU18

Re: Block all but specific IPs

Post by axslingr »

Use 587 / 465 for client submission(that's what those ports are for) and only allow incoming port 25 from spam relay.
alnet
Posts: 11
Joined: Sat Sep 13, 2014 3:36 am

Re: Block all but specific IPs

Post by alnet »

My admin heart totally agrees. But care to guess how much perent of all those configured clients out there across all devices default to Port 25?
Blocking 25 is not an option.
Post Reply