OS X 10.9.2, Server.app 3.0.3
So, Apple wants users to redirect (not forward!) mail to junkmail@ and notjunkmail@ to retrain the spam filter. I think that sucks --- this is not a reasonable way to do things in my opinion.
Anyway, the mechanism seems to be via the launch daemon configured at
/Applications/Server.app/Contents/ServerRoot/System/Library/LaunchDaemons/com.apple.salearn.plist
which, in turn, runs
/Applications/Server.app/Contents/ServerRoot/usr/libexec/spamassassin/sa_learn.pl
and outputs to /Library/Logs/Mail/junkmail.log
- Create an account with the username junkmail
- Create an account named notjunkmail too, otherwise the
sa_learn.pl
script to exit - Add
move-retrain.sh
to/usr/local/bin
- Add
ca.granitedragon.pre-salearn.plist
to/Library/LaunchDaemons
- Then do
launchctl load /Library/LaunchDaemons/ca.granitedragon.pre-salearn.plist
- Profit? (Check the log in the morning.)