Results 1 to 31 of 31
  1. #1
    Join Date
    Sep 2002
    Location
    Top Secret
    Posts
    11,522

    Howto: ASSP installation in CPanel

    What is ASSP? ASSP is an Anti-Spam SMTP Proxy . The homepage can be found here. ASSP is a lightweight daemon that can filter mail based on various things such as SPF, RBLs, Bayesian word lists, as well as blocking email addresses from getting mail, or having mail filtered.
    This tutorial will walk you through getting the admin interface for CPanel setup for ASSP. Currently, a paid user interface can be obtained here (note that I am in no way affiliated with, nor have I tried to use this UI, I am just offering the link to those that might find it useful)

    Firstly, the setup:
    You will need to activate Cpanel PRO (pro.cpanel.net/activate) for your server in order for this to fully work. This activation is currently free. Simply go to the previous mentioned URL and enter your IP address if you have not done so already.
    Once you have activated CPanel PRO, go into whm->addon modules and check clamav connector, then click on "save". This will install clamav for you to use
    Once you have done THIS, go to whm->service manager and UNcheck spamd (it is no longer necessary with ASSP), and again click on save/submit. Note that this IS optional, however the purpose of ASSP is to defeat spam before it GETS to SpamAssassin.
    Once you have done THAT, go into whm -> tweak settings and uncheck SpamAssassin and BoxTrapper mail.

    Secondly, the requirements:
    ASSP needs certain perl modules established To install these, simply login (as root) to your server, and type the following
    Code:
    /scripts/perlinstaller --force Compress::Zlib
    /scripts/perlinstaller --force Email::Valid
    /scripts/perlinstaller --force File::ReadBackwards
    /scripts/perlinstaller --force File::Scan::ClamAV
    /scripts/perlinstaller --force Mail::SPF::Query
    /scripts/realperlinstaller --force Mail::SRS
    /scripts/realperlinstaller --force Tie::RDBM
    /scripts/realperlinstaller Sys::Syslog
    /scripts/perlinstaller --force Net::LDAP
    /scripts/perlinstaller --force Time::HiRes
    /scripts/perlinstaller --force Tie::DBI
    Note that the --force is optional, however it will make sure you've got it installed. Do these one at a time as some of these have configurable options to them.
    One more perl module is needed. Since the later versions of Net::DNS are known to cause issues with RBLs, SPFs and the like, it is advised to use 0.57 . This can be obtained by doing the following:
    Code:
    mkdir /usr/local/assp
    cd /usr/local/assp
    mkdir /usr/local/assp/tmp
    cd /usr/local/assp/tmp
    wget http://www.net-dns.org/download/Net-DNS-0.57.tar.gz
    tar xzf Net-DNS-0.57.tar.gz
    cd Net-DNS-0.57
    perl Makefile.PL
    make
    make test
    make install
    Do NOT remove the /usr/local/assp/tmp directory as when you update cpanel, it will try to auto update Net::DNS again, so you will want this intact.

    Now, let's get with the program here and install ASSP:
    Code:
    cd /usr/local/assp
    wget http://switch.dl.sourceforge.net/sourceforge/assp/ASSP_1.2.6-Install.zip
    unzip -d /usr/local/assp /usr/local/assp/ASSP_1.2.6-Install.zip
    mv --target-directory=/usr/local/assp /usr/local/assp/ASSP/*
    mv --target-directory=/usr/local/assp /usr/local/assp/ASSP/.DS_Store
    rm -rf /usr/local/assp/__MACOSX
    rm -rf /usr/local/assp/ASSP
    rm -f ASSP_1.2.6-Install.zip
    rm -f Win32-quickstart-guide.txt;rm -f freshclam.bat
    cd /usr/local/assp
    mkdir pb
    cd pb
    touch denysmtp.txt
    touch exportedextreme.txt
    touch pbdb.black.db
    touch pbdb.rbl.db
    touch pbdb.white.db
    cd /usr/local/assp
    mkdir /usr/local/assp/notspam
    mkdir /usr/local/assp/spam
    mkdir /usr/local/assp/errors
    mkdir /usr/local/assp/errors/notspam
    cd /usr/local/assp
    wget http://www.grscripts.com/service/start
    chmod 755 start
    wget http://www.grscripts.com/service/stop
    chmod 755 stop
    cd /etc/rc.d/init.d
    wget http://www.grscripts.com/service/assp
    chmod 755 assp
    The core of ASSP is now installed. However, the development versions have updated functions to use for users. Of course, this is completely optional, but is recommended completely. This can be done by the following in SSH
    Code:
    cd /usr/local/assp/
    mv assp.pl assp.pl_old
    mv spamdb spamdb.old
    mv rebuildspamdb.pl rebuildspamdb.pl.old
    mv repair.pl repair.pl.old
    mkdir Data
    mkdir Data/Lists
    wget http://www.magicvillage.de/~Fritz_Borgstedt/assp/05B0C8D4-000F4555.1/info.png
    wget http://www.magicvillage.de/~Fritz_Borgstedt/assp/05B0C8D4-000F4555.2/rebuildspamdb.pl
    wget http://www.magicvillage.de/~Fritz_Borgstedt/assp/05B0C8D4-000F4555.3/repair.pl
    wget http://www.magicvillage.de/~Fritz_Borgstedt/assp/05B0C8D4-000F4555.5/assp.css
    mv assp.css images
    wget http://www.magicvillage.de/~Fritz_Borgstedt/assp/05B0C8D4-000F4555.6/assp.pl
    cd Data/Lists
    wget http://www.magicvillage.de/~Fritz_Borgstedt/assp/05B0C8D4-000F4555.0/URIBLCCTLDS.txt
    chmod u+x /usr/local/assp/*.pl
    Now, let's get it up and running, and configure it, shall we?
    Code:
    cd /usr/local/assp
    /etc/init.d/assp start
    You'll see ASSP sending out some messages and then doing nothing. This is ok, and it's the expected response. Now, we need to edit some stuff. Hit ctrl-c (cancel) to shut down ASSP
    once it's stopped, you'll see the following file in the assp directory - assp.cfg . Edit that with whatever you want for an editor, something like:
    Code:
    nano assp.cfg
    You want to change a few options immediately just to get it working
    Look for the lines that are something like:
    Code:
    runAsGroup:=
    runAsUser:=
    and change them to be:
    Code:
    runAsGroup:=root
    runAsUser:=root
    Then look for the line that is
    Code:
    AsADaemon:=
    and change it to
    Code:
    AsADaemon:=1
    Now, let's change the password just so that we're secure:
    look for the line that is
    Code:
    webAdminPassword:=nospam4me
    and change that to
    Code:
    webAdminPassword:=insertrandompasswordhere
    Now, let's tell ASSP to setup and accept mail for our domains. Look for the line something like
    Code:
    localDomains:=
    and change that to be
    Code:
    localDomains:=file:/etc/localdomains
    Almost there, just a couple more changes needed.
    Look for the line that is something like
    Code:
    smtpDestination:=127.0.0.1:225
    and change that to be
    Code:
    smtpDestination:=127.0.0.1:125
    (or another port instead of 125, just REMEMBER the port!!)
    and one more change
    change the line that looks like
    Code:
    listenPort:=125
    to
    Code:
    listenPort:=25
    Now save and exit the file. If you're using nano/pico, that would be ctrl-x , just make SURE to save the file before you exit!
    Now, let's get ASSP fired up again
    Code:
    /etc/init.d/assp start
    let's make sure you have assp starting on system boot:
    Code:
    chkconfig --add assp
    Let's add a crontab to make sure that ASSP rebuilds the bayesian spam list
    crontab -e
    Code:
    10 4 * * * cd /usr/local/assp;/usr/local/assp/rebuildspamdb.pl
    Occasionally, what I've seen is ASSP will get "hung" on certain things and just kill itself. This fix will work for this, and make sure your ASSP installation is running smoothly

    Open up another file on the server, my example will be /bin/asspcheck. In this file, add the following contents
    Code:
    assplog=/usr/local/assp/check.log
    DATE=`date "+%m-%d-%y [%k:%M]"`
    pidof=/usr/local/assp/pid
    thispid=`cat $pidof`
    if [ ! -d /proc/$thispid ];then
    rm -rf $pidof;
    /etc/init.d/assp start
    echo "$DATE - ASSP - restarted" >> $assplog
    else
    echo "$DATE - ASSP - ok" >> $assplog
    fi
    Now, chmod the file itself
    Code:
    chmod u+x /bin/asspcheck
    Now, make sure it's called every 60 seconds. Add this to your root crontab
    crontab -e
    Code:
    * * * * * /bin/asspcheck
    Now, let's go BACK into WHM and setup the variables needed to get exim to use ASSP
    In exim configuration editor, click on "advanced editor"
    Clear out EVERYTHING from all of the existing boxes. Keeping these with data can cause ASSP to not function as it should
    When you've done that, add the following to the top box:
    Code:
    # assp
    local_interfaces = 127.0.0.1.125
    If you changed this variable to something else
    Code:
    smtpDestination:=127.0.0.1:125
    put in the other port, NOT 125, so it would look like 127.0.0.1.whateverporthere

    Click on Save
    Exim will restart and you now have a working installation of assp

    Now, let's go to it and work with it a bit, shall we?
    go to http://yourip:55555 , enter the user admin and the password you changed nospam4me to. This will get you logged in and you can tweak the settings as you feel necessary.

    ASSP is a great and powerful proxy for any mail server, which blocks using RBLS, whitelists, etc. It is advisable to setup the email interface and let your customers know of this so that you can get them to help you in reporting and addressing spam.
    Parts of this howto were taken from this page, however much of that data has been found to be outdated as far as downloads from CVS and the like go, and I've added quite a bit of useful information into it as well.

    Go through the ASSP configuration VERY carefully, and ONLY change what you're sure of. Start with the RBLs, increase the list to 5 and max hits to 2 as suggested.
    If you notice problems with this or know how it might be better, hey, feel free to post in here and I'll keep it as updated as possible :)
    WHMCS Guru - WHMCS addons, management, support and more.
    WHMCS Notifications Extended - Add slack, hipchat, SMS, pushover to WHMCS !!
    Linux Problems? WHMCS Issues? +1-866-546-8914 (linux-14) or @whmcsguru on twitter!
      0 Not allowed!

  2. #2
    Join Date
    Dec 2006
    Posts
    34
    Nice sum-up
      0 Not allowed!

  3. #3
    Join Date
    Apr 2006
    Posts
    503
    great how to!
      0 Not allowed!

  4. #4
    Join Date
    Mar 2005
    Posts
    359
    Very good. Thanks very much.
      0 Not allowed!

  5. #5
    Join Date
    Jun 2003
    Location
    Indiana, US
    Posts
    1,354
    Will this How-To also work for the new 1.3.0?
      0 Not allowed!

  6. #6
    Join Date
    Sep 2002
    Location
    Top Secret
    Posts
    11,522
    Quote Originally Posted by Ran
    Will this How-To also work for the new 1.3.0?
    ASSP isn't officially at 1.3.0 (yet).
    Once this is an official release, I'll update the howto
    WHMCS Guru - WHMCS addons, management, support and more.
    WHMCS Notifications Extended - Add slack, hipchat, SMS, pushover to WHMCS !!
    Linux Problems? WHMCS Issues? +1-866-546-8914 (linux-14) or @whmcsguru on twitter!
      0 Not allowed!

  7. #7
    Join Date
    Sep 2002
    Location
    Top Secret
    Posts
    11,522
    This should work without problems to update to 1.3.0. IF you already have assp installed:

    -- Login to your server (ssh) as root
    -- STOP assp
    Code:
    /etc/init.d/assp stop
    Go into the assp directory, and get the new stuff
    Code:
    cd /usr/local/assp
    mkdir files
    cd files
    wget http://www.magicvillage.de/~Fritz_Borgstedt/assp/S05B0C8D4.4/ipwl.txt
    wget http://www.magicvillage.de/~Fritz_Borgstedt/assp/S05B0C8D4.5/ipnp.txt
    wget http://www.magicvillage.de/~Fritz_Borgstedt/assp/S05B0C8D4.10/nodelay.txt
    wget http://www.magicvillage.de/~Fritz_Borgstedt/assp/S05B0C8D4.8/invalidptr.txt
    wget http://www.magicvillage.de/~Fritz_Borgstedt/assp/S05B0C8D4.7/blackdomains.txt
    wget http://www.magicvillage.de/~Fritz_Borgstedt/assp/S05B0C8D4.11/bombre.txt
    wget http://www.magicvillage.de/~Fritz_Borgstedt/assp/S05B0C8D4.0/URIBLCCTLDS.txt
    cd ../images/
    rm -rf assp.css
    wget http://www.magicvillage.de/~Fritz_Borgstedt/assp/S05B0C8D4.1/info.png
    wget http://www.magicvillage.de/~Fritz_Borgstedt/assp/S05B0C8D4.2/assp.css
    cd ../
    ls
    mv assp.pl assp.pl.stable
    mv rebuildspamdb.pl rebuildspamdb.stable
    mv repair.pl repair.pl.stable
    wget http://www.magicvillage.de/~Fritz_Borgstedt/assp/S05B0C8D4.6/repair.pl
    wget http://www.magicvillage.de/~Fritz_Borgstedt/assp/S05B0C8D4.3/rebuildspamdb.pl
    wget http://www.magicvillage.de/~Fritz_Borgstedt/assp/S05B0C8D4.12/assp.pl
    RE-Start assp
    Code:
    /etc/init.d/assp start
    If you do NOT already have assp installed:
    Follow the instructions in the FIRST post UP TO
    The core of ASSP is now installed. However, the development versions have updated functions to use for users. Of course, this is completely optional, but is recommended completely. This can be done by the following in SSH
    Once you get to THAT point, then follow the instructions in this post.
    Skip that entire section in the original post
    Once you've done the beta update stuff, then you can resume the instructions in the ORIGINAL post, beginning with:
    chmod u+x /usr/local/assp/*.pl
    Now, let's get it up and running, and configure it, shall we?
    Of course, if you want to wait until March 1st, 1.3.0 will be out stable (or so says the ASSP website )
    WHMCS Guru - WHMCS addons, management, support and more.
    WHMCS Notifications Extended - Add slack, hipchat, SMS, pushover to WHMCS !!
    Linux Problems? WHMCS Issues? +1-866-546-8914 (linux-14) or @whmcsguru on twitter!
      0 Not allowed!

  8. #8
    secure smtp service is not available anymore, it stop after we applied assp on our server. is there anyway to enable secure smtp again?
      0 Not allowed!

  9. #9
    Hi,


    How can I know if it's really work when my installation is just new on the server ? Thank you.

    Best Regards,
      0 Not allowed!

  10. #10
    I have some CPU High Loads...

    ASSP require a High load? ASSP stop any e-mail where not is SPAM?


    Thank's for How To...!
    http://www.webrazuca.com/ - weBrazuca do Brasil
      0 Not allowed!

  11. #11
    Join Date
    Sep 2002
    Location
    Top Secret
    Posts
    11,522
    Quote Originally Posted by weBrazuca
    ASSP require a High load?
    No, ASSP does not load your server down at all. In fact, compared to SpamAssassin (the CPanel alternative as it were), it handles things MUCH easier, as it doesn't parse stupid user rules.

    Quote Originally Posted by weBrazuca
    ASSP stop any e-mail where not is SPAM?
    Anything you get to do this will do that, even SpamAssassin will. The good thing about ASSP though is that it is intuitive and LEARNS whom you mail, causing the system to whitelist them, and it takes user interaction (nospam, spam, whitelist reports). As well, ASSP can be told to set in "training mode" which will send everything to you if it thinks it might be spam.
    Quote Originally Posted by VVIP
    How can I know if it's really work when my installation is just new on the server ? Thank you.
    If you go to the admin interface (port 55555 unless you change it) and log in, you will see a 'Info and Stats' page. This will tell you how well it is working and what it is doing.
    Quote Originally Posted by wafer
    secure smtp service is not available anymore, it stop after we applied assp on our server. is there anyway to enable secure smtp again?
    Directly from the ASSP FAQ ( a good thing to read before you set something like this up)
    Q: Can ASSP be run with SSL / TLS connections?

    No - not natively. Natively, ASSP only works with non-SSL connections. However, there are possibilities to use SSL for your email users to protect their authentication process. Third party utilities such as stunnel (http://stunnel.mirt.net) allow you to use SSL/TLS to encrypt connections between your outside party and ASSP. There is only one caveat; stunnel works as a proxy between your outside connection and ASSP. Consequently, ASSP sees the connection as originating from stunnel (typically 127.0.0.2), and not the sending party. This means that all connection checks (delaying, greylisting, RBL, etc) would not work with these connections. Consequently, if you want to use stunnel to protect any SMTP authentication process with your clients, you should prevent all non-AUTH connections to this port. This can be accomplished by setting the endport of stunnel to "Another Listen Port" (in Network Setup), and enabling "Enforce AUTH before MAIL FROM when connecting to second SMTP port". This will prevent any non-authenticated users from sending email through the encrypted stunnel connection.
    WHMCS Guru - WHMCS addons, management, support and more.
    WHMCS Notifications Extended - Add slack, hipchat, SMS, pushover to WHMCS !!
    Linux Problems? WHMCS Issues? +1-866-546-8914 (linux-14) or @whmcsguru on twitter!
      0 Not allowed!

  12. #12
    Join Date
    Mar 2007
    Location
    Washington State
    Posts
    1,083
    Is this worth it, what are your opinions on this. Do you guys like it?
      0 Not allowed!

  13. #13
    Join Date
    Mar 2007
    Location
    1010010101
    Posts
    231
    ASSP looks good for Internet webmail access but when clients use Outlook or ThunderBird to download (POP3) e-mails from the server and they receive a spam e-mail, what do they do to mark that e-mail is a spam and how ASSP on the server will know about that to add in its database list ?
      0 Not allowed!

  14. #14
    Join Date
    Sep 2002
    Location
    Top Secret
    Posts
    11,522
    ASSP has nothing to do with the "mail client" at all. It has everything to do with the SMTP server, as it forwards all mail to the REAL SMTP server after the garbage is filtered out.

    what do they do to mark that e-mail is a spam
    Any decently developed mail client has filters that can scan headers. If the message is marked spam by ASSP, and it's being delivered, they can move that to a special folder, or simply forward it to the interface for blocking.


    Is it worth it? Most definitely. Regardless of the mail client you're using, it is worth it. Regardless of the setup you are using, it is worth it. You won't find much else as smart as ASSP is.
    WHMCS Guru - WHMCS addons, management, support and more.
    WHMCS Notifications Extended - Add slack, hipchat, SMS, pushover to WHMCS !!
    Linux Problems? WHMCS Issues? +1-866-546-8914 (linux-14) or @whmcsguru on twitter!
      0 Not allowed!

  15. #15
    Join Date
    Mar 2007
    Location
    1010010101
    Posts
    231
    Is the special folder has to be the same name as the one on the server: spam & not spam ? Will ASSP update this folder on next download ?
      0 Not allowed!

  16. #16
    Hi...

    Thank's for anwser...can be installed for cPanel?
    http://www.webrazuca.com/ - weBrazuca do Brasil
      0 Not allowed!

  17. #17
    Join Date
    Mar 2007
    Location
    1010010101
    Posts
    231
    The tutorial is based on Cpanel installation.
      0 Not allowed!

  18. #18
    easiest way to install assp on cpanel? use isprohosting.com's assp installer.

    from his cpanel forums post:
    You may try to install our FREE ASSP addon from http://www.sultanserver.com/projects/asspx.tar.gz

    It works for us already in production and actually it works better than Exim-tweaks based setup.

    We are working on cPanel interface so soon it will be the great free script
    it installs assp as a whm addon and it comes preconfigured with a lot of settings to make it run "out-of-the-box".
      0 Not allowed!

  19. #19
    Join Date
    Mar 2007
    Location
    1010010101
    Posts
    231
    Quote Originally Posted by boeki
    easiest way to install assp on cpanel? use isprohosting.com's assp installer.

    from his cpanel forums post:


    it installs assp as a whm addon and it comes preconfigured with a lot of settings to make it run "out-of-the-box".

    Actually, in version.txt file says 1.0.7. Do you know if it is a version of their script or the version of assp it uses ? Thank you.
      0 Not allowed!

  20. #20
    Quote Originally Posted by MyHostingTalk
    Actually, in version.txt file says 1.0.7. Do you know if it is a version of their script or the version of assp it uses ? Thank you.
    it's the script's verison. it will install the latest assp 1.3.1, i think.

    i was struggling with assp's gazillion settings but this script set everything (well, almost) for me and it run fine.

    plus, it'll post in whm anything it finds wrong with the setup.

    ps. i am not the developer. i also just downloaded it from isprohosting's site.
      0 Not allowed!

  21. #21
    Join Date
    Sep 2002
    Location
    Top Secret
    Posts
    11,522
    Quote Originally Posted by boeki
    easiest way to install assp on cpanel? use isprohosting.com's assp installer.
    This doesn't actually do a thing to check to make sure the perl modules are installed, firstly. Secondly, at least ONE part of that specific script was taken (without my permission mind you) from this thread, and the author is trying to claim it as his own. The user doesn't even try to hide this:

    [email protected] [~/assp/asspx/asspscripts]# pico asspcheck
    Code:
    
    #!/bin/sh
    # License:      Copyright (c) 2006-2007 by SultanServer.com
    #               Read included LICENSE.TXT for terms and conditions of use.
    #
    # Version:      Read included asspxversion.txt
    #
    # Description:  ASSP X WHM addon to manage ASSP installation and configure ASSP on per domain level on cPanel servers.
    #               ASSP daemon automatic check and restart.
    
    assplog=/usr/local/assp/check.log
    DATE=`date "+%m-%d-%y [%k:%M]"`
    pidof='/usr/local/assp/pid'
    if [ -e "$pidof" ]; then
            thispid=`cat $pidof`
            if [ ! -d "/proc/$thispid" ]; then
                    /bin/rm -rf $pidof;
                    /etc/init.d/assp stop   # false proof
                    /etc/init.d/assp start
                    echo "$DATE - ASSP - restarted" >> $assplog
            else
                    echo "$DATE - ASSP - ok" >> $assplog
            fi
    else
            /etc/init.d/assp stop   # false proof
            /etc/init.d/assp start
            echo "$DATE - ASSP - restarted" >> $assplog
    fi
    The only thing the user did was add a minor check to the script that's not necessary, because ASSP won't even STOP without that pid. Never once have I seen that issue.

    This is why people are so hesitant to do stuff like this for free and "open source" any more . People take it, steal it, then claim "oh , it's MY work", trying to copyright it


    Is it a good resource? It might be, however trying to steal someone else's work and call it yours, not going to cut it. I mean come on now!!!
    WHMCS Guru - WHMCS addons, management, support and more.
    WHMCS Notifications Extended - Add slack, hipchat, SMS, pushover to WHMCS !!
    Linux Problems? WHMCS Issues? +1-866-546-8914 (linux-14) or @whmcsguru on twitter!
      0 Not allowed!

  22. #22
    i actually started off with linux-tech's how-to but i had a lot of trouble with it as some of the links (wget to the txt and pl files) point to the wrong stuff (e.g., scripts contain regex list, html, etc.)

    example:
    wget http://www.magicvillage.de/~Fritz_Bo...buildspamdb.pl

    file content:
    body, p, td {
    font-size: 11pt; font-family: Verdana, Arial, Helvetica,
    sans-serif; color: #666666; padding: 2px; margin: 0; background-color: #e9e9e9;
    }
    a {
    font-weight: bold; color: #666666; }
    a:hover {
    color: black;
    text-decoration: none; }
    img {
    border-style: none; }
    ........
    ........(snipped off)
    modified this, modified that, and i finally got it going. next problem came when it was time to configure assp as this how-to doesn't help out much on this.

    isprohosting's script installed the rules and configuration files for me and it was a matter of reviewing it to see if they were suited for my boxes.

    my gratitude goes to linux-tech and isprohosting.
      0 Not allowed!

  23. #23
    This doesn't actually do a thing to check to make sure the perl modules are installed
    well, actually it does. the whm addon script does that from what i understand about it.
      0 Not allowed!

  24. #24
    Join Date
    Sep 2002
    Location
    Top Secret
    Posts
    11,522
    some of the links (wget to the txt and pl files) point to the wrong stuff
    Perhaps you didn't notice this :
    the development versions have updated functions to use for users
    These are development versions and should never ever ever be used by individuals who do not want to run the risk of thoroughly hosing their own servers.

    The reason those files wouldn't download? That's because those are outdated. You should NEVER use development versions on your servers unless you know full well what you're doing and can backup quickly. The OFFICIAL version for ASSP is still 1.2.6, which still works with this:

    Code:
    wget http://switch.dl.sourceforge.net/sourceforge/assp/ASSP_1.2.6-Install.zip
    this how-to doesn't help out much on this.

    This howto tells you EVERYTHING you need to change. Anything else changed is unnecessary. The documentation is very thorough and self explanatory as to what does what.

    isprohosting's script installed the rules and configuration files for me and it was a matter of reviewing it to see if they were suited for my boxes.
    The rules and config are already installed, that's not something done by any "script", it's done by ASSP itself when you download it. If you followed the instructions in the first post as far as editing this, you would have had a running configuration within moments (sans the beta stuff).

    This is yet another reason NOT to use the tar file. Using betas can be very very hazardous to your health. An example:
    When moving from 1.2.6 to 1.3.0 (for the second tutorial, not the first), I suddenly found EVERYTHING was bouncing as a "relay". Why? There were problems with the perl script. Seeing this, I reverted back immediately, and resolved to try another day. When I tried last week (same configuration, same everything), everything went smoothly. The difference? A few days of development and the problem was resolved.

    UNLESS you're comfortable with the very same thing happening to you, STAY with the stable version. The others for now are CVS. When they update things on sourceforge, then I'll update the post with new instructions.

    Configuring ASSP is reasonably simple, it's not "tech speak". There are plenty of help links and documentation pages out specifying what does what. If you followed the instructions for modifying the initial configuration, you would have had it running in no time.
    WHMCS Guru - WHMCS addons, management, support and more.
    WHMCS Notifications Extended - Add slack, hipchat, SMS, pushover to WHMCS !!
    Linux Problems? WHMCS Issues? +1-866-546-8914 (linux-14) or @whmcsguru on twitter!
      0 Not allowed!

  25. #25
    Quote Originally Posted by linux-tech
    This doesn't actually do a thing to check to make sure the perl modules are installed, firstly. Secondly, at least ONE part of that specific script was taken (without my permission mind you) from this thread, and the author is trying to claim it as his own. The user doesn't even try to hide this:

    Code:
    
    #!/bin/sh
    # License:      Copyright (c) 2006-2007 by SultanServer.com
    #               Read included LICENSE.TXT for terms and conditions of use.
    #
    # Version:      Read included asspxversion.txt
    #
    # Description:  ASSP X WHM addon to manage ASSP installation and configure ASSP on per domain level on cPanel servers.
    #               ASSP daemon automatic check and restart.
    
    assplog=/usr/local/assp/check.log
    DATE=`date "+%m-%d-%y [%k:%M]"`
    pidof='/usr/local/assp/pid'
    if [ -e "$pidof" ]; then
            thispid=`cat $pidof`
            if [ ! -d "/proc/$thispid" ]; then
                    /bin/rm -rf $pidof;
                    /etc/init.d/assp stop   # false proof
                    /etc/init.d/assp start
                    echo "$DATE - ASSP - restarted" >> $assplog
            else
                    echo "$DATE - ASSP - ok" >> $assplog
            fi
    else
            /etc/init.d/assp stop   # false proof
            /etc/init.d/assp start
            echo "$DATE - ASSP - restarted" >> $assplog
    fi
    The only thing the user did was add a minor check to the script that's not necessary, because ASSP won't even STOP without that pid. Never once have I seen that issue.

    This is why people are so hesitant to do stuff like this for free and "open source" any more . People take it, steal it, then claim "oh , it's MY work", trying to copyright it


    Is it a good resource? It might be, however trying to steal someone else's work and call it yours, not going to cut it. I mean come on now!!!
    You should also notice that "stop" init script was also rewritten to kill all assp.pl instances so forcing stop do the trick for cases when ASSP pid was corrupted and assp.pl left in memory.

    We have got asspcheck script in the plain way with no comments so we have left it intact. I must apologize for that and you may find in the latest ASSP X 1.1.1 release that the script is entirely rewritten in perl. We may add the note to this script (like in init scripts released by Matt) that the idea is yours. PM me the line, please.
      0 Not allowed!

  26. #26
    Join Date
    Sep 2002
    Location
    Top Secret
    Posts
    11,522

    You should also notice that "stop" init script was also rewritten to kill all assp.pl instances
    Won't work, a simple test would have shown that.

    [email protected] [/usr/local/assp]# service assp stop
    Stopping ASSP Anti-SPAM Proxy server in /usr/local/assp
    /usr/local/assp/stop: line 11: kill: (198932) - No such process
    [email protected] [/usr/local/assp]# telnet localhost 25
    Trying 127.0.0.1...
    Connected to localhost (127.0.0.1).
    Escape character is '^]'.
    Oh darn, it's still running, can't do a thing about it.

    If it was stopped PROPERLY, it would be:
    [email protected] [/usr/local/assp]# service assp stop
    Stopping ASSP Anti-SPAM Proxy server in /usr/local/assp
    [email protected] [/usr/local/assp]# telnet localhost 25
    Trying 127.0.0.1...
    telnet: connect to address 127.0.0.1: Connection refused
    We have got asspcheck script in the plain way with no comments so we have left it intact
    You tried to take someone else's work as your own. That says a lot about you right there. Theft of property is unacceptable by any means. Trying to say YOU wrote something when you didn't is just wrong on so many levels it's not even funny.

    [edit]
    One last thing:
    When using that check script, you NEED to run it through cron every 60 seconds, not every 5 minutes as you have it setup. 5 minutes is alert time, not time to restart the mail server. In 5 minutes, a server can have so much mail backed up that it will take quite some time to process, and you will have people complaining like mad. The overhead is nothing, it looks for a file, logs and poof, less than 1s to do all of that I'm sure.
    [/edit]
    Last edited by whmcsguru; 03-11-2007 at 06:44 AM.
    WHMCS Guru - WHMCS addons, management, support and more.
    WHMCS Notifications Extended - Add slack, hipchat, SMS, pushover to WHMCS !!
    Linux Problems? WHMCS Issues? +1-866-546-8914 (linux-14) or @whmcsguru on twitter!
      0 Not allowed!

  27. #27
    Regarding asspcheck (new) and how it works:

    [email protected] [/usr/local/assp]# ps aux|grep assp.pl
    root 21823 0.0 1.8 22972 18952 ? S 12:42 0:00 /usr/bin/perl /usr/local/assp/assp.pl /usr/local/assp

    [email protected] [/usr/local/assp]# /etc/init.d/assp stop
    Stopping ASSP Anti-SPAM Proxy server in /usr/local/assp

    [email protected] [/usr/local/assp]# ps aux|grep assp.pl

    [email protected] [/usr/local/assp]# telnet localhost 25
    Trying 127.0.0.1...
    telnet: connect to address 127.0.0.1: Connection refused

    [email protected] [/usr/local/assp]# /etc/init.d/assp start
    Starting ASSP via: /usr/local/assp/start /usr/local/assp

    [email protected] [/usr/local/assp]# ps aux|grep assp.pl
    root 10640 1.0 1.8 21532 18772 pts/0 S 13:01 0:00 /usr/bin/perl /usr/local/assp/assp.pl /usr/local/assp

    [email protected] [/usr/local/assp]# telnet localhost 25
    Trying 127.0.0.1...
    Connected to localhost.
    Escape character is '^]'.
    Connection closed by foreign host.

    Now we have emptied the pid file and stopped ASSP:

    [email protected] [/usr/local/assp]# cat pid
    10640

    [email protected] [/usr/local/assp]# cat /dev/null > pid

    [email protected] [/usr/local/assp]# /etc/init.d/assp stop
    Stopping ASSP Anti-SPAM Proxy server in /usr/local/assp
    kill: usage: kill [-s sigspec | -n signum | -sigspec] [pid | job]... or kill -l [sigspec]

    [email protected] [/usr/local/assp]# ps aux|grep assp.pl

    [email protected] [/usr/local/assp]# telnet localhost 25
    Trying 127.0.0.1...
    telnet: connect to address 127.0.0.1: Connection refused

    And then executed asspcheck:

    [email protected] [/usr/local/assp]# ./scripts/asspcheck
    Stopping ASSP Anti-SPAM Proxy server in /usr/local/assp
    cat: /usr/local/assp/pid: No such file or directory
    kill: usage: kill [-s sigspec | -n signum | -sigspec] [pid | job]... or kill -l [sigspec]
    Starting ASSP via: /usr/local/assp/start /usr/local/assp

    [email protected] [/usr/local/assp]# ps aux|grep assp.pl
    root 10877 0.5 1.8 21748 18800 pts/0 S 13:04 0:00 /usr/bin/perl /usr/local/assp/assp.pl /usr/local/assp

    [email protected] [/usr/local/assp]# telnet localhost 25
    Trying 127.0.0.1...
    Connected to localhost.
    Escape character is '^]'.
    Connection closed by foreign host.


    So it is clear, the errors are being given by /etc/init.d/stop script which is NOT written by us and it DOES contain original Matt's comments. We have added 4 lines to this script to actually kill all remaining assp.pl instances. So what is wrong?..

    About running asspcheck every minute - from our experience ASSP fails rarely and it is just additional layer of protection. However we may change recommended cronjob. Thank you for the input.

    ...once more, from individuals to big companies, all of them may have pieces of code not owned by them. What is really matter how they resolve the situation.

    I completely understand your position. asspcheck script was mislooked to be received from unknown third-party while getting ASSP X header. We have said already - it was mistake and it was promptly corrected. Please, accept our apologizes once more.

    Thank you.
      0 Not allowed!

  28. #28
    Join Date
    Sep 2002
    Location
    Top Secret
    Posts
    11,522
    it was mistake
    A mistake?
    How do you mistakenly take someone's code and call it your own?
    How do you mistakenly put YOUR copyright and license information into someone ELSE'S file?

    Call it what it is, it's theft.

    A mistake is me putting my hand through my aunt's window @ 14 years old (believe me, that hurt), not taking someone else's property and redistributing it as my own with my own copyright information, licensing information, etc. THAT is flat out theft.

    It's people like yourself that force individuals like myself who are merely trying to HELP individuals to choose a closed source option. It's sad, very, very sad that the world comes to someone stealing someone else's work and releasing it as their own.

    That said:
    This will be my last post in this thread and topic. Hopefully I'll have the time to finish the installer I've been working on, but it certainly won't be open source, and most likely won't be free. Time goes into this stuff, and to have it ripped off by people such as yourself, well, let's just say that I don't need my free time to be spent like that.

    WHMCS Guru - WHMCS addons, management, support and more.
    WHMCS Notifications Extended - Add slack, hipchat, SMS, pushover to WHMCS !!
    Linux Problems? WHMCS Issues? +1-866-546-8914 (linux-14) or @whmcsguru on twitter!
      0 Not allowed!

  29. #29
    linux-tech:

    don't get me wrong. i appreciate you putting the time and effort to release this how-to for the benefit of everyone, including myself.

    but the problem is that i was given the impression that this how-to could help me install assp on cpanel. it did not help me. not because i don't know how to follow a how-to, but because you referenced some files that were incorrect and it hosed my install.

    Perhaps you didn't notice this :
    Quote:
    the development versions have updated functions to use for users
    These are development versions and should never ever ever be used by individuals who do not want to run the risk of thoroughly hosing their own servers.
    we're not supposed to use it?

    then why this?
    The core of ASSP is now installed. However, the development versions have updated functions to use for users. Of course, this is completely optional, but is recommended completely.
    i followed your instructions for 1.2.6 and it installed fine. i then followed the instructions for the recommended functions and it hosed the install. i removed the hosed 1.2.6 install and proceeded instead to the 1.3.0 install per your how-to.

    again it won't run. i then checked what i was downloading and found out that the links you gave were crap. not outdated. crap.

    outdated is when the file runs old code. the downloads (just some, actually) are just completely wrong.

    and besides, developmental could mean unstable. but recent. not outdated as you say. and certainly doesn't outdate the stable version. that's why i took the risk.

    i then removed everything and installed isprohosting's solution.

    it went without a glitch.
      0 Not allowed!

  30. #30
    ...that's why we have decided to provide own bundles of ASSP.

    I again (and last time) pass our apologizes to linux-tech. I do not feel that you may blame us in such a way for single not important file.

    I also hardly believe your paid solution would work better... (btw, your last response has clearly shown that your attitude was to get paid for ASSP installer, seems funny to me).

    Anyway, I wish you good luck as I know what it means to develop the code.

    P.S. We are working hard to finish cPanel interface. I expect just several more days for working cPanel release!
      0 Not allowed!

  31. #31
    Join Date
    Sep 2002
    Location
    Top Secret
    Posts
    11,522
    again it won't run. i then checked what i was downloading and found out that the links you gave were crap. not outdated. crap.
    Wrong. They weren't "CRAP", they were outdated. Perhaps you know nothing of what Version Control is, perhaps you have no experience at all with it, that's not my concern. However, those links WERE, in fact valid when the post was made. I can't control what others do outside of that. THIS is why I posted the link to the sourceforge download which DOES work. If you want to use beta versions, you're on your own. The very same thing happened to the links to 1.3.0 within hours.

    I do not feel that you may blame us in such a way for single not important file.
    Dude, you're a thief, You took someone else's work and tried to pass it off as your own. Nobody "blamed" you, you got caught, and now you don't like the fact that you got caught. Sorry, but nobody likes getting "caught".


    I also hardly believe your paid solution would work better...
    Now that's just wrong. You have NO clue what the "paid solution" will or will not do, so you have no right to say that.

    your last response has clearly shown that your attitude was to get paid for ASSP installer
    No it doesn't. It shows the community the value of their submissions and support here, which is absolutely nothing, because they will be stolen by some thankless jerk who only has interest in benefitting themlselves.

    When this tutorial was written, those links worked. Anyone with common sense knows how to get the updated files from those links in CVS. Unfortunately, again, those are CVS files, and they WILL change. I can't stress that enough. Using those versions will mean absolute hell if you use them at the "wrong time", unless you know what you're doing, thusly using any installer like this will mean the same thing.

    Unfortunately this tutorial, for cvs versions is now outdated.
    WHMCS Guru - WHMCS addons, management, support and more.
    WHMCS Notifications Extended - Add slack, hipchat, SMS, pushover to WHMCS !!
    Linux Problems? WHMCS Issues? +1-866-546-8914 (linux-14) or @whmcsguru on twitter!
      0 Not allowed!

Posting Permissions

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