Issues with plesk and haggybears spamdyke addon

Community support for Plesk, CPanel, WebMin and others with insight from two of the founders of Plesk. Ask for help here! No question is too simple or complicated. :-)
visualrealityink
Forum User
Forum User
Posts: 23
Joined: Mon Feb 28, 2011 6:59 pm
Location: Charlotte NC

Re: Issues with plesk and haggybears spamdyke addon

Unread post by visualrealityink »

Ok here is my permissions:
  • -rwxr-xr-x 1 root psaadm 2892 Dec 29 18:36 36-0.gif
    -rwxr-xr-x 1 root psaadm 669 Dec 29 18:36 abuse.jpg
    -rwxrwxrwx 1 root psaadm 335 Mar 10 01:18 abuse.txt
    -rwxr-xr-x 1 root psaadm 21522 Jan 3 08:19 admin.php
    -rwxr-xr-x 1 root psaadm 26369 Dec 29 18:36 AdminRights.class.php
    -rwxr-xr-x 1 root psaadm 48 Dec 29 18:36 bg.gif
    -rwxr-xr-x 1 root psaadm 432 Dec 29 18:36 bl.jpg
    -rwxr-xr-x 1 root psaadm 3337 Dec 29 18:36 cm.php
    -rwxr-xr-x 1 root psaadm 2235 Mar 7 08:53 config.inc.php
    -rwxr-xr-x 1 root psaadm 6222 Dec 29 18:36 dailyreport.php
    -rwxr-xr-x 1 root psaadm 959 Dec 29 18:36 db.php
    -rwxr-xr-x 1 root psaadm 1740 Dec 29 18:36 doof_browser.css
    -rwxr-xr-x 1 root psaadm 1832 Dec 29 18:36 dslogo.gif
    -rwxr-xr-x 1 root psaadm 5743 Dec 29 18:36 dynstat.class.php
    drwxr-xr-x 2 root psaadm 8192 Mar 7 08:46 flags
    -rwxr-xr-x 1 root psaadm 487 Feb 17 07:51 full_screen.png
    -rwxr-xr-x 1 root psaadm 630 Dec 29 18:36 help_ico.gif
    -rwxr-xr-x 1 root psaadm 1851 Dec 29 18:36 ident.php
    -rwxr-xr-x 1 root psaadm 19185 Feb 17 07:51 index.php
    -rwxr-xr-x 1 root psaadm 310 Dec 29 18:36 in.gif
    -rwxrwxrwx 1 root sw-cp-server 5973 Feb 17 07:51 INSTALL.txt
    -rwxr-xr-x 1 root psaadm 31033 Dec 29 18:36 jquery.js
    drwxr-xr-x 2 root psaadm 58 Mar 7 08:46 lang
    -rwxrwxrwx 1 root sw-cp-server 17977 Dec 29 18:36 LICENSE.txt
    -rwxr-xr-x 1 root psaadm 2904 Dec 29 18:36 loading.gif
    -rwxr-xr-x 1 root psaadm 568 Dec 29 18:36 local.gif
    -rwxr-xr-x 1 root psaadm 43694 Jan 3 08:19 log-file.class.php
    -rwxr-xr-x 1 root psaadm 47925 Feb 16 09:39 log-mysql.class.php
    -rwxr-xr-x 1 root psaadm 32227 Jan 3 08:19 main.php
    -rwxr-xr-x 1 root psaadm 208 Dec 29 18:36 menu_l.gif
    -rwxr-xr-x 1 root psaadm 208 Dec 29 18:36 menu_r.gif
    -rwxr-xr-x 1 root psaadm 1453 Jan 3 08:19 nodyke.php
    -rwxr-xr-x 1 root psaadm 1628 Dec 29 18:36 optionboxes.class.php
    -rwxr-xr-x 1 root psaadm 310 Dec 29 18:36 out.gif
    -rwxr-xr-x 1 root psaadm 6609 Feb 16 09:39 paa.class.php
    -rwxr-xr-x 1 root psaadm 43 Dec 29 18:36 pixel.gif
    -rwxr-xr-x 1 root psaadm 290 Dec 29 18:36 plesk_event_handler.sh
    -rwxr-xr-x 1 root psaadm 1124 Dec 29 18:36 proz4stat.php
    -rwxr-xr-x 1 root psaadm 60 Dec 29 18:36 pstree.php
    -rwxr-xr-x 1 root psaadm 5414 Jan 3 08:47 remote.php
    -rwxrwxrwx 1 root psaadm 62 Mar 10 01:18 remote.txt
    -rwxrwxrwx 1 root psaadm 62 Mar 10 01:18 reports.txt
    -rwxrwxrwx 1 root psaadm 4916 Mar 10 01:18 rights.txt
    -rwxr-xr-x 1 root psaadm 1653 Dec 29 18:36 schlau_browser.css
    -rw-r--r-- 1 root sw-cp-server 284278 Feb 17 07:52 scp2_update.zip.1
    -rwxr-xr-x 1 root psaadm 1180 Dec 29 18:36 scp.class.php
    -rwxr-xr-x 1 root psaadm 1770 Dec 29 18:36 scp_do_write.sh
    -rwxr-xr-x 1 root psaadm 477 Dec 29 18:36 scp_reserved.sh
    -rwxr-xr-x 1 root psaadm 1156 Dec 29 18:36 securityfilter.php
    -rw-r--r-- 1 root psaadm 5 Nov 15 09:43 server.ver
    -rwxr-xr-x 1 root psaadm 862 Dec 29 18:36 spamdyke_processes.php
    -rw------- 1 root sw-cp-server 222 Mar 10 10:59 spamdyke.ver
    -rwxr-xr-x 1 root psaadm 9437 Dec 29 18:36 stat.class.php
    drwxrwxrwx 2 root psaadm 4096 Mar 7 08:34 stats
    -rwxr-xr-x 1 root psaadm 82 Dec 29 18:36 time.gif
    -rwxr-xr-x 1 root psaadm 73 Dec 29 18:36 toggleAllNone.gif
    -rwxr-xr-x 1 root psaadm 70 Dec 29 18:36 toggle.gif
    -rwxr-xr-x 1 root psaadm 2479 Dec 29 18:36 topstat.php
    -rwxr-xr-x 1 root psaadm 5239 Dec 29 18:36 update.php
    -rwxr-xr-x 1 root psaadm 603 Feb 17 07:52 updater.sh
    -rwxrwxrwx 1 root sw-cp-server 139640 Dec 29 18:36 verdana.ttf
    -rwxr-xr-x 1 root psaadm 39 Feb 17 07:51 version.php
    -rwxr-xr-x 1 root psaadm 84 Dec 29 18:36 whois.sh
    -rwxr-xr-x 1 root psaadm 435 Dec 29 18:36 wl.jpg
    -rwsr-xr-x 1 root psaadm 6816 Nov 15 09:43 wrapper
    -rwxr-xr-x 1 root psaadm 922 Dec 29 18:36 x.gif
    -rwxr-xr-x 1 root psaadm 8070 Dec 29 18:36 xtea.class.php
