Exim Install

Martin Hepworth martinh at SOLID-STATE-LOGIC.COM
Mon Dec 5 09:09:37 GMT 2005


Steve

Aha - you're using slit queues...you need to enable that setting in the
MailScanner.conf..

--
Martin Hepworth 
Snr Systems Administrator
Solid State Logic
Tel: +44 (0)1865 842300

> -----Original Message-----
> From: MailScanner mailing list [mailto:MAILSCANNER at JISCMAIL.AC.UK] On
> Behalf Of Steve Evans
> Sent: 02 December 2005 18:26
> To: MAILSCANNER at JISCMAIL.AC.UK
> Subject: Re: [MAILSCANNER] Exim Install
> 
> I went through the instructions again, starting from scratch.  I've made
> some serious progress.  MailScanner is definantly processing some mail.  I
> show that I process some mail in the maillog.
> 
> However I keep getting these lines in the maillog
> 
> Dec  2 13:25:58 1n6-5 MailScanner[19651]: Could not open file
> >/var/spool/exim.out/input/i/1EiFai-0004f7-Sr-D: No such file or directory
> Dec  2 13:25:58 1n6-5 MailScanner[19651]: Cannot create + lock clean body
> /var/spool/exim.out/input/i/1EiFai-0004f7-Sr-D,
> 
> And it will be for the same file over and over again.
> 
> Here are the results of check_MailScanner though.
> 
> Starting MailScanner...
> In Debugging mode, not forking...
> Done the parse. Counter = 0 and max = 200
> format error: bad signature: 0x00905a4d at offset 0 in file
> /var/spool/MailScanner/incoming/32097/1Ehj5W-0001dj-A9/File-
> packed_dataInfo.exe
>  at /usr/lib/MailScanner/MailScanner/MessageBatch.pm line 443
> IO error: seeking to local header : Invalid argument
>  at /usr/lib/MailScanner/MailScanner/MessageBatch.pm line 443
> Done the parse. Counter = 0 and max = 200
> format error: can't find EOCD signature
>  at /usr/sbin/MailScanner line 599
> Done the parse. Counter = 0 and max = 200
> format error: can't find EOCD signature
>  at /usr/sbin/MailScanner line 599
> Done the parse. Counter = 0 and max = 200
> Done the parse. Counter = 0 and max = 200
> format error: bad signature: 0x00905a4d at offset 0 in file
> /var/spool/MailScanner/incoming/32097/1EhWT6-0002aZ-H3/File-
> packed_dataInfo.exe
>  at /usr/lib/MailScanner/MailScanner/MessageBatch.pm line 443
> IO error: seeking to local header : Invalid argument
>  at /usr/lib/MailScanner/MailScanner/MessageBatch.pm line 443
> Done the parse. Counter = 0 and max = 200
> Done the parse. Counter = 0 and max = 200
> Done the parse. Counter = 0 and max = 200
> format error: bad signature: 0x00905a4d at offset 0 in file
> /var/spool/MailScanner/incoming/32097/1EhGoQ-0005Hr-QC/File-
> packed_dataInfo.exe
>  at /usr/lib/MailScanner/MailScanner/MessageBatch.pm line 443
> IO error: seeking to local header : Invalid argument
>  at /usr/lib/MailScanner/MailScanner/MessageBatch.pm line 443
> Done the parse. Counter = 0 and max = 200
> format error: bad signature: 0x00905a4d at offset 0 in file
> /var/spool/MailScanner/incoming/32097/1EhbVW-0005E9-33/File-
> packed_dataInfo.exe
>  at /usr/lib/MailScanner/MailScanner/MessageBatch.pm line 443
> IO error: seeking to local header : Invalid argument
>  at /usr/lib/MailScanner/MailScanner/MessageBatch.pm line 443
> Done the parse. Counter = 0 and max = 200
> Done the parse. Counter = 0 and max = 200
> Done the parse. Counter = 0 and max = 200
> Done the parse. Counter = 0 and max = 200
> Done the parse. Counter = 0 and max = 200
> Done the parse. Counter = 0 and max = 200
> format error: bad signature: 0x00905a4d at offset 0 in file
> /var/spool/MailScanner/incoming/32097/1Ehqwg-0000F1-N0/File-
> packed_dataInfo.exe
>  at /usr/lib/MailScanner/MailScanner/MessageBatch.pm line 443
> IO error: seeking to local header : Invalid argument
>  at /usr/lib/MailScanner/MailScanner/MessageBatch.pm line 443
> Done the parse. Counter = 0 and max = 200
> Done the parse. Counter = 0 and max = 200
> format error: bad signature: 0x00905a4d at offset 0 in file
> /var/spool/MailScanner/incoming/32097/1EhrjH-0003vf-J8/File-
> packed_dataInfo.exe
>  at /usr/lib/MailScanner/MailScanner/MessageBatch.pm line 443
> IO error: seeking to local header : Invalid argument
>  at /usr/lib/MailScanner/MailScanner/MessageBatch.pm line 443
> Done the parse. Counter = 0 and max = 200
> format error: bad signature: 0x00905a4d at offset 0 in file
> /var/spool/MailScanner/incoming/32097/1EhJXv-0003mO-Np/File-
> packed_dataInfo.exe
>  at /usr/lib/MailScanner/MailScanner/MessageBatch.pm line 443
> IO error: seeking to local header : Invalid argument
>  at /usr/lib/MailScanner/MailScanner/MessageBatch.pm line 443
> Done the parse. Counter = 0 and max = 200
> Done the parse. Counter = 0 and max = 200
> Done the parse. Counter = 0 and max = 200
> Done the parse. Counter = 0 and max = 200
> format error: bad signature: 0x00905a4d at offset 0 in file
> /var/spool/MailScanner/incoming/32097/1EhYXr-0000G5-58/File-
> packed_dataInfo.exe
>  at /usr/lib/MailScanner/MailScanner/MessageBatch.pm line 443
> IO error: seeking to local header : Invalid argument
>  at /usr/lib/MailScanner/MailScanner/MessageBatch.pm line 443
> Done the parse. Counter = 0 and max = 200
> Done the parse. Counter = 0 and max = 200
> format error: bad signature: 0x00905a4d at offset 0 in file
> /var/spool/MailScanner/incoming/32097/1EhduZ-0003xD-UA/File-
> packed_dataInfo.exe
>  at /usr/lib/MailScanner/MailScanner/MessageBatch.pm line 443
> IO error: seeking to local header : Invalid argument
>  at /usr/lib/MailScanner/MailScanner/MessageBatch.pm line 443
> Done the parse. Counter = 0 and max = 200
> Done the parse. Counter = 0 and max = 200
> Done the parse. Counter = 0 and max = 200
> Done the parse. Counter = 0 and max = 200
> Done the parse. Counter = 0 and max = 200
> Done the parse. Counter = 0 and max = 200
> Cannot create + lock clean body /var/spool/exim.out/input/O/1Ehj7O-0007z2-
> HW-D,  at /usr/lib/MailScanner/MailScanner/EximDiskStore.pm line 370
> 
> 
> 
> 
> Steve Evans
> 805-756-7517
> 
> -----Original Message-----
> From: MailScanner mailing list [mailto:MAILSCANNER at JISCMAIL.AC.UK] On
> Behalf Of Martin Hepworth
> Sent: Friday, December 02, 2005 9:47 AM
> To: MAILSCANNER at JISCMAIL.AC.UK
> Subject: Re: Exim Install
> 
> Hmmm
> 
> When its in debug mode it should only go through one sequence and stop....
> most odd..
> 
> 
> 
> --
> Martin Hepworth
> Snr Systems Administrator
> Solid State Logic
> Tel: +44 (0)1865 842300
> 
> > -----Original Message-----
> > From: MailScanner mailing list [mailto:MAILSCANNER at JISCMAIL.AC.UK] On
> > Behalf Of Steve Evans
> > Sent: 02 December 2005 17:33
> > To: MAILSCANNER at JISCMAIL.AC.UK
> > Subject: Re: [MAILSCANNER] Exim Install
> >
> > 4.43
> >
> > If I take out the line queue_only = true from /etc/exim.conf I can
> > start MailScanner and it runs fine.  It just doesn't scan mail.  Mail
> > just gets delieverd like normal.  So I'm pretty sure I have everything
> > pointed to the right conf files.
> >
> > Also if I do a check_MailScanner I noticed that no exim process's ever
> > fire.  It gets stuck before that point.
> >
> > One of the steps from the wiki
> >
> (http://wiki.mailscanner.info/doku.php?id=documentation:configuration:mta:
> > exim:installation&s=exim+4) was to change the file /etc/init.d/exim
> >
> > I had trouble finding the line /usr/exim/bin/exim -bd -q15m, so I
> > moved the exim file, created a new one, and put in the two lines
> >
> > /usr/sbin/exim -bd
> > /usr/sbin/exim -q15m -C /etc/exim_scanned.conf
> >
> > Obviously there's no error checking or such, but it gets the job done
> > for now.  If I start my new exim service it runs fine.  I just have to
> > kill the process's manually.  I have attached the original
> > /etc/init.d/exim file.
> >
> > Steve Evans
> > 805-756-7517
> >
> > -----Original Message-----
> > From: MailScanner mailing list [mailto:MAILSCANNER at JISCMAIL.AC.UK] On
> > Behalf Of Martin Hepworth
> > Sent: Friday, December 02, 2005 9:19 AM
> > To: MAILSCANNER at JISCMAIL.AC.UK
> > Subject: Re: Exim Install
> >
> > Steve
> >
> > Well in your original email you had the config file as /etc/exim.conf
> > and /etc/exim_scanned.conf.
> >
> > What version of Exim are you using?
> >
> > --
> > Martin Hepworth
> > Snr Systems Administrator
> > Solid State Logic
> > Tel: +44 (0)1865 842300
> >
> > > -----Original Message-----
> > > From: MailScanner mailing list [mailto:MAILSCANNER at JISCMAIL.AC.UK]
> > > On Behalf Of Steve Evans
> > > Sent: 02 December 2005 17:09
> > > To: MAILSCANNER at JISCMAIL.AC.UK
> > > Subject: Re: [MAILSCANNER] Exim Install
> > >
> > > It is correct.
> > >
> > >
> > > Steve Evans
> > > 805-756-7517
> > >
> > > -----Original Message-----
> > > From: MailScanner mailing list [mailto:MAILSCANNER at JISCMAIL.AC.UK]
> > > On Behalf Of Martin Hepworth
> > > Sent: Friday, December 02, 2005 8:43 AM
> > > To: MAILSCANNER at JISCMAIL.AC.UK
> > > Subject: Re: Exim Install
> > >
> > > Steve
> > >
> > > Hmm silly line wrapping....
> > >
> > > Edit the /etc/sysconfig/MailScanner
> > >
> > > Make sure the EXIMINCF and EXIMSENDCF vars are set properly to point
> > > at the correct files...
> > >
> > > EXIMINCF=/etc/exim.conf
> > >
> > > EXIMSENDCF=/etc/exim_scanned.conf
> > >
> > > --
> > > Martin Hepworth
> > > Snr Systems Administrator
> > > Solid State Logic
> > > Tel: +44 (0)1865 842300
> > >
> > > > -----Original Message-----
> > > > From: MailScanner mailing list [mailto:MAILSCANNER at JISCMAIL.AC.UK]
> > > > On Behalf Of Steve Evans
> > > > Sent: 02 December 2005 16:33
> > > > To: MAILSCANNER at JISCMAIL.AC.UK
> > > > Subject: Re: [MAILSCANNER] Exim Install
> > > >
> > > > I'm sorry, what do you want me to try exactly?
> > > >
> > > >
> > > > Steve Evans
> > > > 805-756-7517
> > > >
> > > > -----Original Message-----
> > > > From: MailScanner mailing list [mailto:MAILSCANNER at JISCMAIL.AC.UK]
> > > > On Behalf Of Martin Hepworth
> > > > Sent: Friday, December 02, 2005 8:28 AM
> > > > To: MAILSCANNER at JISCMAIL.AC.UK
> > > > Subject: Re: Exim Install
> > > >
> > > > Steve
> > > >
> > > > Try
> > > >
> > > > Modified the file /etc/sysconfig/MailScanner EXIM=/usr/sbin/exim
> > > > EXIMINCF=/etc/exim.conf EXIMSENDCF=/etc/exim_scanned.conf
> > > >
> > > > --
> > > > Martin Hepworth
> > > > Snr Systems Administrator
> > > > Solid State Logic
> > > > Tel: +44 (0)1865 842300
> > > >
> > > > > -----Original Message-----
> > > > > From: MailScanner mailing list
> > > > > [mailto:MAILSCANNER at JISCMAIL.AC.UK]
> > > > > On Behalf Of Steve Evans
> > > > > Sent: 02 December 2005 16:23
> > > > > To: MAILSCANNER at JISCMAIL.AC.UK
> > > > > Subject: Re: [MAILSCANNER] Exim Install
> > > > >
> > > > > First it was telling me:
> > > > >
> > > > > In Debugging mode, not forking...
> > > > > Cannot create temporary Work Dir /22113. Are the permissions and
> > > > > ownership of  correct? at
> > > > > /usr/lib/MailScanner/MailScanner/WorkArea.pm
> > > > > line 152
> > > > >
> > > > > Then I changed the ownership of /var/spool/MailScanner to
> > > > > mailnull.mailnull (which is the user and group that exim runs
> > > > > as) and now when I run check_MailScanner it just sits there
> > > > > forever
> > with:
> > > > >
> > > > > Starting MailScanner...
> > > > > In Debugging mode, not forking...
> > > > >
> > > > > If I run top it lists MailScanner at the top of the list but
> > > > > it's consuming no to little CPU.
> > > > >
> > > > >
> > > > > Steve Evans
> > > > > 805-756-7517
> > > > >
> > > > > -----Original Message-----
> > > > > From: MailScanner mailing list
> > > > > [mailto:MAILSCANNER at JISCMAIL.AC.UK]
> > > > > On Behalf Of Martin Hepworth
> > > > > Sent: Friday, December 02, 2005 12:58 AM
> > > > > To: MAILSCANNER at JISCMAIL.AC.UK
> > > > > Subject: Re: Exim Install
> > > > >
> > > > > Steve
> > > > >
> > > > > Make sure there's something in the incoming spool
> > > > >
> > > > > Put MailScanner into debug mode (edit MailScanner.conf and
> > > > > change both debug values to yes).
> > > > >
> > > > > Stop MailScanner
> > > > >
> > > > > Run check_mailscanner
> > > > >
> > > > > This will dump a load of debug to the screen and you should be
> > > > > able to see whats happening (or not in your case)
> > > > >
> > > > > --
> > > > > Martin Hepworth
> > > > > Snr Systems Administrator
> > > > > Solid State Logic
> > > > > Tel: +44 (0)1865 842300
> > > > > > -----Original Message-----
> > > > > > From: MailScanner mailing list
> > > > > > [mailto:MAILSCANNER at JISCMAIL.AC.UK]
> > > > > > On Behalf Of Steve Evans
> > > > > > Sent: 01 December 2005 20:29
> > > > > > To: MAILSCANNER at JISCMAIL.AC.UK
> > > > > > Subject: [MAILSCANNER] Exim Install
> > > > > >
> > > > > > I'm trying to install MailScanner with exim for the first time.
> > > > > > Here is a list of the steps I have taken.
> > > > > >
> > > > > > Install MailScanner (no problems) Copied /etc/exim.conf to
> > > > > > /etc/exim_scanned.conf Added these lines to /etc/exim.conf
> > > > > >     spool_directory = /var/spool/exim_incoming
> > > > > >     queue_only = true
> > > > > >
> > > > > > Then down in the routers config section of /etc/exim.conf I
> added
> > > > > >     defer_router:
> > > > > >         driver = manualroute
> > > > > >         route_list = * 127.0.0.1 byname
> > > > > >         self = defer
> > > > > >         verify = false
> > > > > >
> > > > > > In MailScanner.conf I modified these lines
> > > > > >     Incoming Queue Dir = /var/spool/exim_incoming/input/
> > > > > >     Outgoing Queue Dir = /var/spool/exim/input/
> > > > > >     MTA = exim
> > > > > >     Sendmail = /usr/sbin/exim
> > > > > >     Sendmail2 = /usr/sbin/exim -C /etc/exim_scanned.conf
> > > > > >
> > > > > > Modified the file /etc/sysconfig/MailScanner
> > > > > >     EXIM=/usr/sbin/exim
> > > > > >     EXIMINCF=/etc/exim/exim.conf
> > > > > >     EXIMSENDCF=/etc/exim/exim_scanned.conf
> > > > > >
> > > > > > My two queue directories have the permissions of
> > > > > >     drwxr-x---   5 mailnull mail 4096 Jul 22  2004 exim/
> > > > > >     drwxr-x---   5 mailnull mail 4096 Nov 30 15:45
> exim_incoming/
> > > > > >
> > > > > >     (note:  I didn't touch the exim folder, just the
> > > > > > exim_incoming)
> > > > > >
> > > > > > Then I do a service exim stop and a service MailScanner start.
> > > > > >
> > > > > > The mail comes into /var/spool/exim_incoming but nothing
> > > > > > happens after that.  It just stacks up there.  If I stop
> > > > > > MailScanner, change back the exim.conf file, and start exim
> > > > > > mail flows as normal.  If I change the exim.conf file to only
> > > > > > specify a new spool directory everything works fine.  So I"m
> > > > > > pretty sure I have my queues set up
> > > > correctly.
> > > > > > Obviously though MailScanner doesn't scan the mail if I do that.
> > > > > >
> > > > > > Can someone tell me what I'm missing?
> > > > > >
> > > > > > Steve Evans
> > > > > > 805-756-7517
> > > > > >
> >
> >
> >
> > **********************************************************************
> >
> > This email and any files transmitted with it are confidential and
> > intended solely for the use of the individual or entity to whom they are
> addressed.
> > If you have received this email in error please notify the system
> manager.
> >
> > This footnote confirms that this email message has been swept for the
> > presence of computer viruses and is believed to be clean.
> >
> > **********************************************************************
> >
> > ------------------------ MailScanner list ------------------------ To
> > unsubscribe, email jiscmail at jiscmail.ac.uk with the words:
> > 'leave mailscanner' in the body of the email.
> > Before posting, read the Wiki (http://wiki.mailscanner.info/) and the
> > archives (http://www.jiscmail.ac.uk/lists/mailscanner.html).
> >
> > Support MailScanner development - buy the book off the website!
> >
> > ------------------------ MailScanner list ------------------------ To
> > unsubscribe, email jiscmail at jiscmail.ac.uk with the words:
> > 'leave mailscanner' in the body of the email.
> > Before posting, read the Wiki (http://wiki.mailscanner.info/) and the
> > archives (http://www.jiscmail.ac.uk/lists/mailscanner.html).
> >
> > Support MailScanner development - buy the book off the website!
> 
> 
> **********************************************************************
> 
> This email and any files transmitted with it are confidential and intended
> solely for the use of the individual or entity to whom they are addressed.
> If you have received this email in error please notify the system manager.
> 
> This footnote confirms that this email message has been swept for the
> presence of computer viruses and is believed to be clean.
> 
> **********************************************************************
> 
> ------------------------ MailScanner list ------------------------ To
> unsubscribe, email jiscmail at jiscmail.ac.uk with the words:
> 'leave mailscanner' in the body of the email.
> Before posting, read the Wiki (http://wiki.mailscanner.info/) and the
> archives (http://www.jiscmail.ac.uk/lists/mailscanner.html).
> 
> Support MailScanner development - buy the book off the website!
> 
> ------------------------ MailScanner list ------------------------
> To unsubscribe, email jiscmail at jiscmail.ac.uk with the words:
> 'leave mailscanner' in the body of the email.
> Before posting, read the Wiki (http://wiki.mailscanner.info/) and
> the archives (http://www.jiscmail.ac.uk/lists/mailscanner.html).
> 
> Support MailScanner development - buy the book off the website!


**********************************************************************

This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote confirms that this email message has been swept
for the presence of computer viruses and is believed to be clean.	

**********************************************************************

------------------------ MailScanner list ------------------------
To unsubscribe, email jiscmail at jiscmail.ac.uk with the words:
'leave mailscanner' in the body of the email.
Before posting, read the Wiki (http://wiki.mailscanner.info/) and
the archives (http://www.jiscmail.ac.uk/lists/mailscanner.html).

Support MailScanner development - buy the book off the website!



More information about the MailScanner mailing list