[milters] Archive

Lists Index Date Thread Search

Article: 896
From: Stephen Diercouff
Date: 2006-04-28 13:28:25 -0400
Subject: milter-length does not reject messages

Removal...........: milters-request@milter.info?subject=remove
More information..: http://www.milter.info/#Support
--------------------------------------------------------

Hello. I recently installed milter-length (the most recent version on  
snert.com) on a system running Freebsd 6.0/sendmail-8.13.6.
I'm having a problem identical to one I saw described in some posts  
from last month but I did not see resolution to the problem.

For testing, this is my complete /etc/mail/access:
milter-length-from:     1024

The milter seems to run fine but does not reject the message when the  
size is exceeded.
Relevant bits from /var/log/debug.log (addresses,hostnames masked):

Apr 27 17:15:07 my-mail-server milter-length[12692]: checking "/etc/ 
mail/access.
db" for "milter-length-from:"
Apr 27 17:15:07 my-mail-server milter-length[12692]: access DB  
key="milter-lengt
h-from:" value="1024"
Apr 27 17:15:07 my-mail-server milter-length[12692]: 00007  
k3RMF7YM012757: enter
smfAccessPattern(806c800, user@domain.com, 1024, bf6fbea0)
Apr 27 17:15:07 my-mail-server milter-length[12692]: 00007  
k3RMF7YM012757: pin='
1024' next=''
Apr 27 17:15:07 my-mail-server milter-length[12692]: 00007  
k3RMF7YM012757: "user
@domain.com" default action 1024
Apr 27 17:15:07 my-mail-server milter-length[12692]: 00007  
k3RMF7YM012757: exit
smfAccessPattern(806c800, user@domain.com, 1024, bf6fbea0) rc=63  
action='1024'
Apr 27 17:15:07 my-mail-server milter-length[12692]: 00007  
k3RMF7YM012757: getMs
gSizeLimit(806c800, 1024) size=1024
...
Apr 27 17:15:19 my-mail-server milter-length[12692]: 00007  
k3RMF7YM012757: filte
rBody(8060c00, '^M --Apple-Mail-3-365...', 65535) tally=65535
Apr 27 17:15:19 my-mail-server milter-length[12692]: 00007  
k3RMF7YM012757: filte
rBody(8060c00, 'FSTaSVeLL8WlUVhBFY^M ...', 65535) tally=131070
...
Apr 27 17:15:19 my-mail-server milter-length[12692]: 00007  
k3RMF7YM012757: filte
rEndMessage(8060c00)
Apr 27 17:15:19 my-mail-server milter-length[12692]: 00007 NOQUEUE:  
filterClose(
8060c00)

This all looks as though it should work but the big message gets  
delivered anyway.

My .mc file looks like this:
dnl MILTERS

define(`_FFR_MILTER', `1')dnl
dnl  
-----------------------------------------------------------------------
dnl Enable this for debug output from Sendmail
define(`confLOG_LEVEL', `22')dnl

INPUT_MAIL_FILTER(
         `milter-length',
         `S=unix:/usr/local/var/run/milter/milter-length.socket,
         T=C:5m;S:1m;R:1m;E:5m,
         F=T'
)dnl


Any ideas?

--Stephen


Lists Index Date Thread Search