[Mimedefang] Solaris And Syslog issues.

Don ldaperror at yahoo.com
Sun Feb 22 17:56:40 EST 2004



Thought I would post this update as someone else may
be having this problem :) too.

Even after using "md-mx-ctrl reread", the problem
would still persist.
The problem being that after the slaves were stopped
and respawned by the multiplexor to reread the filter
rules, the slaves could not log messages to syslog
(aka the syslog messages with the tag
"mimedefang.pl").

This was not only an issue with the reread of filter
rules  but also with the normal flow of the
multiplexor of retiring slaves that have processed the
desired number of requests and then a new slave being
spawned to meet the minSlaves value. These new slaves
also would not log the messages via syslog. Basically
I tested this over a few generations of slaves on a
test box and dropped the "number of requests" to small
and number of slaves to be small. About to check how
if this works as expected on a not so busy server.

After pounding my head against my desk (poor desk :)),
I think I have found my work around to still using the
Unix::Syslog module.

My change in the "md_openlog function" was to add the
LOG_NDELAY optioned "ored" to the LOG_PID.
Mimedefang.pl on my box (solaris 8 (see below)) has
that line as:

   openlog($tag, LOG_PID | LOG_NDELAY, $num_fac);

(Note this is only for the "Unix::Syslog" piece)

This forces the connection to the syslog facility to
be immediate as opposed to when the first logging
attempt is made. 


My setup (at least some relevant pieces)
- Solaris 8 (syslog running with -t option)
- MIMEDefang version 2.39
- perl 5.8.2
- Clamav
- Spamassassion
- Unix::Syslog (Version 0.100)



Thanks for the inputs.
And also thanks for making a good product like this
available :)..

--Don

--- Don <ldaperror at yahoo.com> wrote:
> Thanks..I will use the right tools.
> I was using a modified version of the
> redhat/mimedefang-init.
> 
> Cheers
> --Don
> 
> --- Lucas Albers <admin at cs.montana.edu> wrote:
> > I saw a problem with mimedefang 2.38 and sendmail
> > 8.12.3 on debian 3.0.
> > 
> > The milter pukes out if you stop mimedefang and
> > restart it it without a 3
> > second delay.
> > If you add in the delay, everything works peachy.
> > 
> > Josh Kelley said:
> > > David F. Skoll wrote:
> > >
> > >>However, sending INT to the multiplexor to
> reread
> > the filter is
> > >>deprecated.  Instead, you should use:
> > >>
> > >>	md-mx-ctrl reread
> > >>
> > >>
> > > The Red Hat init script in
> redhat/mimedefang-init
> > still uses kill -INT
> > > and so should probably be updated.

__________________________________
Do you Yahoo!?
Yahoo! Mail SpamGuard - Read only the mail you want.
http://antispam.yahoo.com/tools



More information about the MIMEDefang mailing list