Every once in awhile Apple’s shitty Server 3 throws errors that prevent SpamAssassin from processing new spam. The error shows up when I run spam trainer. The error it throws looks like:
ERROR: Bayes dump returned an error, please re-run with -D for more information
bayes: cannot open bayes databases /Library/Server/Mail/Data/scanner/amavis/.spamassassin/bayes_* R/O: tie failed: Permission denied
Fix it by issuing these commands from Terminal:
sudo chown -R amavisd:amavisd /Library/Server/Mail/Data/scanner/amavis/.spamassassin/
sudo chmod u+rw /Library/Server/Mail/Data/scanner/amavis/.spamassassin/bayes_seen
sudo chmod u+rw /Library/Server/Mail/Data/scanner/amavis/.spamassassin/bayes_toks
OS X Mavericks 10.9 Server 3 ships with SpamAssassin, but there are almost no controls available to admins (shame on you, Apple). Of course, a well-trained Bayes spam filter will cut down on annoying spam messages.
Thanks to the good folks at topicdesk.com, it’s super easy to set up the server for training the onboard SpamAssassin bayesian spam filter.
Mac OS X 10.9 ‘Mavericks’ has some DNS changes under the hood. Unlike previous versions, to effectively clear the cache you need to execute these two commands in Terminal:
dscacheutil -flushcache;sudo killall -HUP mDNSResponder
My company uses Dropbox extensively for sharing project files. It truly is an enhancement to our workflow. But, we don’t like the privacy concerns of hosting our contracts and other confidential information in their cloud, nor do we like the cost. We like everything else.
OwnCloud is an open source alternative to Dropbox, and provides the same features.
I decided to install it on our Mac mini server to give it a trial run. Here’s how I did it:
You can easily install the intl international support extension to PHP 5.4 on Mac OS X 10.9 Mavericks Server. Here’s how:
You can easily install the mcrypt extension to PHP 5.4 on Mac OS X 10.9 Mavericks Server. Here’s how:
You can easily install the PHP SSH2 extension to PHP 5.4 on Mac OS X 10.9 Mavericks Server to support the CDN features of SocialEngine 4. Here’s how:
Dramatically speed speed up sites hosted using Mac OS X 10.9 Mavericks Server (like SocialEngine, Drupal, WordPress, or other PHP/MySQL web site) by adding APC and Memcache.
Here’s how to install APC and memcache on Mac OS X Mavericks server, which runs PHP 5.4:
Because Mavericks server uses PHP 5.4, any extensions you may have compiled for previous versions of Mac OS X (such as memcache, apc, mcrypt) need to be recompiled and reinstalled.
This post assumes you used MacPorts to compile and install the PHP extensions in question. Here’s how to accomplish the task: