Error Starting MS in Debug mode

MailScanner Mailbox mailscan at PRIS.CA
Mon Nov 17 17:39:06 GMT 2003


Hello Julian

Managed to get past the errors while running in debug mode (thank you).
However, I still have the same problem while trying to install the patch
files for MIME-tools-5.411

I downloaded MIME-tools from the link on your site as well as the 4
patches. Each patch installs ok except the first one. Is it possible that
the first patch has already been installed on the copy of MIME-tools-5.411
on your site?

The first line of the first patch file is :
diff -c -r MIME-tools-5.411-ORIG/lib/MIME/Field/ParamVal.pm
MIME-tools-5.411/lib/MIME/Field/ParamVal.pm

Which gives me the error:

smtp:/temp/mailscan# patch -p0 < mime-tools-patch.txt
  Looks like a new-style context diff.
  The next patch looks like a new-style context diff.
  I can't seem to find a patch in there anywhere.


When I take out the "-ORIG" from the directory name I get this error:

patch -p0 < mime-tools-patch.txt
  Looks like a new-style context diff.
Reversed (or previously applied) patch detected! Assume -R [yes] y
  The next patch looks like a new-style context diff.
Reversed (or previously applied) patch detected! Assume -R [yes] y
  I can't seem to find a patch in there anywhere.


Rick

On Sun, 16 Nov 2003, Julian Field wrote:

