Mailscanner not proccessing emails

Carl Werner carl at theholidayclub.com
Thu Jun 21 12:15:53 IST 2007


grep "Queue Dir" MailScanner.conf gives the following:

Incoming Queue Dir = /var/spool/mqueue.in
Outgoing Queue Dir = /var/spool/mqueue

My /etc/conf.d/MailScanner-mta contains the following

SENDMAIL=/usr/sbin/sendmail
QUEUETIME=15m
INQDIR=/var/spool/mqueue
INPID=/var/run/sendmail.in.pid
OUTPID=/var/run/sendmail.out.pid
SMPID=/var/run/sm-client.pid
MSPUSER=smmsp  # User for mail submission queue runner
MSPGROUP=smmsp # Group for mail submission queue runner

I guess that this is where the MailScanner init script gets the settings
that it starts Sendmail with from

-----Original Message-----
From: mailscanner-bounces at lists.mailscanner.info
[mailto:mailscanner-bounces at lists.mailscanner.info] On Behalf Of --[ UxBoD
]--
Sent: 21 June 2007 11:45 AM
To: MailScanner discussion
Subject: RE: Mailscanner not proccessing emails

Also, 

grep "Queue Dir" MailScanner.conf

do these match where you SendMail queues are ?

On Thu, 21 Jun 2007 11:39:17 +0200, "Carl Werner" <carl at theholidayclub.com>
wrote:
> Hi,
> 
> /var/log/messages contain the following when Mailscanner is started
> 
> Jun 21 11:35:39 mail3 sendmail[30540]: gethostbyaddr(10.2.0.233) failed:
1
> Jun 21 11:35:39 mail3 sendmail[30540]: alias database /etc/mail/aliases
> rebuilt by root
> Jun 21 11:35:39 mail3 sendmail[30540]: /etc/mail/aliases: 1 aliases,
> longest
> 4 bytes, 14 bytes total
> Jun 21 11:35:39 mail3 sm-mta[30543]: gethostbyaddr(10.2.0.233) failed: 1
> Jun 21 11:35:39 mail3 sm-mta[30544]: starting daemon (8.14.0):
> SMTP+queueing at 00:30:00
> Jun 21 11:35:39 mail3 sm-mta[30544]: STARTTLS: CRLFile missing
> Jun 21 11:35:39 mail3 sm-mta[30544]: STARTTLS=server, Diffie-Hellman
init,
> key=512 bit (1)
> Jun 21 11:35:39 mail3 sm-mta[30544]: STARTTLS=server, init=1
> Jun 21 11:35:39 mail3 sm-mta[30544]: started as: /usr/sbin/sendmail -bd
> -q30m -L sm-mta
> Jun 21 11:35:39 mail3 sm-cm[30547]: starting daemon (8.14.0):
> queueing at 00:30:00
> Jun 21 11:35:40 mail3 MailScanner[30571]: MailScanner E-Mail Virus
Scanner
> version 4.57.6 starting...
> Jun 21 11:35:40 mail3 MailScanner[30571]: Read 759 hostnames from the
> phishing whitelist
> Jun 21 11:35:40 mail3 MailScanner[30571]: Using locktype = posix
> Jun 21 11:35:40 mail3 MailScanner[30571]: Creating hardcoded struct_flock
> subroutine for linux (Linux-type)
> Jun 21 11:35:45 mail3 MailScanner[30576]: MailScanner E-Mail Virus
Scanner
> version 4.57.6 starting...
> Jun 21 11:35:45 mail3 MailScanner[30576]: Read 759 hostnames from the
> phishing whitelist
> Jun 21 11:35:45 mail3 MailScanner[30576]: Using locktype = posix
> Jun 21 11:35:45 mail3 MailScanner[30576]: Creating hardcoded struct_flock
> subroutine for linux (Linux-type)
> Jun 21 11:35:50 mail3 MailScanner[30577]: MailScanner E-Mail Virus
Scanner
> version 4.57.6 starting...
> Jun 21 11:35:50 mail3 MailScanner[30577]: Read 759 hostnames from the
> phishing whitelist
> Jun 21 11:35:50 mail3 MailScanner[30577]: Using locktype = posix
> Jun 21 11:35:50 mail3 MailScanner[30577]: Creating hardcoded struct_flock
> subroutine for linux (Linux-type)
> Jun 21 11:35:55 mail3 MailScanner[30578]: MailScanner E-Mail Virus
Scanner
> version 4.57.6 starting...
> Jun 21 11:35:55 mail3 MailScanner[30578]: Read 759 hostnames from the
> phishing whitelist
> Jun 21 11:35:56 mail3 MailScanner[30578]: Using locktype = posix
> Jun 21 11:35:56 mail3 MailScanner[30578]: Creating hardcoded struct_flock
> subroutine for linux (Linux-type)
> Jun 21 11:36:00 mail3 MailScanner[30579]: MailScanner E-Mail Virus
Scanner
> version 4.57.6 starting...
> Jun 21 11:36:00 mail3 MailScanner[30579]: Read 759 hostnames from the
> phishing whitelist
> Jun 21 11:36:00 mail3 MailScanner[30579]: Using locktype = posix
> Jun 21 11:36:00 mail3 MailScanner[30579]: Creating hardcoded struct_flock
> subroutine for linux (Linux-type)
> 
> 
> MailScanner --lint has the following output:
> 
> Read 759 hostnames from the phishing whitelist
> 
> Checking for SpamAssassin errors (if you use it)...
> Using locktype = posix
> Creating hardcoded struct_flock subroutine for linux (Linux-type)
> MailScanner.conf says "Virus Scanners = clamav"
> Found these virus scanners installed: clamav
> 
> MailScanner --debug-sa does not give any output.
> 
> Hope this helps
> 
> Thanks
> 
> Carl
> 
> 
> -----Original Message-----
> From: mailscanner-bounces at lists.mailscanner.info
> [mailto:mailscanner-bounces at lists.mailscanner.info] On Behalf Of --[
UxBoD
> ]--
> Sent: 21 June 2007 11:09 AM
> To: MailScanner discussion
> Subject: Re: Mailscanner not proccessing emails
> 
> Hi,
> 
> What is showing in /var/log/message when MailScanner is started ?
> Have you tried running MailScanner --lint ?
> Have you tried running MailScanner --debug-sa ?
> 
> If you can post this information it will help us to diagnose.
> 
> Regards,
> 
> 
> On Thu, 21 Jun 2007 11:00:31 +0200, "Carl Werner"
> <carl at theholidayclub.com>
> wrote:
>> Hi,
>>
>>
>>
>> I have done a clean install of Mailscanner from the sunrise overlay on
>> Gentoo, together with Sendmail, Spamassassin and ClamAV. I followed the
>> guide located at
>>
>
http://gentoo-wiki.com/HOWTO_Email_Virus_Scanner_--_Mailscanner#Configuratio
>> n_for_Sendmail with the installation. The problem is that Mailscanner
> does
>> not process the emails. I have setup Sendmail to run with SMTP auth (not
>> sure if that is the problem). Sendmail is working perfectly even though
>> Mailscanner is also running. The emails seem to bypass Mailscanner and
> is
>> delivered directly. I have run Mailscanner in debug mode. The only
> errors
>> that I have received is the following
>>
>>
>>
>> Use of uninitialized value in concatenation (.) or string at
>> /usr/lib/perl5/vendor_perl/5.8.8/Mail/SpamAssassin.pm line 1050.
>>
>> Use of uninitialized value in concatenation (.) or string at
>> /usr/lib/perl5/vendor_perl/5.8.8/Mail/SpamAssassin.pm line 1052.
>>
>> [28333] dbg: config: read_scoreonly_config: cannot open "": No such file
>> or
>> directory
>>
>>
>>
>> When I disable the use of Spamassassin this error does not appear any
>> more.
>> Except for the normal info messages nothing else is shown and
> Mailscanner
>> seems to be waiting for emails as input.
>>
>>
>>
>> What am I missing? Is there a problem with my incoming/outgoing queues
> in
>> Mailscanner/Sendmail. Is Sendmail being started the right way? Any help
>> would be appreciated.
>>
>>
>>
>> Regards
>>
>>
>>
>> Carl Werner
>>
>>
>> --
>> This message has been scanned for viruses and dangerous content by
>> MailScanner, and is
>> believed to be clean.
> --
> --[ UxBoD ]--
> // PGP Key: "curl -s https://www.splatnix.net/uxbod.asc | gpg --import"
> // Fingerprint: C759 8F52 1D17 B3C5 5854  36BD 1FB1 B02F 5DB5 687B
> // Keyserver: www.keyserver.net Key-ID: 0x5DB5687B
> // Phone: +44 845 869 2749 SIP Phone: uxbod at sip.splatnix.net
> 
> 
> --
> This message has been scanned for viruses and dangerous content by
> MailScanner, and is
> believed to be clean.
> 
> --
> MailScanner mailing list
> mailscanner at lists.mailscanner.info
> http://lists.mailscanner.info/mailman/listinfo/mailscanner
> 
> Before posting, read http://wiki.mailscanner.info/posting
> 
> Support MailScanner development - buy the book off the website!
> 
> --
> MailScanner mailing list
> mailscanner at lists.mailscanner.info
> http://lists.mailscanner.info/mailman/listinfo/mailscanner
> 
> Before posting, read http://wiki.mailscanner.info/posting
> 
> Support MailScanner development - buy the book off the website!
> 
> --
> This message has been scanned for viruses and dangerous content by
> MailScanner, and is
> believed to be clean.
-- 
--[ UxBoD ]--
// PGP Key: "curl -s https://www.splatnix.net/uxbod.asc | gpg --import"
// Fingerprint: C759 8F52 1D17 B3C5 5854  36BD 1FB1 B02F 5DB5 687B
// Keyserver: www.keyserver.net Key-ID: 0x5DB5687B
// Phone: +44 845 869 2749 SIP Phone: uxbod at sip.splatnix.net


-- 
This message has been scanned for viruses and dangerous content by
MailScanner, and is
believed to be clean.

-- 
MailScanner mailing list
mailscanner at lists.mailscanner.info
http://lists.mailscanner.info/mailman/listinfo/mailscanner

Before posting, read http://wiki.mailscanner.info/posting

Support MailScanner development - buy the book off the website! 



More information about the MailScanner mailing list