Modifying mail:postfix:mynetworks with serveradmin
Hello,
I'm trying to open the relaying without SMTP authentification on my server (10.8.2) for another computer (IP based authentification)
I googled a lot, and I found a lot examples, but when I do the command I get always an error.
After reading http://developer.apple.com/library/mac/#documentation/Darwin/Reference/ManPages/ man8/serveradmin.8.html
I tough I had to to this command
sudo serveradmin settings mail:postfix:mynetworks = create
But I get this:
2012-11-22 14:45:10.041 serveradmin[57534:a07] -[__NSCFString count]: unrecognized selector sent to instance 0x7f8d51003910
2012-11-22 14:45:10.042 serveradmin[57534:a07] Exception in doCommand for module servermgr_mail on thread 0x7f8d5040c510: -[__NSCFString count]: unrecognized selector sent to instance 0x7f8d51003910
2012-11-22 14:45:10.042 serveradmin[57534:a07] --request was {
command = writeSettings;
configuration = {
postfix = {
mynetworks = create;
};
};
}
The I made a lot of try:
FIRST TRY
Found here http://unflyingobject.com/blog/posts/707 :
cat - | sudo serveradmin settings
mail:postfix:mynetworks = "127.0.0.0/8"
mail:postfix:mynetworks = "193.4x.xxx.xxx"
ctrl-d
I get this error:
012-11-22 14:29:15.259 serveradmin[57105:707] -[__NSCFString count]: unrecognized selector sent to instance 0x7ff9c18034e0
2012-11-22 14:29:15.260 serveradmin[57105:707] Exception in doCommand for module servermgr_mail on thread 0x7ff9c0c0c4a0: -[__NSCFString count]: unrecognized selector sent to instance 0x7ff9c18034e0
2012-11-22 14:29:15.260 serveradmin[57105:707] --request was {
command = writeSettings;
configuration = {
postfix = {
mynetworks = "193.4x.xxx.xxx";
};
};
}
SECOND TRY
sudo serveradmin settings mail:postfix:mynetworks = "193.4x.xxx.xxx"
I get the same error message (except the thread ID)
THIRD TRY
sudo serveradmin settings mail:postfix:mynetworks:_array_index = "193.4x.xxx.xxx"
I get this:
Can't have _array_id or _array_index as the last element of a key
for key: "mail:postfix:mynetworks:_array_index"
FOURTH TRY
sudo serveradmin settings mail:postfix:mynetworks:1 = "193.4x.xxx.xxx"
2012-11-22 14:42:03.321 serveradmin[57493:a07] servermgr_mail: postconf write error: /usr/sbin/postconf: fatal: -e or -# accepts no multi-line input
mail:postfix:mynetworks = _empty_array
SIXTH TRY
Found this https://discussions.apple.com/thread/308775
But in my cases I did not works ...
I made a lot of others combination withiut any success ... I'm lost ;-(
Any help, would be greatlty appreciated !
Gregory
Mac mini Server (Mid 2011), OS X Server, Server 10.8.2