Update sync_site.yml
[m6w6/m6w6.github.io] / _posts / 2008-11-18-qmail-spamassassin-selectivity.md
1 ---
2 title: Qmail + SpamAssassin + selectivity
3 author: m6w6
4 tags:
5 - SYS
6 ---
7
8 Here's how my qmail-queue script looks like to selectively check messages with
9 SpamAssassin for non-relay clients only:
10
11 ```sh
12 #!/bin/sh
13 (if [ -n "${RELAYCLIENT+1}" -o `id -u` != 64011 ];
14 then cat -;
15 else /usr/bin/spamc -x -U /var/run/spamd/spamd.sock;
16 fi) | /usr/sbin/qmail-queue.orig
17 ```
18
19 For the records.