Page 1 of 6 123 ... LastLast
Results 1 to 10 of 56

Thread: Configuring and using DSPAM

  1. #1
    JoshuaPrismon is offline Zimlet Guru & Moderator
    Join Date
    Nov 2005
    Posts
    477
    Rep Power
    9

    Default Configuring and using DSPAM

    I saw that there was a request the other day for using DSPAM with Zimbra. I am not done yet, but I have it working at this point. Here are the steps I took:

    Download and decompress DSPAM

    Note, everything I am doing here, I do as the user zimbra. If I need super user, I use sudo.

    The configuration options I used were:
    Code:
    ./configure \
        --prefix=/opt/dspam \
        --sysconfdir=/opt/dspam/conf \
        --with-dspam-home=/var/dspam \
        --with-dspam-home-mode=2770 \
        --with-dspam-home-owner=zimbra \
        --with-dspam-home-group=zimbra \
        --with-storage-driver=mysql_drv \
        --enable-preferences-extension \
        --with-mysql-includes=/usr/include/mysql \
        --with-mysql-libraries=/usr/lib/mysql \
        --enable-signature-headers \
        --without-delivery-agent \
        --without-quarantine-agent \
        --with-dspam-owner=zimbra \
        --with-dspam-group=zimbra
    
    make
    (as root) make install
    After this login as the zimbra user. Make sure that MySQL is running. Then create a new table for DSPAM related info:

    Code:
    mysqladmin create dspam
    After that load the schema for the dspam tables

    Code:
    mysql dspam < ~/dspam-3.6.1/src/tools.mysql_drv/mysql_objects-4.1.sql
    We don't want to use the same user that we use for zimbra for dspam for the database. So create a new user:

    Code:
    mysql
    grant all on dspam.* to dspam@localhost identified by 'ThisIsMyPassword';
    (Obviously change your password)

    Inside of your dspam.conf add the following lines (they are commented out be default)
    Code:
    MySQLServer        /opt/zimbra/db/mysql.sock
    MySQLPort			7306
    MySQLUser          dspam
    MySQLPass          ThisIsMyPassword
    MySQLDb            dspam
    Now we have to tell amavisd-new (which serves as a pipeline for various steps proccessing email before zimbra's java code sees emails) to enable dspam Search for the $path and $dspam variables and replace them.

    To make things a bit tricky, dspam uses auto-generated files, so modify the file amavisd.conf.in rather then amavisd.conf.

    Code:
    $path = '/opt/zimbra/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/sbin:/usr/bin:/bin:/opt/dspam/bin';
    $dspam = 'dspam';
    I suggest you run amavisd once by hand with the debug options to make sure everything works:

    Code:
    /opt/zimbra/amavisd/sbin/amavisd -c /opt/zimbra/conf/amavisd.conf debug
    And if everything is happy you should see lines like:

    Code:
    /opt/zimbra/amavisd/sbin/amavisd -c /opt/zimbra/conf/amavisd.conf debug
    Nov 16 18:57:32 bldmail01 /opt/zimbra/amavisd/sbin/amavisd[31241]: starting.  /opt/zimbra/amavisd/sbin/amavisd at bldmail01 amavisd-new-2.3.1 (20050509), Unicode aware, LANG=en_US.UTF-8
    Nov 16 18:57:32 bldmail01 /opt/zimbra/amavisd/sbin/amavisd[31241]: user=515, EUID: 515 (515);  group=, EGID: 515 516 515 5 (515 516 515 5)
    Nov 16 18:57:32 bldmail01 /opt/zimbra/amavisd/sbin/amavisd[31241]: Perl version               5.008006
    Nov 16 18:57:33 bldmail01 /opt/zimbra/amavisd/sbin/amavisd[31241]: Net::Server: 2005/11/16-18:57:33 Amavis (type Net::Server::PreForkSimple) starting! pid(31241)
    Nov 16 18:57:33 bldmail01 /opt/zimbra/amavisd/sbin/amavisd[31241]: Net::Server: Binding to TCP port 10024 on host 127.0.0.1
    Nov 16 18:57:33 bldmail01 /opt/zimbra/amavisd/sbin/amavisd[31241]: Net::Server: Group Not Defined.  Defaulting to EGID '515 516 515 5'
    Nov 16 18:57:33 bldmail01 /opt/zimbra/amavisd/sbin/amavisd[31241]: Net::Server: User Not Defined.  Defaulting to EUID '515'
    Nov 16 18:57:33 bldmail01 /opt/zimbra/amavisd/sbin/amavisd[31241]: Net::Server: Setting up serialization via flock
    Nov 16 18:57:33 bldmail01 /opt/zimbra/amavisd/sbin/amavisd[31241]: Module Amavis::Conf        2.038
    Nov 16 18:57:33 bldmail01 /opt/zimbra/amavisd/sbin/amavisd[31241]: Module Archive::Tar        1.26
    Nov 16 18:57:33 bldmail01 /opt/zimbra/amavisd/sbin/amavisd[31241]: Module Archive::Zip        1.16
    Nov 16 18:57:33 bldmail01 /opt/zimbra/amavisd/sbin/amavisd[31241]: Module BerkeleyDB          0.26
    Nov 16 18:57:33 bldmail01 /opt/zimbra/amavisd/sbin/amavisd[31241]: Module Compress::Zlib      1.41
    Nov 16 18:57:33 bldmail01 /opt/zimbra/amavisd/sbin/amavisd[31241]: Module Convert::TNEF       0.17
    Nov 16 18:57:33 bldmail01 /opt/zimbra/amavisd/sbin/amavisd[31241]: Module Convert::UUlib      1.051
    Nov 16 18:57:33 bldmail01 /opt/zimbra/amavisd/sbin/amavisd[31241]: Module DBD::mysql          2.9007
    Nov 16 18:57:33 bldmail01 /opt/zimbra/amavisd/sbin/amavisd[31241]: Module DBI                 1.48
    Nov 16 18:57:33 bldmail01 /opt/zimbra/amavisd/sbin/amavisd[31241]: Module DB_File             1.810
    Nov 16 18:57:33 bldmail01 /opt/zimbra/amavisd/sbin/amavisd[31241]: Module MIME::Entity        5.418
    Nov 16 18:57:33 bldmail01 /opt/zimbra/amavisd/sbin/amavisd[31241]: Module MIME::Parser        5.418
    Nov 16 18:57:33 bldmail01 /opt/zimbra/amavisd/sbin/amavisd[31241]: Module MIME::Tools         5.418
    Nov 16 18:57:33 bldmail01 /opt/zimbra/amavisd/sbin/amavisd[31241]: Module Mail::Header        1.67
    Nov 16 18:57:33 bldmail01 /opt/zimbra/amavisd/sbin/amavisd[31241]: Module Mail::Internet      1.67
    Nov 16 18:57:33 bldmail01 /opt/zimbra/amavisd/sbin/amavisd[31241]: Module Mail::SPF::Query    1.997
    Nov 16 18:57:33 bldmail01 /opt/zimbra/amavisd/sbin/amavisd[31241]: Module Mail::SpamAssassin  3.001000
    Nov 16 18:57:33 bldmail01 /opt/zimbra/amavisd/sbin/amavisd[31241]: Module Net::Cmd            2.26
    Nov 16 18:57:33 bldmail01 /opt/zimbra/amavisd/sbin/amavisd[31241]: Module Net::DNS            0.49
    Nov 16 18:57:33 bldmail01 /opt/zimbra/amavisd/sbin/amavisd[31241]: Module Net::LDAP           0.33
    Nov 16 18:57:33 bldmail01 /opt/zimbra/amavisd/sbin/amavisd[31241]: Module Net::SMTP           2.29
    Nov 16 18:57:33 bldmail01 /opt/zimbra/amavisd/sbin/amavisd[31241]: Module Net::Server         0.88
    Nov 16 18:57:33 bldmail01 /opt/zimbra/amavisd/sbin/amavisd[31241]: Module Razor2::Client::Version 2.75
    Nov 16 18:57:33 bldmail01 /opt/zimbra/amavisd/sbin/amavisd[31241]: Module Time::HiRes         1.65
    Nov 16 18:57:33 bldmail01 /opt/zimbra/amavisd/sbin/amavisd[31241]: Module Unix::Syslog        0.99
    Nov 16 18:57:33 bldmail01 /opt/zimbra/amavisd/sbin/amavisd[31241]: Amavis::DB code    loaded
    Nov 16 18:57:33 bldmail01 /opt/zimbra/amavisd/sbin/amavisd[31241]: Amavis::Cache code loaded
    Nov 16 18:57:33 bldmail01 /opt/zimbra/amavisd/sbin/amavisd[31241]: SQL base code      NOT loaded
    Nov 16 18:57:33 bldmail01 /opt/zimbra/amavisd/sbin/amavisd[31241]: SQL::Log code      NOT loaded
    Nov 16 18:57:33 bldmail01 /opt/zimbra/amavisd/sbin/amavisd[31241]: SQL::Quarantine    NOT loaded
    Nov 16 18:57:33 bldmail01 /opt/zimbra/amavisd/sbin/amavisd[31241]: Lookup::SQL  code  NOT loaded
    Nov 16 18:57:33 bldmail01 /opt/zimbra/amavisd/sbin/amavisd[31241]: Lookup::LDAP code  loaded
    Nov 16 18:57:33 bldmail01 /opt/zimbra/amavisd/sbin/amavisd[31241]: AM.PDP prot  code  NOT loaded
    Nov 16 18:57:33 bldmail01 /opt/zimbra/amavisd/sbin/amavisd[31241]: SMTP-in prot code  loaded
    Nov 16 18:57:33 bldmail01 /opt/zimbra/amavisd/sbin/amavisd[31241]: ANTI-VIRUS code    loaded
    Nov 16 18:57:33 bldmail01 /opt/zimbra/amavisd/sbin/amavisd[31241]: ANTI-SPAM  code    loaded
    Nov 16 18:57:33 bldmail01 /opt/zimbra/amavisd/sbin/amavisd[31241]: Unpackers  code    loaded
    Nov 16 18:57:33 bldmail01 /opt/zimbra/amavisd/sbin/amavisd[31241]: Found $file            at /usr/bin/file
    Nov 16 18:57:33 bldmail01 /opt/zimbra/amavisd/sbin/amavisd[31241]: Found $dspam           at /opt/dspam/bin/dspam
    Nov 16 18:57:33 bldmail01 /opt/zimbra/amavisd/sbin/amavisd[31241]: Internal decoder for .mail
    Nov 16 18:57:33 bldmail01 /opt/zimbra/amavisd/sbin/amavisd[31241]: Internal decoder for .asc
    Nov 16 18:57:33 bldmail01 /opt/zimbra/amavisd/sbin/amavisd[31241]: Internal decoder for .uue
    Nov 16 18:57:33 bldmail01 /opt/zimbra/amavisd/sbin/amavisd[31241]: Internal decoder for .hqx
    Nov 16 18:57:33 bldmail01 /opt/zimbra/amavisd/sbin/amavisd[31241]: Internal decoder for .ync
    Nov 16 18:57:33 bldmail01 /opt/zimbra/amavisd/sbin/amavisd[31241]: No decoder for       .F    tried: unfreeze, freeze -d, melt, fcat
    Nov 16 18:57:33 bldmail01 /opt/zimbra/amavisd/sbin/amavisd[31241]: Found decoder for    .Z    at /usr/bin/gzip -d
    Nov 16 18:57:33 bldmail01 /opt/zimbra/amavisd/sbin/amavisd[31241]: Internal decoder for .gz
    Nov 16 18:57:33 bldmail01 /opt/zimbra/amavisd/sbin/amavisd[31241]: Found decoder for    .gz   at /usr/bin/gzip -d (backup, not used)
    Nov 16 18:57:33 bldmail01 /opt/zimbra/amavisd/sbin/amavisd[31241]: Found decoder for    .bz2  at /usr/bin/bzip2 -d
    Nov 16 18:57:33 bldmail01 /opt/zimbra/amavisd/sbin/amavisd[31241]: No decoder for       .lzo  tried: lzop -d
    Nov 16 18:57:33 bldmail01 /opt/zimbra/amavisd/sbin/amavisd[31241]: Found decoder for    .rpm  at /usr/bin/rpm2cpio
    Nov 16 18:57:33 bldmail01 /opt/zimbra/amavisd/sbin/amavisd[31241]: Found decoder for    .cpio at /usr/bin/pax
    Nov 16 18:57:33 bldmail01 /opt/zimbra/amavisd/sbin/amavisd[31241]: Found decoder for    .tar  at /usr/bin/pax
    Nov 16 18:57:33 bldmail01 /opt/zimbra/amavisd/sbin/amavisd[31241]: Internal decoder for .tar  (backup, not used)
    Nov 16 18:57:33 bldmail01 /opt/zimbra/amavisd/sbin/amavisd[31241]: Found decoder for    .deb  at /usr/bin/ar
    Nov 16 18:57:33 bldmail01 /opt/zimbra/amavisd/sbin/amavisd[31241]: Internal decoder for .zip
    Nov 16 18:57:33 bldmail01 /opt/zimbra/amavisd/sbin/amavisd[31241]: Found decoder for    .rar  at /usr/local/bin/rar
    Nov 16 18:57:33 bldmail01 /opt/zimbra/amavisd/sbin/amavisd[31241]: No decoder for       .arj  tried: arj, unarj
    Nov 16 18:57:33 bldmail01 /opt/zimbra/amavisd/sbin/amavisd[31241]: Found decoder for    .arc  at /usr/bin/nomarch
    Nov 16 18:57:33 bldmail01 /opt/zimbra/amavisd/sbin/amavisd[31241]: Found decoder for    .zoo  at /usr/bin/zoo
    Nov 16 18:57:33 bldmail01 /opt/zimbra/amavisd/sbin/amavisd[31241]: Found decoder for    .lha  at /usr/bin/lha
    Nov 16 18:57:33 bldmail01 /opt/zimbra/amavisd/sbin/amavisd[31241]: Found decoder for    .cab  at /usr/bin/cabextract
    Nov 16 18:57:33 bldmail01 /opt/zimbra/amavisd/sbin/amavisd[31241]: Found decoder for    .tnef at /usr/local/bin/tnef
    Nov 16 18:57:33 bldmail01 /opt/zimbra/amavisd/sbin/amavisd[31241]: Internal decoder for .tnef (backup, not used)
    Nov 16 18:57:33 bldmail01 /opt/zimbra/amavisd/sbin/amavisd[31241]: Found decoder for    .exe  at /usr/local/bin/rar; /usr/bin/lha
    Nov 16 18:57:33 bldmail01 /opt/zimbra/amavisd/sbin/amavisd[31241]: Using internal av scanner code for (primary) ClamAV-clamd
    Nov 16 18:57:33 bldmail01 /opt/zimbra/amavisd/sbin/amavisd[31241]: No primary av scanner: KasperskyLab AVP - aveclient
    Nov 16 18:57:33 bldmail01 /opt/zimbra/amavisd/sbin/amavisd[31241]: No primary av scanner: KasperskyLab AntiViral Toolkit Pro (AVP)
    Nov 16 18:57:33 bldmail01 /opt/zimbra/amavisd/sbin/amavisd[31241]: No primary av scanner: KasperskyLab AVPDaemonClient
    Nov 16 18:57:33 bldmail01 /opt/zimbra/amavisd/sbin/amavisd[31241]: No primary av scanner: CentralCommand Vexira (new) vascan
    Nov 16 18:57:33 bldmail01 /opt/zimbra/amavisd/sbin/amavisd[31241]: No primary av scanner: H+BEDV AntiVir or the (old) CentralCommand Vexira Antivirus
    Nov 16 18:57:33 bldmail01 /opt/zimbra/amavisd/sbin/amavisd[31241]: No primary av scanner: Command AntiVirus for Linux
    Nov 16 18:57:33 bldmail01 /opt/zimbra/amavisd/sbin/amavisd[31241]: No primary av scanner: Symantec CarrierScan via Symantec CommandLineScanner
    Nov 16 18:57:33 bldmail01 /opt/zimbra/amavisd/sbin/amavisd[31241]: No primary av scanner: Symantec AntiVirus Scan Engine
    Nov 16 18:57:33 bldmail01 /opt/zimbra/amavisd/sbin/amavisd[31241]: No primary av scanner: F-Secure Antivirus
    Nov 16 18:57:33 bldmail01 /opt/zimbra/amavisd/sbin/amavisd[31241]: No primary av scanner: CAI InoculateIT
    Nov 16 18:57:33 bldmail01 /opt/zimbra/amavisd/sbin/amavisd[31241]: No primary av scanner: CAI eTrust Antivirus
    Nov 16 18:57:33 bldmail01 /opt/zimbra/amavisd/sbin/amavisd[31241]: No primary av scanner: MkS_Vir for Linux (beta)
    Nov 16 18:57:33 bldmail01 /opt/zimbra/amavisd/sbin/amavisd[31241]: No primary av scanner: MkS_Vir daemon
    Nov 16 18:57:33 bldmail01 /opt/zimbra/amavisd/sbin/amavisd[31241]: No primary av scanner: ESET Software NOD32
    Nov 16 18:57:33 bldmail01 /opt/zimbra/amavisd/sbin/amavisd[31241]: No primary av scanner: ESET Software NOD32 - Client/Server Version
    Nov 16 18:57:33 bldmail01 /opt/zimbra/amavisd/sbin/amavisd[31241]: No primary av scanner: Norman Virus Control v5 / Linux
    Nov 16 18:57:33 bldmail01 /opt/zimbra/amavisd/sbin/amavisd[31241]: No primary av scanner: Panda Antivirus for Linux
    Nov 16 18:57:33 bldmail01 /opt/zimbra/amavisd/sbin/amavisd[31241]: No primary av scanner: NAI McAfee AntiVirus (uvscan)
    Nov 16 18:57:33 bldmail01 /opt/zimbra/amavisd/sbin/amavisd[31241]: No primary av scanner: VirusBuster
    Nov 16 18:57:33 bldmail01 /opt/zimbra/amavisd/sbin/amavisd[31241]: No primary av scanner: CyberSoft VFind
    Nov 16 18:57:33 bldmail01 /opt/zimbra/amavisd/sbin/amavisd[31241]: No primary av scanner: Ikarus AntiVirus for Linux
    Nov 16 18:57:33 bldmail01 /opt/zimbra/amavisd/sbin/amavisd[31241]: No primary av scanner: BitDefender
    Nov 16 18:57:33 bldmail01 /opt/zimbra/amavisd/sbin/amavisd[31241]: Found secondary av scanner ClamAV-clamscan at /usr/local/bin/clamscan
    Nov 16 18:57:33 bldmail01 /opt/zimbra/amavisd/sbin/amavisd[31241]: No secondary av scanner: FRISK F-Prot Antivirus
    Nov 16 18:57:33 bldmail01 /opt/zimbra/amavisd/sbin/amavisd[31241]: No secondary av scanner: Trend Micro FileScanner
    Nov 16 18:57:33 bldmail01 /opt/zimbra/amavisd/sbin/amavisd[31241]: No secondary av scanner: drweb - DrWeb Antivirus
    Nov 16 18:57:33 bldmail01 /opt/zimbra/amavisd/sbin/amavisd[31241]: No secondary av scanner: KasperskyLab kavscanner
    Nov 16 18:57:33 bldmail01 /opt/zimbra/amavisd/sbin/amavisd[31241]: Creating db in /opt/zimbra/amavisd/db/; BerkeleyDB 0.26, libdb 4.3
    Nov 16 18:57:33 bldmail01 /opt/zimbra/amavisd/sbin/amavisd[31241]: SpamControl: initializing Mail::SpamAssassin
    Nov 16 18:57:33 bldmail01 /opt/zimbra/amavisd/sbin/amavisd[31241]: SpamControl: done
    Nov 16 18:57:33 bldmail01 /opt/zimbra/amavisd/sbin/amavisd[31241]: Net::Server: Beginning prefork (5 processes)
    Nov 16 18:57:33 bldmail01 /opt/zimbra/amavisd/sbin/amavisd[31241]: Net::Server: Starting "5" children
    Nov 16 18:57:33 bldmail01 /opt/zimbra/amavisd/sbin/amavisd[31242]: Net::Server: Child Preforked (31242)
    Nov 16 18:57:34 bldmail01 /opt/zimbra/amavisd/sbin/amavisd[31242]: TIMING [total 19 ms] - bdb-open: 19 (100%)100, rundown: 0 (0%)100
    Nov 16 18:57:34 bldmail01 /opt/zimbra/amavisd/sbin/amavisd[31243]: Net::Server: Child Preforked (31243)
    Nov 16 18:57:34 bldmail01 /opt/zimbra/amavisd/sbin/amavisd[31243]: TIMING [total 10 ms] - bdb-open: 10 (100%)100, rundown: 0 (0%)100
    Nov 16 18:57:34 bldmail01 /opt/zimbra/amavisd/sbin/amavisd[31244]: Net::Server: Child Preforked (31244)
    Nov 16 18:57:34 bldmail01 /opt/zimbra/amavisd/sbin/amavisd[31244]: TIMING [total 10 ms] - bdb-open: 10 (100%)100, rundown: 0 (0%)100
    Nov 16 18:57:34 bldmail01 /opt/zimbra/amavisd/sbin/amavisd[31245]: Net::Server: Child Preforked (31245)
    Nov 16 18:57:34 bldmail01 /opt/zimbra/amavisd/sbin/amavisd[31245]: TIMING [total 9 ms] - bdb-open: 9 (100%)100, rundown: 0 (0%)100
    Nov 16 18:57:34 bldmail01 /opt/zimbra/amavisd/sbin/amavisd[31246]: Net::Server: Child Preforked (31246)
    Nov 16 18:57:34 bldmail01 /opt/zimbra/amavisd/sbin/amavisd[31241]: Net::Server: Parent ready for children.
    Nov 16 18:57:34 bldmail01 /opt/zimbra/amavisd/sbin/amavisd[31246]: TIMING [total 12 ms] - bdb-open: 12 (100%)100, rundown: 0 (0%)100
    That should get you to where both DSPAM and SpamAssassin check for spams.

    Later once DSPAM's own database has been built up, I suggest that you add the following lines to one of SpamAssassin's rule files (salocal.cf?) to filter out mail that DSPAM thinks is bogus:

    Code:
         header DSPAM_SPAM X-DSPAM-Result =~ /^Spam$/
         describe DSPAM_SPAM DSPAM claims it is spam
         score DSPAM_SPAM 0.5
     
         header DSPAM_HAM X-DSPAM-Result =~ /^Innocent$/
         describe DSPAM_HAM DSPAM claims it is ham
         score DSPAM_HAM -0.1
    Anyways, what I write here is my own, with the exceptions that I lifted off of the amavis-new list, esp this message: http://sourceforge.net/mailarchive/m...sg_id=11025890

    This works for me so far, filtering seems to work, and seems to be effective. I will post about training as soon as I have finished up doing it.
    Last edited by JoshuaPrismon; 11-18-2005 at 11:10 AM.

  2. #2
    phoenix is online now Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,201
    Rep Power
    56

    Default

    Hi

    Yes, I was asking about DSPAM a while back but haven't had much chance to do anything with it (Linux is still a bit of confusion for me).

    Is this installed with the latest M2 release of Zimbra? I've just installed that so I'll give your instructions a run later today. Many thanks for the details.

    Regards

    Bill
    Last edited by phoenix; 11-17-2005 at 09:10 AM.

  3. #3
    JoshuaPrismon is offline Zimlet Guru & Moderator
    Join Date
    Nov 2005
    Posts
    477
    Rep Power
    9

    Default

    Quote Originally Posted by phoenix
    Hi

    Yes, I was asking about DPSAM a while back but haven't had much chance to do anything with it (Linux is still a bit of confusion for me).

    Is this installed with the latest M2 release of Zimbra? I've just installed that so I'll give your instructions a run later today. Many thanks for the details.

    Regards

    Bill
    Yes. This is on top of M2. I am still working out how to automatically train on the junk mail folder, so watch for that.

  4. #4
    phoenix is online now Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,201
    Rep Power
    56

    Default

    Hi

    I've just managed to get this installed and working, however, a question arises. For the build of DSPAM should I be logged in as root or the Zimbra user? I assumed it was root but after a few fruitless attempts with restarting Zimbra and DPSAM not starting I found that the dspam executable and .conf files belonged to the group 'mail' (everything else belonged to root) and weren't being executed. When I changed the group to zimbra on those files DPSAM came up without problems, all the instructions were cut/paste so I didn't make any typos. Any thoughts on that?

    Nice clear instructions BTW.

    Regards

    Bill
    Last edited by phoenix; 11-17-2005 at 09:44 AM.

  5. #5
    JoshuaPrismon is offline Zimlet Guru & Moderator
    Join Date
    Nov 2005
    Posts
    477
    Rep Power
    9

    Default

    Quote Originally Posted by phoenix
    Hi

    I've just managed to get this installed and working, however, a question arises. For the build of DSPAM should I be logged in as root or the Zimbra user? I assumed it was root but after a few fruitless attempts with restarting Zimbra and DPSAM not starting I found that the dspam executable and .conf files belonged to the group 'mail' (everything else belonged to root) and weren't being executed. When I changed the group to zimbra on those files DPSAM came up without problems, all the instructions were cut/paste so I didn't make any typos. Any thoughts on that?

    Nice clear instructions BTW.

    Regards

    Bill

    NEVER never never never never never run anything perl as root if you can possibly avoid it. DSPAM Is mostly perl, so try and avoid it if possible.

    And yes, you should be logged in as zimbra for everything. Sorry about not stating that more explicitly.

  6. #6
    phoenix is online now Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,201
    Rep Power
    56

    Default

    Hi

    Thanks for that info, unfortunately it raises more questions from me.

    I followed the instructions and everything gets created OK. The /var/dspam with an owner/group of 'zimbra' but the /opt/dspam still gets created with an owner/group of 'root' with the dspam executable & dspam.conf file having a group of 'mail'. With those settings dspam isn't recognised and, as I said in an earlier post, if I change the group setting for dspam executable and conf file to 'zimbra' it works fine. Obviously if I configure dspam with "--with-dspam-owner=zimbra --with-dspam-group=zimbra" they get created successfully.

    So I suppose the questions are: should I be getting the root/mail owner by default?; should I use the configure options to set them as zimbra; am I doing something wrong with this configure?

    I must say that once I change the two group owners then DSPAM gets recognised by Zimbra. Many thanks for your help.

    Regards

    Bill

  7. #7
    JoshuaPrismon is offline Zimlet Guru & Moderator
    Join Date
    Nov 2005
    Posts
    477
    Rep Power
    9

    Default

    Quote Originally Posted by phoenix
    Hi

    Thanks for that info, unfortunately it raises more questions from me.

    I followed the instructions and everything gets created OK. The /var/dspam with an owner/group of 'zimbra' but the /opt/dspam still gets created with an owner/group of 'root' with the dspam executable & dspam.conf file having a group of 'mail'. With those settings dspam isn't recognised and, as I said in an earlier post, if I change the group setting for dspam executable and conf file to 'zimbra' it works fine. Obviously if I configure dspam with "--with-dspam-owner=zimbra --with-dspam-group=zimbra" they get created successfully.

    So I suppose the questions are: should I be getting the root/mail owner by default?; should I use the configure options to set them as zimbra; am I doing something wrong with this configure?

    I must say that once I change the two group owners then DSPAM gets recognised by Zimbra. Many thanks for your help.

    Regards

    Bill

    Erk. Oversight on my part. Because I had nothing else in /opt (and it didn't exist) /opt was created with zimbra as the owner, so I didn't need to sudo. You are absolutly correct. The owner of these files must be zimbra. I will fix the above.

  8. #8
    phoenix is online now Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,201
    Rep Power
    56

    Default

    OK, many thanks. I did think I was going slightly mad at one stage today.

    Regards

    Bill

  9. #9
    mintra is offline Special Member
    Join Date
    Nov 2005
    Location
    UK
    Posts
    117
    Rep Power
    9

    Default

    Tried this on a Zimbra2 server on CentOS,

    when running the configure command,

    configure: error: required include path for mysql headers /usr/include/mysql is not a directory

    so I tried just making an empty directory at /usr/include/mysql

    then run the configure command again,

    get this error
    configure: error: Required version of libmysqlclient not found

    Anyone have info on installing Zimbra/Dspam onto a CentOS (RHEL) Server?

    Thanks

  10. #10
    phoenix is online now Zimbra Consultant & Moderator
    Join Date
    Sep 2005
    Location
    Vannes, France
    Posts
    23,201
    Rep Power
    56

    Default

    Hi

    Yes, I use CentOS 4.2 - the obvious questions are: do you have mysql installed and what does a 'whereis mysql' (no quotes) return.
    Regards


    Bill


    Acompli: A new adventure for Co-Founder KevinH.

Page 1 of 6 123 ... LastLast

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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