Tech tips & other words

Tag: Mavericks

Fix SpamAssassin Error on Mavericks Server 3

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

Clear the DNS cache on Mac OS

So you want to clear the DNS cache on Mac OS X Mavericks through the now-current Mac OS 26? Well, Mac OS  since ‘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

Add this as an alias to your .profile under something easy to remember like ‘flushdns’ and you’re good to go!

Now you know how to clear the DNS cache on Mac OS.

Create a Dropbox clone on Mac OS X Mavericks using OwnCloud

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:

Continue reading