[Mimedefang] Sendmail, MIMEDefang, ClamAV, and SpamAssassin

Eric Murray E.murray at sasktel.net
Wed Aug 18 20:46:32 EDT 2004


Lucas Albers wrote:

>This is on debian?
>You should have a 3-5 second delay from sendmail starting, pausing,
>then starting mimedefang.
>If mimedefang restarts it should have a 3 second delay on the restart.
>These are the defaults on debian.
>I annoy debian maintainer on a regular basis...
>
>Try putting in a delay between sendmail/mimedefang start.
>Do 10 seconds just to be sure.
>Manually start with the delay.
>What version of sendmail are you using again?
>
>--Luke
>
>Richard A Nelson said:
>  
>
Hi Lucas,

This is on SuSE 9.1 here is the software versions again
SuSE 9.1
sendmail-8.12.10-158
spamassassin-2.63-32
MIMEDefang-2.44
ClamAV-0.75.1

Also, I added some changes to my startup portion in the 
/etc/init.d/sendmail file... Here is were i'm at now... (Basically the 
same but confermed a few more items...)

Here is what my log shows with your sendmail.mc statement as this : (ALL 
ONE LINE) Correct?
INPUT_MAIL_FILTER(`mimedefang', 
`S=unix:/var/spool/MIMEDefang/mimedefang.sock, F=T, 
T=C:5m;S:5m;R:5m;E:5m')dnl

So I added this to my /etc/init.d/sendmail file on the start and stop so 
it looks like this :

. /etc/rc.status
rc_reset
case "$1" in
   start)
*        /etc/init.d/mimedefang start                  <--- is this right
       sleep 15                                                 <---- 
New statement added to delay startup*
       echo -n "Initializing SMTP port (sendmail)"
       startproc    -p $srvpid /usr/sbin/sendmail $SENDMAIL_ARGS
       rc_status
       startproc -f -p $msppid /usr/sbin/sendmail $SENDMAIL_CLIENT_ARGS
       rc_status -v
       ;;
   stop)
       echo -n "Shutting down SMTP port"
       killproc -p $msppid -TERM /usr/sbin/sendmail
       rc_status
       killproc -p $srvpid -TERM /usr/sbin/sendmail
       rc_status -v
*       /etc/init.d/mimedefang stop                      <--- correct to 
stop?
       sleep 10                                                       
<---- sleep for some time...*
       ;;
   try-restart)
       $0 stop && $0 start
       rc_status
       ;;
   restart)
       $0 stop
       $0 start
       rc_status
       ;;

The NOTE statements I put there are not in the file of course...

Restart Sendmail and this is now my log... Make sense?  I do feel closer 
though... Probley permissions right?

Aug 18 17:56:06 emurray mimedefang-multiplexor[11942]: started; 
minSlaves=2, maxSlaves=10, maxRequests=500, maxIdleTime=300, 
busyTimeout=600, clientTimeout=10
Aug 18 17:56:06 emurray mimedefang-multiplexor[11942]: Starting slave 0 
(pid 11943) (1 running): Bringing slaves up to minSlaves (2)
Aug 18 17:56:06 emurray mimedefang[11955]: Multiplexor alive - entering 
main loop
Aug 18 17:56:09 emurray mimedefang-multiplexor[11942]: Starting slave 1 
(pid 11957) (2 running): Bringing slaves up to minSlaves (2)
Aug 18 17:56:21 emurray sendmail[11960]: starting daemon (8.12.10): 
SMTP+queueing at 00:30:00
Aug 18 17:56:21 emurray sendmail-client[11964]: starting daemon 
(8.12.10): persistent-queueing at 00:30:00
Aug 18 17:56:21 emurray mimedefang[11955]: MIMEDefang-2.44: 
st_optionneg[1079536560]: 0x1f does not fulfill action requirements 0x3f
Aug 18 17:56:21 emurray sendmail[11966]: i7INuLXd011966: 
milter_read(mimedefang): cmd read returned 0, expecting 5
Aug 18 17:56:21 emurray sendmail[11966]: i7INuLXd011966: Milter 
(mimedefang): to error state
Aug 18 17:56:21 emurray sendmail[11966]: i7INuLXd011966: Milter 
(mimedefang): init failed to open
Aug 18 17:56:21 emurray sendmail[11966]: i7INuLXd011966: Milter 
(mimedefang): to error state
Aug 18 17:56:21 emurray sendmail[11966]: i7INuLXd011966: Milter: 
initialization failed, temp failing commands
Aug 18 17:56:21 emurray sendmail-client[11965]: i7INSVsx011133: 
to=emurray, ctladdr=root (0/0), delay=00:27:50, xdelay=00:00:00, 
mailer=relay, pri=480260, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, 
stat=Deferred: 451 4.7.1 Please try again later
Aug 18 17:56:21 emurray sendmail-client[11965]: i7INSVsx011133: queueup: 
cannot create ./tfi7INSVsx011133, uid=8: File exists

Permisson's on my files are like this :
It creates the sock files as defang:users but it is owned by defang:defang

emurray:/var/spool/MIMEDefang # dir
total 8
drwx------   2 defang defang 208 2004-08-18 17:56 .
drwxr-xr-x  16 root   root   432 2004-08-18 16:19 ..
-rw-r-----   1 defang users    6 2004-08-18 17:56 
mimedefang-multiplexor.pid
srw-------   1 defang users    0 2004-08-18 17:56 
mimedefang-multiplexor.sock
-rw-r-----   1 defang users    6 2004-08-18 17:56 mimedefang.pid
srwxr-x---   1 defang users    0 2004-08-18 17:56 mimedefang.sock
emurray:/var/spool/MIMEDefang #

Hope that helps make sense what it's doing I would really like to use 
it! {smile}
Eric



More information about the MIMEDefang mailing list