> Go back and check out the first security patch. The fact that it couldn't
> "seem to find a patch in there anywhere" means that something is badly
> wrong with the patch file. If it meant that the patch was already
> installed, it would have told you. Download it again and try very hard to
> apply it, it is important. You will leave nasty security holes open on your
> system if you do not successfully apply every bit of every patch. They are
> all there for a reason :-)
>
> The unix dgram problem you are seeing implies to me you are running on a
> new Solaris system, possibly with Perl 5.8.1 or 5.8.2. Look in
> /opt/MailScanner/lib/MailScanner/Log.pm and change 'unix' to 'stream'
> (somewhere around line 67 if I remember rightly). I have fixed this problem
> in the latest beta release, you shouldn't see it any more if using the
> latest code. If changing 'unix' to 'stream' doesn't solve the problem, just
> comment out the whole of that line, it's not vital on Solaris anyway.
>
> At 16:57 16/11/2003, you wrote:
> >Hello Julian
> >
> >Right you are, I headed back a directory and it appears as though all the
> >patches took except for the first one, maybe it was already installed.
> >
> >smtp:/temp# patch -p0 < mime-tools-patch.txt
> >   Looks like a new-style context diff.
> >   The next patch looks like a new-style context diff.
> >   I can't seem to find a patch in there anywhere.
> >smtp:/temp# patch -p0 < mime-tools-patch2.txt
> >   Looks like a unified context diff.
> >done
> >smtp:/temp# patch -p0 < mime-tools-patch3.txt
> >   Looks like a unified context diff.
> >done
> >smtp:/temp# patch -p0 < mime-tools-patch4.txt
> >   Looks like a unified context diff.
> >done
> >
> >So I am not getting the ToolUtils error any more, I am getting a new
> >error:
> >
> >/opt/MailScanner/bin/check_mailscanner
> >Starting MailScanner...
> >In Debugging mode, not forking...
> >unix dgram connect: Socket operation on non-socket at
> >/opt/MailScanner/lib/MailScanner/Log.pm line 132
> >no connection to syslog available at
> >/opt/MailScanner/lib/MailScanner/Log.pm line 132
> >
> >sorry for all these problems.
> >
> >Rick
> >
> >
> >On Sun, 16 Nov 2003, Julian Field wrote:
> >
> > > At 16:00 16/11/2003, you wrote:
> > > >I am running it exactly as Julian had posted a while back
> > > >
> > > >tar xzf MIME-tools-5.411.tar.gz
> > > >cd MIME-tools-5.411  <====== This is wrong. Shouldn't do that.
> > > >patch -p0 < mime-tools-patch.txt
> > > >patch -p0 < mime-tools-patch2.txt
> > > >patch -p0 < mime-tools-patch3.txt
> > > >patch -p0 < mime-tools-patch4.txt
> > > >cd MIME-tools-5.411
> > > >perl Makefile.PL
> > > >make
> > > >make test
> > > >make install
> > > >
> > > >Rick
> > > >
> > > >On Sun, 16 Nov 2003, Michele Neylon :: Blacknight Solutions wrote:
> > > >
> > > > > Are you running that command in the directory where you are
> > supposed to?
> > > > > Silly question possibly, but .. ...
> > > > >
> > > > > Mr. Michele Neylon
> > > > > Blacknight Internet Solutions Ltd
> > > > > http://www.blacknightsolutions.ie/
> > > > > http://www.search.ie/
> > > > > Tel. + 353 (0)59 9139897
> > > > >
> > > > > > -----Original Message-----
> > > > > > From: MailScanner mailing list [mailto:MAILSCANNER at JISCMAIL.AC.UK]On
> > > > > > Behalf Of MailScanner Mailbox
> > > > > > Sent: 16 November 2003 15:47
> > > > > > To: MAILSCANNER at JISCMAIL.AC.UK
> > > > > > Subject: Re: Error Starting MS in Debog mode
> > > > > >
> > > > > >
> > > > > > Hello
> > > > > >
> > > > > > Well it looks like I had MIME::Tools 6.200_02 installed.
> > > > > > I removed it and downloaded 5.411a as well as the patches.
> > > > > >
> > > > > > Now when installing the patches "patch -p0 <
> > mime-tools-patch.txt" I get
> > > > > > the prompt:
> > > > > >
> > > > > >   Looks like a new-style context diff.
> > > > > > File to patch:
> > > > > >
> > > > > > I have no idea which file should be patched.
> > > > > >
> > > > > > Sorry if this as been done to death
> > > > > >
> > > > > >
> > > > > > Rick
> > > > > >
> > > > > > On Sun, 16 Nov 2003, Julian Field wrote:
> > > > > >
> > > > > > > At 14:40 16/11/2003, you wrote:
> > > > > > > >Hello
> > > > > > > >
> > > > > > > >Yes Mime::Tools is installed.
> > > > > > > >
> > > > > > > >cpan> install MIME::Tools
> > > > > > > >MIME::Tools is up to date.
> > > > > > >
> > > > > > > In which case you have either
> > > > > > > (a) the wrong version
> > > > > > > or
> > > > > > > (b) a version without any of the necessary security patches.
> > > > > > Please install
> > > > > > > it as per the instructions on the MailScanner website, this
> > > > > > will apply some
> > > > > > > very important security patches.
> > > > > > >
> > > > > > > MailScanner itself certainly doesn't require MIME::ToolUtils,
> > it's not
> > > > > > > installed on my systems at all.
> > > > > > >
> > > > > > > >Also it is in the same path as all the other required modules,
> > > > > > I even went
> > > > > > > >as far as to try and create a link between MIME::ToolUtils and
> > > > > > MIME::Tools
> > > > > > > >
> > > > > > > >Rick
> > > > > > > >
> > > > > > > >On Sun, 16 Nov 2003, Julian Field wrote:
> > > > > > > >
> > > > > > > > > At 22:47 15/11/2003, you wrote:
> > > > > > > > > >Hello
> > > > > > > > > >
> > > > > > > > > >I have perl 5.8.1
> > > > > > > > > >MS 4.24-5
> > > > > > > > > >SA 2.60
> > > > > > > > > >
> > > > > > > > > >AFAIK I have all required modules installed, MS appears to
> > > > start ok
> > > > > > > > > >however nothing is written to the log files and the mail
> > > > > > in the queue is
> > > > > > > > > >un-touched. It does show that MailScanner is running:
> > > > > > > > > >
> > > > > > > > > >root   665     1  0 14:23:27 ?        0:00
> > /usr/lib/sendmail -bd
> > > > > > > > > >-ODeliveryMode=queueonly -OQueueDirectory=/var/spool/mqueue.in
> > > > > > > > >
> > > > > > > > > As it says, that is sendmail and not MailScanner itself.
> > > > > > > > >
> > > > > > > > > >When I try running MS in de-bugging mode I get the following
> > > > error:
> > > > > > > > > >
> > > > > > > > > >./check_mailscanner.solaris
> > > > > > > > > >Starting MailScanner...
> > > > > > > > > >In Debugging mode, not forking...
> > > > > > > > > >Can't locate object method "config" via package
> > > > > > "MIME::ToolUtils" at
> > > > > > > > > >/opt/MailScanner/bin/MailScanner line 571.
> > > > > > > > > >
> > > > > > > > > >I do not have a ToolUtils package and could not seem to
> > > > > > find one via cpan.
> > > > > > > > > >Or am I getting sidetracked away form the original problem
> > > > > > by going after
> > > > > > > > > >the debugging problem?
> > > > > > > > >
> > > > > > > > > In which case you have not installed MIME-tools. Please
> > > > > > read and follow the
> > > > > > > > > installation instructions on the web site
> > > > > > > > > http://www.sng.ecs.soton.ac.uk/mailscanner/install/other.shtml
> > > > > > > > >
> > > > > > > > > --
> > > > > > > > > Julian Field
> > > > > > > > > www.MailScanner.info
> > > > > > > > > Professional Support Services at www.MailScanner.biz
> > > > > > > > > MailScanner thanks transtec Computers for their support
> > > > > > > > > PGP footprint: EE81 D763 3DB0 0BFD E1DC  7222 11F6 5947
> > 1415 B654
> > > > > > > > >
> > > > > > >
> > > > > > > --
> > > > > > > Julian Field
> > > > > > > www.MailScanner.info
> > > > > > > Professional Support Services at www.MailScanner.biz
> > > > > > > MailScanner thanks transtec Computers for their support
> > > > > > > PGP footprint: EE81 D763 3DB0 0BFD E1DC  7222 11F6 5947 1415 B654
> > > > > > >
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > > > #########################################################
> > > > > This message (and any attachment) is intended only for the
> > > > > recipient and may contain confidential and/or privileged
> > > > > material.  If you have received this in error, please contact the
> > > > > sender and delete this message immediately.  Disclosure, copying
> > > > > or other action taken in respect of this email or in
> > > > > reliance to it is prohibited.
> > > > >
> > >
> > > --
> > > Julian Field
> > > www.MailScanner.info
> > > Professional Support Services at www.MailScanner.biz
> > > MailScanner thanks transtec Computers for their support
> > > PGP footprint: EE81 D763 3DB0 0BFD E1DC  7222 11F6 5947 1415 B654
> > >
>
> --
> Julian Field
> www.MailScanner.info
> Professional Support Services at www.MailScanner.biz
> MailScanner thanks transtec Computers for their support
> PGP footprint: EE81 D763 3DB0 0BFD E1DC  7222 11F6 5947 1415 B654
>



More information about the MailScanner mailing list