[Mimedefang] Spamassassin and MimeDefang custom rules

Steffen Kaiser skmimedefang at smail.inf.fh-bonn-rhein-sieg.de
Wed Oct 15 10:33:59 EDT 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Wed, 15 Oct 2008, Paul Murphy wrote:

> spamassassin -p /etc/mail/sa-mimedefang.cf -t -d < INPUTMSG

Because MIMEDefang runs under the "defang" user, you should also:

su defang -c 'spamassassin -p /etc/mail/sa-mimedefang.cf -t -d' < INPUTMSG

because sometimes one is hit by permission problems. I add option -x (nocreate-prefs), too.

BTW: Did you mean -D (debug) instead of -d (remove markup)?

> The key part is on line 64 - sa-mimedefang.cf is read as a user preferences file, so it is not parsed for rulesets.
>
> Add your rules to /etc/spamassassin/local.cf instead.

or any other .cf file in the site-wide config dir. I have created a file 
for my own rules to easily differ it from files of the package itself.

Bye,

- -- 
Steffen Kaiser
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFI9f9Z5ThHZhj8SBwRAkMJAJ0eXmZgFdaXwbAW/i59x3fb+jw7hACfdaej
6396hYoYyWG0SjkTvmHMQQM=
=7dNT
-----END PGP SIGNATURE-----



More information about the MIMEDefang mailing list