modifying mail:postfix:mynetworks with serveradmin
I'm trying to modify the postfix settings on an Xserve running 10.3.9 using the settings from another currently-working Xserve as a model. The servers are located at a remote facility so I have to do the configuration using serveradmin (or some other command lineu utility). I'm having big problems figuring out the correct syntax for modifying the mail:postfix:mynetworks parameter.
Here's the settings from the working system (obfuscated):
deitrich@serv01 deitrich> sudo serveradmin settings mail:postfix:mynetworks
mail:postfix:mynetworks: arrayindex:0 = "127.0.0.1/32"
mail:postfix:mynetworks: arrayindex:1 = "192.168.1.1/32"
mail:postfix:mynetworks: arrayindex:2 = "192.168.2.1/32"
Currently the new system is set to:
deitrich@serv02 deitrich> sudo serveradmin settings mail:postfix:mynetworks
mail:postfix:mynetworks: arrayindex:0 = "127.0.0.1/32"
I'm trying to add 192.168.1.2 and 192.168.2.2 to the mynetworks list on the second server. However, when I try to modify the array I get the following:
deitrich@serv02 deitrich> sudo serveradmin command
mail:postfix:mynetworks: arrayindex:0 = create
mail:postfix:mynetworks: arrayindex:0 = "127.0.0.1/32"
mail:postfix:mynetworks: arrayindex:1 = "192.168.1.2/32"
mail:postfix:mynetworks: arrayindex:2 = "192.168.2.2/32"
[ctrl-d]
Invalid index "0", must specifiy array elements in order
Index = 0, count = 1, currentArray = (create)
for key: "mail:postfix:mynetworks: arrayindex:0"
If I try it without the 'create' I get:
deitrich@serv02 deitrich> sudo serveradmin command
mail:postfix:mynetworks: arrayindex:0 = "127.0.0.1/32"
mail:postfix:mynetworks: arrayindex:1 = "192.168.1.2/32"
mail:postfix:mynetworks: arrayindex:2 = "192.168.2.2/32"
[ctrl-d]
You need to specify a "command =" line with the command option
I've tried dozens of different variations and get similar results for all of them. I've read through the man page for serveradmin and the command line manual multiple times but obviously I'm missing something. Could someone clue me in to what the correct syntax is?
--
Dave Deitrich
deitrich@mac.com
Xserve G5 Mac OS X (10.3.9)