• Lunix version installed but no sign of life

    By Anthony Waddell 2 decades ago

    Please could Linux experts help me with an installation



    We have just installed kSpam on a Windows server and it is working fine.



    But we tried to install on a Linux box and there is no sign of life. Both setups are setup for the default Bayesian filtering options. No mail gets routed to the mailggod and mailspam nsf's that we created.



    If we LOAD KSPAM from the console, it does not report an error, and I can see no errors in the logs. I don't know if it is working there in the background somewhere, with a simple configuration error, or if is not working at all.



    We followed the instructions with some small changes. Maybe a Linux expert can see if I did the right thing:



    I have noted the changes that we made to the official install instructions by embracing the comment in asterixes



    Note that our Domino programme folder is/opt/lotus/notes/65000/linux

    Our data folder is home/notesdata



    >>instructions follow>>

    • Copy the executables to the directory/opt/lotus/notes/latest/linux

      We copied to/opt/lotus/notes/65000/linux
    • edit your notes.ini
      add: Extmgr_addins=libkspam.so<br/>
      add: ServerTasks=....., kspam<br/>
      
    • Configure kspam.





      I also got these instructions from Jack "LJ" Wilson;






    • Setup these environment variables (I put mine in root's ~/.bash_profile). These are from the Domino Notes API user guide:

      lotus capi setup

      export LOTUS=/opt/lotus

      export NOTES_DATA_DIR=/home/notes/data

      We said export NOTES_DATA_DIR=/home/notesdata

      export Notes_ExecDirectory=/opt/lotus/notes/latest/linux

      ** We said export NOTES_DATA_DIR=/opt/lotus/notes/65000/linux

      export PATH="$NOTES_DATA_DIR:$PATH"


    • Change the permissions/owner of the binaries after they are compiled:

      as root:

      cd/opt/lotus/notes/latest/linux

      chmod 555 kspam

      chown root.daemon kspam



      So they would should look like:

      -r-xr-xr-x 1 root daemon 56704 Mar 13 07:40 kspam

      -r-xr-xr-x 1 root daemon 61428 Mar 13 07:34 libkspam.so



      <<instructions end<<



      On another question which may explain the problem, I note that our Domino user appears not to be root, but dom06. Would this make a difference? Must I change the permissions to that user?



      Many thanks for any help
    • some try to help

      By Hans-Georg Franke 2 decades ago

      >>>Please could Linux experts help me with an installation

      I am not an expert but i will try to help





      >>>We have just installed kSpam on a Windows server and it is working fine.



      >>>But we tried to install on a Linux box and there is no sign of life. Both setups are setup for the default Bayesian

      >>>filtering options. No mail gets routed to the mailggod and mailspam nsf's that we created.



      >>>If we LOAD KSPAM from the console, it does not report an error, and I can see no errors in the logs. I don't know if

      >>>it is working there in the background somewhere, with a simple configuration error, or if is not working at all.



      login as root and try this command



      ps -ef | grep dom06



      do you see kspam running?





      >>>We followed the instructions with some small changes. Maybe a Linux expert can see if I did the right thing:



      >>>I have noted the changes that we made to the official install instructions by embracing the comment in asterixes



      >>>Note that our Domino programme folder is/opt/lotus/notes/65000/linux



      Normaly the IBM installer will make a link to "latest". Looking like this



      compi:/opt/lotus/notes # ll

      total 0

      dr-xr-xr-x 3 root root 96 Jun 30 06:55 .

      dr-xr-xr-x 5 root root 216 Feb 1 2004 ..

      dr-xr-xr-x 3 root root 72 Aug 28 2003 65010

      lrwxrwxrwx 1 root root 5 Aug 15 00:27 latest -> 65010









      >>>Our data folder is home/notesdata



      >>>>>instructions follow>>

      >>>- Copy the executables to the directory/opt/lotus/notes/latest/linux

      We copied to/opt/lotus/notes/65000/linux

      >>>- edit your notes.ini

      >>>add: Extmgr_addins=libkspam.so

      >>>add: ServerTasks=….., kspam

      >>>- Configure kspam.









      >>>I also got these instructions from Jack "LJ" Wilson;







      >>>- Setup these environment variables (I put mine in root's ~/.bash_profile). These are from the Domino



      You should add this to the bash_profile of your domino user. Then do a login as dom06 (or use "su - dom06" to load the korrekt environment!) before starting the domino server.



      Notes API user guide:

      >>>#lotus capi setup

      >>>export LOTUS=/opt/lotus

      >>>export NOTES_DATA_DIR=/home/notes/data

      >>> We said export NOTES_DATA_DIR=/home/notesdata

      >>>export Notes_ExecDirectory=/opt/lotus/notes/latest/linux

      >>>
      * We said export NOTES_DATA_DIR=/opt/lotus/notes/65000/linux



      you mean:

      Notes_ExecDirectory=/opt/lotus/notes/65000/linux



      Be aware of capitalization. Write the environmentvariables excatly as they are written.



      >>>export PATH="$NOTES_DATA_DIR:$PATH"



      >>>- Change the permissions/owner of the binaries after they are compiled:

      >>>as root:

      >>>cd/opt/lotus/notes/latest/linux

      >>>chmod 555
      kspam

      >>>chown root.daemon
      kspam*



      >>>So they would should look like:

      >>>-r-xr-xr-x 1 root daemon 56704 Mar 13 07:40 kspam

      >>>-r-xr-xr-x 1 root daemon 61428 Mar 13 07:34 libkspam.so



      >>><


      >>>On another question which may explain the problem, I note that our Domino user appears not to be root, but dom06. Would this

      >>>make a difference? Must I change the permissions to that user?



      Domino 6 or greater doesn't run as user root. You must change to a specific user (like dom06).



      If you do a "load kspam" at the console and don't see "Originally by Tom Lyne" then kspam doesn't start. Can you start it inside a

      shell? Use this commands:



      cd/home/notesdata

      /opt/lotus/notes/65000/linux/kspam



      Are there any messages?







      >>>Many thanks for any help



      Greetings Hans-Georg