Restrict external IP when to domain is not local

Discuss your pilot or production implementation with other Zimbra admins or our engineers.
Post Reply
Exocomp
Posts: 9
Joined: Tue Jun 27, 2017 5:32 pm

Restrict external IP when to domain is not local

Post by Exocomp »

How can I restrict by the source IP when the "to" email domain is not local server.

Example 1:
[*]zimbra server domain -> mydomain.com
[*]Someone from IP 111.111.111.111 want to send an email to user@mydomain.com

The above case should succeed.

Example 2:
[*]zimbra server domain -> mydomain.com
[*]Someone from IP 111.111.111.111 want to send an email to user@gmail.com

The above case should be matched against a white list of IP's that can send to domains other than "mydomain.com".

How can I setup something similar to the above?
User avatar
DualBoot
Elite member
Elite member
Posts: 1326
Joined: Mon Apr 18, 2016 8:18 pm
Location: France - Earth
ZCS/ZD Version: ZCS FLOSS - 8.8.15 Mutli servers
Contact:

Re: Restrict external IP when to domain is not local

Post by DualBoot »

You can add an IP into zimbraMtaMyNetworks parameter .
I think it is dangerous as you can make a mistake and run your MTA as an open relay.
SASL auth should always be used when sending from external IP.
Post Reply