Arabic  Chinese (simplified)  Chinese (traditional)  French  German  Italian  Japanese  Korean  Portuguese  Russian  Spanish 

SME Server

From ASSPSMTP

Jump to: navigation, search
  1. Download the latest ASSP from Downloads
  2. In SME Server Manager create a user called ASSP. (Lowercase)
  3. Create the following pseudonyms all pointing to ASSP user
    • assphelp
    • asspspam
    • asspnotspam
    • asspwhite
    • asspnotwhite
    • asspred
    • asspnotred
  4. SSH to the server console and create a directory on the SME Server /usr/local/assp and unzip the downloaded file above into this directory
  5. To install the various Perl modules:
    1. Install GCC via the SME Server Manager by doing the following:
      1. Software Installer
      2. Install Additional Software (Refer to SME Docs to enable this)
      3. Search for gcc.i386 3.4.6-8
      4. Once done ignore the request to reconfigure as you will do this later
    2. in your ssh session enter perl -MCPAN -eshell
      • If this is the first time you have done this you will have to setup the perl interface. Follow the onscreen prompt and accept most of the defaults.
    3. Once done with this install the needed perl modules by doing the following (and wait for the prompt after each install):
      • install Bundle::CPAN
      • install Net::LDAP
      • install Tie::RDBM
      • install Net::DNS
      • install Mail::SPF::Query
      • install Mail::SRS
      • install Email::Valid
      • install File::ReadBackwards
      • install Time::HiRes
      • install LWP::Simple
      • install Compress::Zlib
      • install Sys::Syslog
    4. exit CPAN shell
  6. You now need to make a few SME Server changes
    1. Allow external access to port 25
      config set manta service access public status enabled
      TCPPort 25 /sbin/e-smith/signal-event remoteaccess-update
    2. Set QMail port to 125
      db configuration setprop smtpd TCPPort 125
      db configuration setprop smtpd TCPProxyPort 125
      /sbin/e-smith/signal-event email-update
  7. Change ownership of /usr/local/assp and all subdirs to assp with this command:
    chmod -R assp.assp /usr/local/assp
  8. You can now start ASSP with perl /usr/local/assp/assp.pl
  9. You will now also be able to access the GUI with http://<servernameoripaddress>:55555
  10. I also do the following
    1. In /etc/rc.local add a line to start assp whenever you reboot the server /usr/bin/perl /usr/local/assp/assp.pl
    2. I create a shortcut to see log activity
      1. create /usr/bin/assplog wit the following contents
        #!/bin/bash
        tail -f /usr/local/assp/maillog.txt
    3. I also created a script to check if assp is running and if not to auto start it
      1. Create a directory /usr/local/scripts/
      2. Create a file /usr/local/scripts/checkassp.sh wit the following contents:
        #!/bin/bash

        assprunning=`ps aux |grep assp.pl |grep -v root|wc -l`
        if [ $assprunning -lt 1 ]
        then
        /usr/bin/perl /usr/local/assp/assp.pl
        fi
    4. Once you have created these 2 files do
      chmod 755 /usr/local/scripts/checkassp.sh
      chmod 755 /usr/bin/assplog
    5. Also add /usr/local/scripts/checkassp.sh to the crontab for root by doing
      crontab -e
      Add a line A*/1 * * * * /usr/local/scripts/checkassp.sh The one indicates that it checks every minute. You can change this as needed. Some of my clients have this set to 5 others that rely on email more has it set to 1.
  11. when you want to check active log activity run assplog from the ssh cli
  12. Also test your cron by running assplog and at the same time go into the assp GUI and terminate assp. ASSP should restart automatically.
  13. The last step is to uninstall GCC by doing
    1. SME Server Manager Software installer
    2. Remove Installed software
    3. Search for gcc.i386 3.4.6-8 and click remove.
    4. Reconfigure your server now
  14. After the reboot check that you can access port 25 via telnet. If you can then ASSP and qmail is working together well. You can now configure assp via the gui.
These icons link to social bookmarking sites where readers can share and discover new web pages. Blinklist  del.icio.us  digg  Furl  Google  ma.gnolia  Reddit  Slashdot  Spurl  YahooMyWeb 
Personal tools