Page 3 of 3
Posted: 28 Aug 2009, 12:46
by MaraBlue
I know for one rebuilding the exim conf didn't do what it's done in the past. I use the default Exim cofig and when I ran that command to rebuild the config it added in a second router line, and exim wouldn't start. I had to go into WHM and re-rebuild exim.
After doing:
Code: Select all
7. The following sequence will fix many MailScanner issues and can be run in SSH at any time without harm:
/scripts/buildeximconf
/scripts/mailscannerupdate
service exim restart
/usr/mscpanel/mscheck.pl
I did these in the order listed, and I got a warning when I did /scripts/mailscannerupdate that "this script shouldn't be run from the command line" (or words to that effect). Didn't think it would be a problem until I restarted exim, and got this:
Code: Select all
# service exim restart
Shutting down exim: [ OK ]
Shutting down spamd: [FAILED]
Starting exim-587: 2009-08-28 03:04:17 Exim configuration error:
there are two routers called "defer_router"
[FAILED]
Starting exim: 2009-08-28 03:04:17 Exim configuration error:
there are two routers called "defer_router"
[FAILED]
Starting exim-outgoing: [ OK ]
Starting exim-smtps: 2009-08-28 03:04:17 Exim configuration error:
there are two routers called "defer_router"
[FAILED]
I've used /scripts/buildeximconf before, a couple years ago, and it fixed the problem I had then. Could be something odd now, between Exim and cP 11.24?
Posted: 28 Aug 2009, 22:05
by MaraBlue
Just a follow-up...the problem *was* the version of Perl having been downgraded by CentOS. The specific problem on our server was that just after I fixed it, the data center's tech also ran a "fix" (even though I'd told him I'd just re-upgraded Perl).
The problems had nothing to do with MailScanner whatsoever. Once all the Perl modules were in place, and Exim was upgraded/reinstalled, everything worked like it always has.
Thanks again to Sarah for all her spot on assistance!
I am having a similar problem
Posted: 02 Aug 2010, 18:58
by TrekCom
After a new install on a new server I get this after running MailScanner debug:
root@delta [~]# /usr/mailscanner/bin/MailScanner --debug
Can't locate loadable object for module Filesys::Df in @INC (@INC contains: /usr/mailscanner/lib /usr/local/lib/perl5/site_perl/5.8.8/i686-linux /usr/local/lib/perl5/site_perl/5.8.8 /usr/local/lib/perl5/site_perl /usr/mailscanner/lib /usr/local/lib/perl5/5.8.8/i686-linux /usr/local/lib/perl5/5.8.8) at /usr/mailscanner/bin/MailScanner line 91
Compilation failed in require at /usr/mailscanner/bin/MailScanner line 91.
BEGIN failed--compilation aborted at /usr/mailscanner/bin/MailScanner line 91.
In Debugging mode, not forking...
Trying to setlogsock(unix)
plugin: failed to parse plugin (from @INC): Can't locate loadable object for module Digest::SHA1 in @INC (@INC contains: /usr/mailscanner/bin /usr/mailscanner/bin/MailScanner /usr/mailscanner/lib /usr/local/lib/perl5/site_perl/5.8.8/i686-linux /usr/local/lib/perl5/site_perl/5.8.8 /usr/local/lib/perl5/site_perl /usr/mailscanner/lib /usr/local/lib/perl5/5.8.8/i686-linux /usr/local/lib/perl5/5.8.8) at /usr/local/lib/perl5/site_perl/5.8.8/Mail/SpamAssassin/Plugin/Hashcash.pm line 88
Compilation failed in require at /usr/local/lib/perl5/site_perl/5.8.8/Mail/SpamAssassin/Plugin/Hashcash.pm line 88.
BEGIN failed--compilation aborted at /usr/local/lib/perl5/site_perl/5.8.8/Mail/SpamAssassin/Plugin/Hashcash.pm line 88.
Compilation failed in require at (eval 98) line 1.
plugin: failed to parse plugin (from @INC): Can't locate Mail/SpamAssassin/Plugin/ResourceLimits.pm in @INC (@INC contains: /usr/mailscanner/bin /usr/mailscanner/bin/MailScanner /usr/mailscanner/lib /usr/local/lib/perl5/site_perl/5.8.8/i686-linux /usr/local/lib/perl5/site_perl/5.8.8 /usr/local/lib/perl5/site_perl /usr/mailscanner/lib /usr/local/lib/perl5/5.8.8/i686-linux /usr/local/lib/perl5/5.8.8) at (eval 626) line 1.
opendir /usr/local/lib/perl5/site_perl/5.8.8/i686-linux/DBD: Permission denied
at /usr/mailscanner/bin/MailScanner line 1756
install_driver(SQLite) failed: Can't locate DBD/SQLite.pm in @INC (@INC contains: /var/lib/spamassassin/compiled/3.002004 /var/lib/spamassassin/compiled/3.002004/auto /usr/mailscanner/bin /usr/mailscanner/bin/MailScanner /usr/mailscanner/lib /usr/local/lib/perl5/site_perl/5.8.8/i686-linux /usr/local/lib/perl5/site_perl/5.8.8 /usr/local/lib/perl5/site_perl /usr/mailscanner/lib /usr/local/lib/perl5/5.8.8/i686-linux /usr/local/lib/perl5/5.8.8) at (eval 805) line 3.
Perhaps the DBD::SQLite perl module hasn't been fully installed,
or perhaps the capitalisation of 'SQLite' isn't right.
Available drivers: .
at /usr/mailscanner/bin/MailScanner line 1756
I have followed everything previously discussed in this thread but can't get it up and running.
Thanks
Roger
Re: MailScanner Stopped! - won't start
Posted: 09 Aug 2010, 21:51
by Sarah
Sounds like a problem with your perl installation. You can try /scripts/checkperlmodules and keep running that until it runs clean (all modules are up to date) or try reinstalling perl if that doesn't work.