OS X Server Admin

From Notes
Revision as of 11:39, 22 September 2014 by Dtaylor65 (talk | contribs) (Created page with "== Adaptive Firewall == <code>/Applications/Server.app/Contents/ServerRoot/System/Library/CoreServices/AdaptiveFirewall.bundle/Contents/MacOS/hb_summary</code><br> <code>afct...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

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/

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

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


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