[Mimedefang] setlogsock error

Daniel Zachary dan_zachary at sil.org
Tue Feb 22 16:39:07 EST 2005


The new mimedefang.pl has this line (line 92).

use Unix::Syslog qw(:macros :subs); $Features{"Unix::Syslog"} = 1;

When I changed this to:

use Sys::Syslog qw(:DEFAULT setlogsock);  # default set, plus setlogsock

My problem went away. 

Dan Zachary


Daniel Zachary wrote:
> When I upgraded to mimedefang 2.51 I began encountering the following 
> error:
>
> Feb 18 14:23:17 ma2 mimedefang-multiplexor[30721]: Slave 1 stderr: 
> Undefined subroutine &main::setlogsock called at 
> /etc/mail/mimedefang-filter line 251.
>
> This line is:
>
>               # Log all information so we have a trail.
>               setlogsock('unix');
>               openlog( "mimedefang-filter", "pid", "local2" );
>               syslog( 'err', "Sender: $Sender, Subject: $Subject" );
>
> This line has been in the mimedefang-filter for some time. Looks like 
> the Sys::syslog module can't be found?
>
> Yet during the ./compile stage, there are comments that indicate that 
> setlogsock is found and working.
>
> I can comment out the setlogsock line and then logging entries come to 
> the console instead of the log file.
>
> Any ideas what we broke?
>
> Dan Zachary
>
>
>
>
> _______________________________________________
> Visit http://www.mimedefang.org and http://www.canit.ca
> MIMEDefang mailing list
> MIMEDefang at lists.roaringpenguin.com
> http://lists.roaringpenguin.com/mailman/listinfo/mimedefang




More information about the MIMEDefang mailing list