Results 1 to 7 of 7
  1. #1
    Join Date
    Sep 2002
    Location
    Canada
    Posts
    452

    Help with SpamAssassin + exim + cPanel on FreeBSD

    I need someone experienced and knowledgable in SpamAssassin, Perl and FreeBSD to fix me a problem I'm having with getting spamassassin v3.03 working properly on cPanel server.

    The problem appears to be incorrect link between the different Perl libraries (from 5.6.1 to 5.8.5) it seems no matter what I've tried whether to reinstall spamassassin from ports, or from shell, it is not using the default perl5.8.5 folder for some reason.

    This is causing errors, and spamassassin not tagging messages properly, the score is not working....etc

    This is an example of one part of the problem:

    May 17 00:36:13 server spamd[59948]: bayes: bayes db version 2 is not able to be used, aborting! at /usr/lib/perl5/site_perl/5.6.1/Mail/SpamAssassin/BayesStore/DBM.pm line 160.

    May 17 00:36:13 server spamd[59900]: Cannot open bayes databases /usr/home/username/.spamassassin/bayes_* R/W: lock failed: File exists

    May 17 00:36:13 server spamd[59900]: Use of uninitialized value in concatenation (.) or string at /usr/local/lib/perl5/site_perl/5.8.4.BACKUP/Mail/SpamAssassin/NoMailAudit.pm line 184.

    May 17 00:36:13 server spamd[59900]: Use of uninitialized value in pattern match (m//) at /usr/lib/perl5/site_perl/5.6.1/Mail/SpamAssassin/PerMsgStatus.pm line 875.


    If you have good experience with BSD systems, spamassassin, quote me your price.

    Thanks,

    Tamouh
    Reliability Performance Integrity

  2. #2
    Join Date
    Mar 2003
    Location
    California USA
    Posts
    13,290
    Steven Ciaburri | Industry's Best Server Management - Rack911.com
    Software Auditing - 400+ Vulnerabilities Found - Quote @ https://www.RACK911Labs.com
    Fully Managed Dedicated Servers (Las Vegas, New York City, & Amsterdam) (AS62710)
    FreeBSD & Linux Server Management, Security Auditing, Server Optimization, PCI Compliance

  3. #3
    What's the output of perl -v?

  4. #4
    I can resolve for $10. You can contact with me via email admin at alfa.net.ua

  5. #5
    Join Date
    Sep 2002
    Location
    Canada
    Posts
    452
    Hey Alan,

    server# perl -V
    Summary of my perl5 (revision 5 version 8 subversion 5) configuration:
    Platform:
    osname=freebsd, osvers=4.10-release-p2, archname=i386-freebsd-64int
    uname='freebsd impala.smallvillages.com 4.10-release-p2 freebsd 4.10-release-p2 #0: tue aug 17 15:21:34 edt 2004 [email protected]:usrsrcsyscompilegenqhz i386 '
    config_args='-sde -Dprefix=/usr/local -Darchlib=/usr/local/lib/perl5/5.8.5/mach -Dprivlib=/usr/local/lib/perl5/5.8.5 -Dman3dir=/usr/local/lib/perl5/5.8.5/perl/man/man3 -Dman1dir=/usr/local/man/man1 -Dsitearch=/usr/local/lib/perl5/site_perl/5.8.5/mach -Dsitelib=/usr/local/lib/perl5/site_perl/5.8.5 -Dscriptdir=/usr/local/bin -Dsiteman3dir=/usr/local/lib/perl5/5.8.5/man/man3 -Dsiteman1dir=/usr/local/man/man1 -Ui_malloc -Ui_iconv -Uinstallusrbinperl -Dcc=cc -Doptimize=-O -pipe -Duseshrplib -Dccflags=-DAPPLLIB_EXP="/usr/local/lib/perl5/5.8.5/BSDPAN" -Ud_dosuid -Ui_gdbm -Dusethreads=n -Dusemymalloc=y -Duse64bitint'
    hint=recommended, useposix=true, d_sigaction=define
    usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef
    useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
    use64bitint=define use64bitall=undef uselongdouble=undef
    usemymalloc=y, bincompat5005=undef
    Compiler:
    cc='cc', ccflags ='-DAPPLLIB_EXP="/usr/local/lib/perl5/5.8.5/BSDPAN" -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -I/usr/local/include',
    optimize='-O -pipe ',
    cppflags='-DAPPLLIB_EXP="/usr/local/lib/perl5/5.8.5/BSDPAN" -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -fno-strict-aliasing -pipe -I/usr/local/include'
    ccversion='', gccversion='2.95.4 20020320 [FreeBSD]', gccosandvers=''
    intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=12345678
    d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=12
    ivtype='long long', ivsize=8, nvtype='double', nvsize=8, Off_t='off_t', lseeksize=8
    alignbytes=4, prototype=define
    Linker and Libraries:
    ld='cc', ldflags ='-Wl,-E -L/usr/local/lib'
    libpth=/usr/lib /usr/local/lib
    libs=-lgdbm -lm -lcrypt -lutil -lc
    perllibs=-lm -lcrypt -lutil -lc
    libc=, so=so, useshrplib=true, libperl=libperl.so
    gnulibc_version=''
    Dynamic Linking:
    dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' -Wl,-R/usr/local/lib/perl5/5.8.5/mach/CORE'
    cccdlflags='-DPIC -fPIC', lddlflags='-shared -L/usr/local/lib'


    Characteristics of this binary (from libperl):
    Compile-time options: USE_64_BIT_INT USE_LARGE_FILES
    Built under freebsd
    Compiled at Aug 17 2004 23:33:19
    @INC:
    /usr/local/lib/perl5/site_perl/5.8.5/mach
    /usr/local/lib/perl5/site_perl/5.8.5
    /usr/local/lib/perl5/site_perl/5.8.4.BACKUP
    /usr/local/lib/perl5/site_perl/5.8.4
    /usr/local/lib/perl5/site_perl/5.005
    /usr/local/lib/perl5/site_perl
    /usr/local/lib/perl5/5.8.5/BSDPAN
    /usr/local/lib/perl5/5.8.5/mach
    /usr/local/lib/perl5/5.8.5
    .

    server# spamassassin -V
    SpamAssassin version 3.0.3
    running on Perl version 5.8.5
    Reliability Performance Integrity

  6. #6
    Join Date
    Sep 2002
    Location
    Canada
    Posts
    452
    You know what, on a second look, I think the problem had resolved itself. I played around last night and completely screwed-up spamassassin. Then ran /scripts/upcp and it seems cPanel got it installed correctly this time.
    Reliability Performance Integrity

  7. #7
    Good to hear

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •