[Mimedefang] problem with file include on mimedefang 2.28
John McFarlane
jmcfarlane at clippard.com
Thu Jan 9 17:14:00 EST 2003
Hello all :)
I installed mimedefang 2.26 on freebsd from the ports and it runs great. I
bought my production server and installed 2.28. When I start mimedefang
this gets posted to the maillog:
----->
Jan 10 00:42:08 mail mimedefang-multiplexor: Starting slave 0 (pid 55373)
(1 running): Bringing slaves up to minSlaves (2)
Jan 10 00:42:08 mail mimedefang-multiplexor: Slave 0 stderr: Can't locate
/usr/local/etc/mimedefang/mimedefang-filter in @INC (@INC contains: lib
/usr/local/lib/perl5/site_perl/5.005/i386-freebsd
/usr/local/lib/perl5/site_perl/5.005 . /usr/libdata/perl/5.00503/mach
/usr/libdata/perl/5.00503) at /usr/local/bin/mimedefang.pl line 3129.
Jan 10 00:42:08 mail mimedefang-multiplexor: Reap: Idle slave 0 (pid 55373)
exited normally with status 13 (SLAVE DIED UNEXPECTEDLY)
Jan 10 00:42:11 mail mimedefang-multiplexor: Starting slave 0 (pid 55388)
(1 running): Bringing slaves up to minSlaves (2)
Jan 10 00:42:11 mail mimedefang-multiplexor: Received SIGTERM: Killing
slaves and terminating
-----><
line 3131 is this:
require $Filter;
In order to fix the problem, I added this after line 3124 (the only change
I have made to the file)
push(@INC,$Filter);
where $Filter = the path to the config file (it's been correctly pathed
the entire time
now the small chuck of the file reads:
--->
3124 # Load the filter UPDATE: following line added by jmcfarlane
3125 push(@INC,$Filter);
3126 init_globals();
3127 if (! -r $Filter) {
3128 md_syslog('err', "Cannot read filter $Filter: Check
permissions. mimedefang.pl will not work.");
3129 }
3130 require $Filter;
--->
after adding that line, the error is now:
----->
Jan 10 00:31:01 mail mimedefang-multiplexor: Starting slave 0 (pid 55276)
(1 running): Bringing slaves up to minSlaves (2)
Jan 10 00:31:01 mail mimedefang-multiplexor: Slave 0 stderr: Can't locate
/usr/local/etc/mimedefang/mimedefang-filter in @INC (@INC contains: lib
/usr/local/lib/perl5/site_perl/5.005/i386-freebsd
/usr/local/lib/perl5/site_perl/5.005 . /usr/libdata/perl/5.00503/mach
/usr/libdata/perl/5.00503 /usr/local/etc/mimedefang/mimedefang-filter) at
/usr/local/bin/mimedefang.pl line 3131.
Jan 10 00:31:01 mail mimedefang-multiplexor: Reap: Idle slave 0 (pid 55276)
exited normally with status 13 (SLAVE DIED UNEXPECTEDLY)
Jan 10 00:31:02 mail mimedefang-multiplexor: Received SIGTERM: Killing
slaves and terminating
----->
so it looks like the config file is now in the @INC array, though it's
still complaining that it can't find it. Any help would be appreciated.
ps: this is freebsd 4.7 release and the mimedefang2.8 port (after
successful cvsup)
John McFarlane
http://thinkflat.com
More information about the MIMEDefang
mailing list