and here is a screenshot showing greylisting set to active

Image


Thanks Again :)
BruceLee
Forum Regular
Forum Regular
Posts: 879
Joined: Sat Mar 28, 2009 6:58 pm
Location: Germany

Re: Issues with plesk and haggybears spamdyke addon

Unread post by BruceLee »

please post the config.inc.php from the addon directory
visualrealityink
Forum User
Forum User
Posts: 23
Joined: Mon Feb 28, 2011 6:59 pm
Location: Charlotte NC

Re: Issues with plesk and haggybears spamdyke addon

Unread post by visualrealityink »

config.inc.php contents:

Code: Select all

/*
Plesk Spamdyke Control Panel (Version see version.php) - GUI for Plesk spamdyke implementation

Copyright (C) [2008] [Matthias Hackbarth / www.haggybear.de]

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as
published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty
of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, see <http://www.gnu.org/licenses/>.
*/

error_reporting(1);

define("DB_USR", "admin");
define("DB_PWD", trim(exec ("cat /etc/psa/.psa.shadow")));
define("DB_NAME", "psa");
define("DB_HOST", "localhost");
define("QMAIL_PATH", "/var/qmail/");
define("LOG_FILE","/usr/local/psa/var/log/maillog");
define("SPAMDYKE_CONFIG","/etc/spamdyke.conf");

//Only if you want to use the autoupdate function
define("AUTOUPDATE",true);

// define your language file, ex: en; ro; de;
define("LANG", "en");

define("PSA_PATH",trim(exec ("grep PRODUCT_ROOT_D /etc/psa/psa.conf | sed s/^[t]*[A-Z_]*[t]*//"))."/");
define("PSA_VERSION",substr(trim(exec ("cat ".PSA_PATH."version")),0,1));

//Default view - entries per page [25,50,100,200]
define("DEFAULT_PERPAGE",100);

//Logtype file/mysql (mysql only for the patched spamdyke-version from haggybear.de)
define("LOG_TYPE","mysql");

define("PSA_PATH",trim(exec ("grep PRODUCT_ROOT_D /etc/psa/psa.conf | sed s/^[t]*[A-Z_]*[t]*//"))."/");
define("PSA_VERSION",substr(trim(exec ("cat ".PSA_PATH."version")),0,1));
define("PSA_PATH",trim(exec ("grep PRODUCT_ROOT_D /etc/psa/psa.conf | sed s/^[t]*[A-Z_]*[t]*//"))."/");
define("PSA_VERSION",substr(trim(exec ("cat ".PSA_PATH."version")),0,1));

