OS X Server Admin

From Notes
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

Adaptive Firewall

/Applications/Server.app/Contents/ServerRoot/System/Library/CoreServices/AdaptiveFirewall.bundle/Contents/MacOS/hb_summary
afctl

https://discussions.apple.com/thread/6487946
http://krypted.com/mac-security/manage-the-adaptive-firewall-in-mavericks-server/
http://support.apple.com/kb/HT200259

Mail Server

View:
sudo serveradmin settings mail

View:
sudo serveradmin settings mail:postfix:message_size_limit
Set:
sudo serveradmin settings mail:postfix:message_size_limit = 18874368
http://support.apple.com/kb/HT5627

View Mail Queue:
postqueue -p

Cleanup / Reindex Dovecot indexes
ls -al /Volumes/Promise\ RAID/Library/Server/Mail/Data/mail/E549D2BF-180C-4D7B-BF13-2E94B0220F90/.*/dovecot*
ls -al /Volumes/Promise\ RAID/Library/Server/Mail/Data/mail/E549D2BF-180C-4D7B-BF13-2E94B0220F90/dovecot*

Stop Mail Server
rm /Volumes/Promise\ RAID/Library/Server/Mail/Data/mail/E549D2BF-180C-4D7B-BF13-2E94B0220F90/dovecot*
rm /Volumes/Promise\ RAID/Library/Server/Mail/Data/mail/E549D2BF-180C-4D7B-BF13-2E94B0220F90/.*/dovecot*
Start Mail Server

http://help.directadmin.com/item.php?id=473

Misc:
https://www.yesdevnull.net/2013/10/os-x-mavericks-server-setting-up-mail/
https://discussions.apple.com/thread/5545402?start=0&tstart=0

Calendar/iCal Server

Tweak / Modify Access settings to view Location Calendars
sudo calendarserver_manage_principals --list-principals locations
sudo calendarserver_manage_principals --list-principal locations

sudo calendarserver_manage_principals --add-read-proxy groups:workgroup locations:289CCAAC-88E3-48E3-89FD-4567A466AA91

Directory Service command line

https://discussions.apple.com/thread/4029413?start=0&tstart=0

dscl /LDAPv3/127.0.0.1 -list /Users GeneratedUID
dscl /LDAPv3/127.0.0.1 -readall /Users
dscl /LDAPv3/127.0.0.1 -readall /Computers RecordName macAddress

Messages / Jabber

sudo serveradmin fullstatus jabber

Get User List
sudo sqlite3 /var/jabberd/sqlite/jabberd2.db "select * from active" sudo sqlite3 {Service Data Alternate Location }/sqlite/jabberd2.db "select * from active" sudo sqlite3 /Volumes/Promise\ RAID/Library/Server/Messages/Data/sqlite/jabberd2.db "select * from active"

Delete
sudo jabber_autobuddy -d [email protected]

<cdoe>sudo serveradmin settings jabber:enableAutoBuddy = yes* jabber_autobuddy -i [email protected] sudo serveradmin settings jabber:enableAutoBuddy = no*>

sudo serveradmin stop jabber sudo serveradmin start jabber

This will do the same thing but the above command is better.

  • server:~ ladmin$ sudo /usr/bin/jabber_autobuddy -m*

This will automatically add users to your buddy list but not necessarily "authorise" them (to be able to see availability status). I've read a suggestion it is better to leave enableAutoBudy = 'no' and let people add others manually to their buddy list. I haven't decided which is better.


https://discussions.apple.com/thread/2720379


Time / Misc Errors in Logs

https://discussions.apple.com/thread/5084848

Ok, after digging a bit, I've found what cause this warning: the DOT @ the end of the NTP server name...

in /System/Library/Sandbox/Profiles/system.sb

sudo nano /System/Library/Sandbox/Profiles/system.sb

Allow access to standard special files.

(allow file-read*

      (literal "/dev/autofs_nowait")
      (literal "/dev/random")
      (literal "/dev/urandom")
      (literal "/private/etc/master.passwd")
      (literal "/private/etc/passwd")

-> (literal "/private/var/run/resolv.conf"))


postmaster@

edit /var/root/.forward

https://discussions.apple.com/thread/5545402?start=15&tstart=0

	vs

http://blog.gmane.org/gmane.comp.macosx.admin/page=118




== UnZipping Password Protected Zips ==

cd / ( location of zip )

unzip -j filename.zip


MCX / Folder Redirection

http://houseofmac.wordpress.com/2010/11/03/os-x-network-home-folder-redirection/


Misc

mount_url ERROR: AFP_OpenSession - CreateSVEFromURL failed -5997 https://discussions.apple.com/thread/1747144?tstart=0 http://support.apple.com/kb/HT200121?viewlocale=en_US