Difference between revisions of "Configuring mynetwork maps in Zimbra"

Line 1: Line 1:
 +
{{BC|Certified}}
 
__FORCETOC__
 
__FORCETOC__
 
<div class="col-md-12 ibox-content">
 
<div class="col-md-12 ibox-content">
 
=Configuring_mynetwork_maps_in_Zimbra=
 
=Configuring_mynetwork_maps_in_Zimbra=
 
<hr>
 
<hr>
{{KB|{{ZC}}|{{ZCS 8.7.11}}|}}  
+
{{KB|{{ZC}}|{{ZCS 8.7}}|||}}
{{WIP}}
+
{{WIP}}
 
 
  
 
====Problem====
 
====Problem====
Line 23: Line 23:
 
   1.1.1.1 OK
 
   1.1.1.1 OK
 
   2.2.2.2 OK
 
   2.2.2.2 OK
 
  
 
=====Step 2=====   
 
=====Step 2=====   
Line 29: Line 28:
  
 
   postmap /opt/zimbra/conf/network_table
 
   postmap /opt/zimbra/conf/network_table
 
  
 
=====Step 3=====   
 
=====Step 3=====   
Line 39: Line 37:
  
 
   @mynetworks_maps = qw( read_array('/opt/zimbra/conf/network_table'));
 
   @mynetworks_maps = qw( read_array('/opt/zimbra/conf/network_table'));
 
  
 
=====Step 4=====   
 
=====Step 4=====   
Line 47: Line 44:
  
  
 
+
{{Article Footer|ZCS 8.7|2018-07-26}}
 
 
{{Article Footer|ZCS 8.7 2018-07-26}}
 

Revision as of 11:15, 26 July 2018

Configuring_mynetwork_maps_in_Zimbra


   KB 23710        Last updated on 2018-07-26  




0.00
(0 votes)


Problem

Default limit for mynetworks in postifx is ~4000 characters. If you have large list of networks/IPs to allow in mynetworks, then using zimbraMtaMyNetworks does not helps. Further zimbraMTAMyNetworks has a character limit of 10240.

Solution

Solution is to use mynetworks_maps in postfix. Below steps are tested on ZCS 8.7.11.

Step 1
  su - zimbra
  zmprov ms `zmhostname` zimbraMtaMyNetworks "lmdb:/opt/zimbra/conf/network_table"

Configure the list of IPs in /opt/zimbra/conf/network_table in below format. Make sure to include server's ethernet and localhost IPs.

  127.0.0.1 OK
  <SERVERIP> OK
  1.1.1.1 OK
  2.2.2.2 OK
Step 2

Create a hashmap with:

  postmap /opt/zimbra/conf/network_table
Step 3

Change below line in /opt/zimbra/conf/amavisd.conf.in to help amavisd process mynetwork maps.

  @mynetworks = qw( %%zimbraMtaMyNetworks%% );

Change to:

  @mynetworks_maps = qw( read_array('/opt/zimbra/conf/network_table'));
Step 4

Restart ZCS

  zmcontrol restart


Verified Against: ZCS 8.7 Date Created: 2018-07-26
Article ID: https://wiki.zimbra.com/index.php?title=Configuring_mynetwork_maps_in_Zimbra Date Modified: 2018-07-26



Try Zimbra

Try Zimbra Collaboration with a 60-day free trial.
Get it now »

Want to get involved?

You can contribute in the Community, Wiki, Code, or development of Zimlets.
Find out more. »

Looking for a Video?

Visit our YouTube channel to get the latest webinars, technology news, product overviews, and so much more.
Go to the YouTube channel »


Jump to: navigation, search