//Use whois detection for the daily reports! If false then the RDNS-detection will be used!
define("WHOIS_DETECT",true);

//Show flattr Button in Headline
define("SHOW_FLATTR",false);

//Master-Crypt-Key for Token encryption!
define("CRYPT_KEY",DB_PWD);

//
//
//
Thanks Again :)
BruceLee
Forum Regular
Forum Regular
Posts: 879
Joined: Sat Mar 28, 2009 6:58 pm
Location: Germany

Re: Issues with plesk and haggybears spamdyke addon

Unread post by BruceLee »

check if the spamdyke table contains entries.
visualrealityink
Forum User
Forum User
Posts: 23
Joined: Mon Feb 28, 2011 6:59 pm
Location: Charlotte NC

Re: Issues with plesk and haggybears spamdyke addon

Unread post by visualrealityink »

AWSOME BRUCELEE!!!!! I created the table using

Code: Select all

CREATE DATABASE spamdyke;
USE spamdyke;
CREATE TABLE `spamdyke_log_table` (
   `id` bigint(7) NOT NULL auto_increment,
   `time` timestamp NOT NULL default CURRENT_TIMESTAMP,
   `reason` varchar(30) character set utf8 NOT NULL,
   `from` varchar(50) character set utf8 NOT NULL,
   `to` varchar(50) character set utf8 NOT NULL,
   `ip` varchar(15) character set utf8 NOT NULL,
   `rdns` varchar(50) character set utf8 NOT NULL,
   `auth` varchar(25) character set utf8 NOT NULL,
   PRIMARY KEY  (`id`),
   KEY `time` (`time`),
   KEY `reason` (`reason`,`from`,`to`,`ip`,`rdns`)
) ENGINE=MyISAM  DEFAULT CHARSET=utf8;
GRANT ALL ON spamdyke.* TO 'spamdyke'@'localhost' IDENTIFIED BY 'spamdyke';
FLUSH PRIVILEGES;
The database existed but the table did not. Now it is reporting everything in the SCP. Thank you so much for your help it is greatly appreciated. I hope this topic is helpful to others having similar issues.

You get an A+ in my book Mate! 8)
Thanks Again! :D
BruceLee
Forum Regular
Forum Regular
Posts: 879
Joined: Sat Mar 28, 2009 6:58 pm
Location: Germany

Re: Issues with plesk and haggybears spamdyke addon

Unread post by BruceLee »

Great that it's working. Glad that I could help.
visualrealityink
Forum User
Forum User
Posts: 23
Joined: Mon Feb 28, 2011 6:59 pm
Location: Charlotte NC

Re: Issues with plesk and haggybears spamdyke addon

Unread post by visualrealityink »

Ok I hate to rehash this topic but I am at a loss. I upgraded plesk 10.0 to 10.2 and now HaggyBears Spamdyke is not functioning. Its not blocking messages and the daily reports I receive is incomplete. has anyone else had this issue after upgrading?

Hopefully someone can help!
Thanks!
BruceLee
Forum Regular
Forum Regular
Posts: 879
Joined: Sat Mar 28, 2009 6:58 pm
Location: Germany

Re: Issues with plesk and haggybears spamdyke addon

Unread post by BruceLee »

First thing. If it's not blocking anything anymore I bet that due to the pleak upgrade you need to edit the /etc/xinetd.d/smtp_psa and /etc/xinetd.d/smtps_psa. Also make sure that Plesks internal greylisting feature is disabled.
After that recheck if it's working.
Besides that you could also upgrade to latest Spamdyke Version 2.4.5
visualrealityink
Forum User
Forum User
Posts: 23
Joined: Mon Feb 28, 2011 6:59 pm
Location: Charlotte NC

Re: Issues with plesk and haggybears spamdyke addon

Unread post by visualrealityink »

would that require me to uninstall the current spamdyke version and reinstall the new one or can I compile the new one right on top of the old install?
Trying the the other method first.
Thanks.
kram
Forum Regular
Forum Regular
Posts: 243
Joined: Sat Dec 11, 2004 2:33 pm
Location: South Africa

Re: Issues with plesk and haggybears spamdyke addon

Unread post by kram »

Hello,

I am also strugling to get haggybear Spamdyke CP to PLESK 10.4.4 Centos 6.1[Final]
Everything seems to be running, i see log entries in the maillog and in the mysql databases

However when i try to access to the Spamdyke CP i get the following error.
Spamdyke not installed, or path to spamdyke.conf in config.inc.php is not set!!

I have extraced the folder "application" into the directory "smb" of your Plesk admin directory.

My custom button URL = /smb/haggybear?addon=spamdyke

Any suggestions?
Mark Brindley
2Large Networks - Web solutions that work
Post Reply