[Mimedefang] spamassassin error messages
Craig Green
cgreen at sentex.net
Thu May 12 14:43:07 EDT 2005
Lisa Casey wrote:
> Hi,
>
> I added define(`confINPUT_MAIL_FILTERS', `mimedefang')dnl to sendmail.mc,
> regenerated and installed the cf, then restarted sendmail and
> mimedefang.
> Now mimedefang is trying to scan messages (which it wasn't before)
> but is
> going into an error state:
>
> May 12 12:57:12 radius sm-mta[68449]: j4CGvC6p068449: Milter
> (mimedefang):
> to error state
> May 12 12:57:12 radius sm-mta[68450]: j4CGvCAo068450: Milter
> (mimedefang):
> to er ror state
>
Yes, but what's causing the error state? Grep for the queue IDs to see
the rest of the log lines associated with those emails. E.g., using an
ID above:
grep j4CGvC6p068449 /var/log/maillog
You should see something like this:
May 12 13:03:26 pumice3 sm-mta[62824]: j4CH3Ql5062824: Milter
(mimedefang): local socket name /var/spool/MIMEDefang/mimedefang.sock unsafe
May 12 13:03:26 pumice3 sm-mta[62824]: j4CH3Ql5062824: Milter
(mimedefang): to error state
or
May 12 13:04:58 pumice3 sm-mta[58357]: j4CH1d0P058357: Milter
(mimedefang): write(Q) returned -1, expected 5: Broken pipe
May 12 13:04:58 pumice3 sm-mta[58357]: j4CH1d0P058357: Milter
(mimedefang): to error state
The first lines tell you what caused the error state.
I'd guess it's a socket problem. What user are you running Sendmail as
and what user are you running MD as? On (recent) FreeBSD boxes, the
answer to both should be 'mailnull'. (If you installed MD from ports,
didn't override MAILUSER in the port Makefile, and didn't modify
/usr/local/etc/rc.d/mimedefang.sh, then MD is certainly running as
mailnull.)
Also, what are the permissions of /var/spool/MIMEDefang like? I.e. the
output of:
cgreen:pumice3:/usr/local/etc/rc.d# ls -la /var/spool/MIMEDefang/
total 10
drwx--x--- 3 mailnull wheel 512 May 12 14:06 ./
drwxr-xr-x 10 root wheel 512 Jan 12 12:00 ../
-rw-r----- 1 mailnull wheel 6 May 12 13:03
mimedefang-multiplexor.pid
srw------- 1 mailnull wheel 0 May 12 13:03
mimedefang-multiplexor.sock=
-rw-r----- 1 mailnull wheel 6 May 12 13:03 mimedefang.pid
srwxr-x--- 1 mailnull wheel 0 May 12 13:03 mimedefang.sock=
Regards,
Craig.
------
> And these are the only messages in maillog regarding mimedefang.
>
>
> Any ideas??
>
> Lisa
>
>
>
More information about the MIMEDefang
mailing list