[Mimedefang] Spamassassin and MimeDefang custom rules

Jon Rowlan jon.rowlan at sads.com
Sat Oct 18 02:31:32 EDT 2008


On Wed, 15 Oct 2008, Paul Murphy wrote:

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

I am not sure that I know how to "become" my filter user, I presume that
its

su - defang

although any file I create is created with root ownership so I suspect
that I am not quite getting it right.

However, I ran this after I had become defang as suggested and used -D
instead of -d

This worked fine and identified that the message was indeed flagged by
local rule and identified the rule and everything fine.

However following Steffen's instructions ...

> 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.

I get no output at all which harks back to a problem that I had a while
back with my local rule. At the time I was setting my "BAD_TEST" rule as
a score of 5 and I realised that other negative rules were bringing my
overall score back down to less than 5 and as my spam threshold was set
to 5 SA was not flagging as spam. In effect I thought I had resolved the
problem but I hadn't.

Is this a file permissions issue perhaps? The above line of Steffan's
just returns to the prompt silently whereas if run as root is fine.

If so which permissions should I be looking for?

Thanks all,

jON








More information about the MIMEDefang mailing list