spamdyke-4.0.10-mysql läuft nicht !

jojoflower

New Member
Hallo !

habe folgendes Problem und komme einfach nicht weiter.

System: SuSE 10.3
Verwaltung: Plesk 8.4

Spamdyke 4.0.10-mysql läuft einwandfrei (bis auf mysql)
sowie Spamassassin 3.2.3 alles unabhängig von Plesk installiert.

wenn ich jetzt in die /etc/spamdyke.conf folgendes editiere

Code:
#MySQL-Logging:
config-mysql-database=spamdyke
config-mysql-username=spamdyke
config-mysql-password=spamdyke

kommt unter telnet port 25 folgende Fehlermeldung:

Code:
spamdyke 4.0.10+CONFIGTEST+DEBUG (C)2008 Sam Clippinger, samc (at) silence(dot) org
    http://www.spamdyke.org/
Use -h for an option summary or see README.html for complete option details.

ERROR: Unknown configuration file option in file /etc/spamdyke.conf on line 27: config-mysql-database
ERROR: Unknown configuration file option in file /etc/spamdyke.conf on line 28: config-mysql-username
ERROR: Unknown configuration file option in file /etc/spamdyke.conf on line 29: config-mysql-password


Verbindung zu Host verloren.

Spamdyke läuft aber ohne die einträge einwandfrei !

Code:
220 SRV001.xxxx.de ESMTP
helo
250 SRV001.xxxx.de
mail from: test@test.de
250 ok
rcpt to: swen@xxxx.de
421 Your address has been graylisted. Try again later.


beim installieren von spamdyke habe ich auch nicht die Zeilen:
Code:
checking for MySQL (for MySQL-Logging support)... yes
checking for MySQL includes (for MySQL-Logging support)...yes
bekommen !

hier mal die Liste ./configure (habe ich was übersehen?)

Code:
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... //bin/grep
checking for egrep... //bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for stdint.h... (cached) yes
checking sys/inttypes.h usability... no
checking sys/inttypes.h presence... no
checking for sys/inttypes.h... no
checking whether time.h and sys/time.h may both be included... yes
checking for int16_t... yes
checking for int32_t... yes
checking for int64_t... yes
checking for uint16_t... yes
checking for uint32_t... yes
checking for uint64_t... yes
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking for struct dirent.d_type... yes
checking whether DT_WHT is declared... yes
checking whether S_IFWHT is declared... no
checking whether INADDR_LOOPBACK is declared... yes
checking whether to include debugging symbols (for gdb)... no
checking for strip... strip spamdyke
checking whether to include excessive debugging output... no
checking whether to include some debugging output... yes
checking whether to include configuration tests... yes
checking if openssl/ssl.h will include without additional include directories...                                                                              no
configure: Adding /usr/kerberos/include to the include file search path
checking Checking if openssl/ssl.h will include correctly... no
configure: Unable to include openssl/ssl.h (required by OpenSSL), TLS support di                                                                             sabled
checking for library containing inet_aton... none required
checking for library containing bind... none required
checking for library containing inet_ntoa... none required
checking for library containing getopt_long... none required
checking whether anonymous inner functions are supported by default... yes
checking whether struct option is defined in getopt.h... yes
checking whether pid_t is an unsigned int or an unsigned long... unsigned int
checking whether uid_t is an unsigned int or an unsigned long... unsigned int
checking whether gid_t is an unsigned int or an unsigned long... unsigned int
checking whether long long ints are supported in a test program... yes
checking whether printf()/scanf() uses %ld for 64-bit integers... yes
checking whether __func__ is available... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
config.status: config.h is unchanged

was ebenfalls nicht ging war der Befehl:
Code:
GRANT ALL ON spamdyke.* TO 'spamdyke'@'localhost' IDENTIFIED BY 'spamdyke';

ansonsten wenn die drei Zeilen in der /etc/spamdyke.conf drin stehen, konnte ich mit Plesk zumindestens auf die Datenbank zugreifen.

cu Swen
 
Last edited by a moderator:
Hallo,

kurze frage, wo hast du die spamdyke version den downgeloaded?

Die von haggy sieht bei mir anders aus.

Code:
spamdyke 4.0.10+TLS+CONFIGTEST+DEBUG+MYSQL[haggybear.de] (C)2008 Sam Clippinger, samc (at) silence (dot) org
http://www.spamdyke.org/

Use -h for an option summary or see README.html for complete option details.

Hier bei dir steht nichts von mysql.
spamdyke 4.0.10+CONFIGTEST+DEBUG (C)2008 Sam Clippinger, samc (at) silence(dot) org
spamdyke: A drop-in connection-time spam filter for qmail
Use -h for an option summary or see README.html for complete option details.

Benutze mal diese hier

Gruß
Harpi
 
Hallo !

also habe nochmals diese mit wget geholt von dem Link !
Ich glaube bei mir installiert er nicht richtig. Ich hatte vorher die 4.0.7 laufen gehabt. Habe nur ./configure dann ein make und make install gemacht jetzt zum zweiten mal trotzdem geht es nicht. Aber er muss ja auf die 4.0.10 installiert haben ! (vorher war 4.0.7 !!!) Habe ich irgendwas vergessen ???

hier mal der Code bis zum Schluss:

Code:
srv001:/usr/local/src # wget http://www.haggybear.de/download/spamdyke-4.0.10-mysql.tgz
--00:05:27--  http://www.haggybear.de/download/spamdyke-4.0.10-mysql.tgz
           => `spamdyke-4.0.10-mysql.tgz'
Resolving www.haggybear.de... 85.25.149.153
Connecting to www.haggybear.de|85.25.149.153|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 575,265 (562K) [application/x-gzip]

100%[===================================================================================================================================================================>] 575,265       --.--K/s

00:05:27 (6.23 MB/s) - `spamdyke-4.0.10-mysql.tgz' saved [575265/575265]

srv001:/usr/local/src # ls -al
total 580
drwxr-xr-x  3 root root   4096 Dec 28 00:05 .
drwxr-xr-x 12 root root   4096 Oct 13 23:36 ..
drwxr-xr-x  3 root root   4096 Dec 26 13:20 qmhandle
-rw-r--r--  1 root root 575265 Dec 19 01:38 spamdyke-4.0.10-mysql.tgz
srv001:/usr/local/src # tar xzf spamdyke-4.0.10-mysql.tgz
srv001:/usr/local/src # ls -l
total 576
drwxr-xr-x 3 root root   4096 Dec 26 13:20 qmhandle
drwxr-xr-x 7  501   50   4096 Dec 19 01:36 spamdyke-4.0.10-mysql
-rw-r--r-- 1 root root 575265 Dec 19 01:38 spamdyke-4.0.10-mysql.tgz
srv001:/usr/local/src # cd spamdyke-4.0.10-mysql/spamdyke/
srv001:/usr/local/src/spamdyke-4.0.10-mysql/spamdyke # ./configure
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking for grep that handles long lines and -e... //bin/grep
checking for egrep... //bin/grep -E
checking for ANSI C header files... yes
checking for sys/types.h... yes
checking for sys/stat.h... yes
checking for stdlib.h... yes
checking for string.h... yes
checking for memory.h... yes
checking for strings.h... yes
checking for inttypes.h... yes
checking for stdint.h... yes
checking for unistd.h... yes
checking for stdint.h... (cached) yes
checking sys/inttypes.h usability... no
checking sys/inttypes.h presence... no
checking for sys/inttypes.h... no
checking whether time.h and sys/time.h may both be included... yes
checking for int16_t... yes
checking for int32_t... yes
checking for int64_t... yes
checking for uint16_t... yes
checking for uint32_t... yes
checking for uint64_t... yes
checking for dirent.h that defines DIR... yes
checking for library containing opendir... none required
checking for struct dirent.d_type... yes
checking whether DT_WHT is declared... yes
checking whether S_IFWHT is declared... no
checking whether INADDR_LOOPBACK is declared... yes
checking whether to include debugging symbols (for gdb)... no
checking for strip... strip spamdyke
checking whether to include excessive debugging output... no
checking whether to include some debugging output... yes
checking whether to include configuration tests... yes
checking if openssl/ssl.h will include without additional include directories... no
configure: Adding /usr/kerberos/include to the include file search path
checking Checking if openssl/ssl.h will include correctly... no
configure: Unable to include openssl/ssl.h (required by OpenSSL), TLS support disabled
checking for library containing inet_aton... none required
checking for library containing bind... none required
checking for library containing inet_ntoa... none required
checking for library containing getopt_long... none required
checking whether anonymous inner functions are supported by default... yes
checking whether struct option is defined in getopt.h... yes
checking whether pid_t is an unsigned int or an unsigned long... unsigned int
checking whether uid_t is an unsigned int or an unsigned long... unsigned int
checking whether gid_t is an unsigned int or an unsigned long... unsigned int
checking whether long long ints are supported in a test program... yes
checking whether printf()/scanf() uses %ld for 64-bit integers... yes
checking whether __func__ is available... yes
configure: creating ./config.status
config.status: creating Makefile
config.status: creating config.h
srv001:/usr/local/src/spamdyke-4.0.10-mysql/spamdyke # make
gcc -Wall -O2 -I/usr/kerberos/include -funsigned-char  -c spamdyke.c
gcc -E -Wall -O2 -I/usr/kerberos/include -funsigned-char  configuration.c | gcc -Wall -O2 -I/usr/kerberos/include -funsigned-char  -x c -c -o configuration.o -
gcc -Wall -O2 -I/usr/kerberos/include -funsigned-char  -c dns.c
gcc -Wall -O2 -I/usr/kerberos/include -funsigned-char  -c environment.c
gcc -Wall -O2 -I/usr/kerberos/include -funsigned-char  -c usage.c
gcc -Wall -O2 -I/usr/kerberos/include -funsigned-char  -c search_fs.c
gcc -Wall -O2 -I/usr/kerberos/include -funsigned-char  -c exec.c
gcc -Wall -O2 -I/usr/kerberos/include -funsigned-char  -c base64.c
gcc -Wall -O2 -I/usr/kerberos/include -funsigned-char  -c tls.c
gcc -Wall -O2 -I/usr/kerberos/include -funsigned-char  -c log.c
log.c:579:27: warning: no newline at end of file
gcc -Wall -O2 -I/usr/kerberos/include -funsigned-char  -c config_test.c
gcc -Wall -O2 -I/usr/kerberos/include -funsigned-char  -c md5.c
gcc -Wall -O2 -I/usr/kerberos/include -funsigned-char  -c filter.c
gcc -Wall -O2 -I/usr/kerberos/include -funsigned-char  -o spamdyke spamdyke.o configuration.o dns.o environment.o usage.o search_fs.o exec.o base64.o tls.o log.o config_test.o md5.o filter.o
strip spamdyke
srv001:/usr/local/src/spamdyke-4.0.10-mysql/spamdyke # /etc/init.d/spamd stop
Shutting down spamd                                                   done
srv001:/usr/local/src/spamdyke-4.0.10-mysql/spamdyke # make install
cp spamdyke /usr/local/bin/spamdyke-4.0.10
rm -f /usr/local/bin/spamdyke
ln -s /usr/local/bin/spamdyke-4.0.10 /usr/local/bin/spamdyke
srv001:/usr/local/src/spamdyke-4.0.10-mysql/spamdyke #


so und so sieht es dann auf dem System aus !
liegt bei haggybear etwa ne ganz normale Version ???
schicke mir bitte mal deine. ( jojocsp[at]yahoo.de )

Code:
srv001:/usr/local/src/spamdyke-4.0.10-mysql # cd spamdyke/
srv001:/usr/local/src/spamdyke-4.0.10-mysql/spamdyke # ls
Makefile     base64.h  config.h.in    config_test.c  configuration.c  configure     dns.h          environment.h  exec.h    filter.h  log.h  md5.h        search_fs.h  spamdyke.c  tls.c  usage.c
Makefile.in  base64.o  config.log     config_test.h  configuration.h  configure.ac  dns.o          environment.o  exec.o    filter.o  log.o  md5.o        search_fs.o  spamdyke.h  tls.h  usage.h
base64.c     config.h  config.status  config_test.o  configuration.o  dns.c         environment.c  exec.c         filter.c  log.c     md5.c  search_fs.c  spamdyke     spamdyke.o  tls.o  usage.o
srv001:/usr/local/src/spamdyke-4.0.10-mysql/spamdyke # sp
spamassassin     spamd            spamdyke-4.0.10  sperl5.8.8       split            splitmail        spwd
spamc            spamdyke         spamdyke-4.0.7   splain           split-logfile2   sprof
srv001:/usr/local/src/spamdyke-4.0.10-mysql/spamdyke # sp
spamassassin     spamd            spamdyke-4.0.10  sperl5.8.8       split            splitmail        spwd
spamc            spamdyke         spamdyke-4.0.7   splain           split-logfile2   sprof
srv001:/usr/local/src/spamdyke-4.0.10-mysql/spamdyke # spamdyke -?
spamdyke 4.0.10+CONFIGTEST+DEBUG (C)2008 Sam Clippinger, samc (at) silence (dot) org
http://www.spamdyke.org/

Use -h for an option summary or see README.html for complete option details.

ERROR: Unknown or incomplete option: -?

mfg swen
 
Last edited by a moderator:
Die gehackte Version des ./configure ist fehlerhaft, dadurch wird der mysql-Test nicht durchgeführt, wenn der SSL-Test nicht erfolgreich war.

Wenn Du das SSL-Problem behebst, sollte es funktionieren (Paket openssl-devel installieren).
 
Hallo !

Danke für deine Hilfe, das war genau der Fehler !
Hatte ich wohl übersehen, da ich mehr davon ausging das ich eine falsche
Version habe.


MFG Swen
 
Die gehackte Version des ./configure ist fehlerhaft, dadurch wird der mysql-Test nicht durchgeführt, wenn der SSL-Test nicht erfolgreich war.

Wenn Du das SSL-Problem behebst, sollte es funktionieren (Paket openssl-devel installieren).
Ahhh, Asche auf mein Haupt! Das habe ich ja gar nicht bemerkt!! Ich werde das umgehend korrigieren! Danke LinuxAdmin!!!

Gruß
Haggy
 
Hi, ich hab das Problem,

das ich erst die Spamdyke-Version ohne mysql (zu spät gesehen) installiert habe. Dann hab ich natürlich auch noch übersehen, das openssl nicht installiert war. Erledigt.

Jetzt habe ich mir die richtige Version per wget geholt.

Nun bekomme ich aber ne Fehlermeldung bei ./configure

Code:
checking for library containing RSA_sign... -lssl
checking for library containing SSL_library_init... none required
checking for OpenSSL libraries (for TLS support)... yes
checking for MySQL (for MySQL-Logging support)... yes
./configure: line 5086: mysql_config: command not found
./configure: line 5087: mysql_config: command not found
checking for MySQL includes (for MySQL-Logging support)...no, MySQL-Logging disabled

Was hab ich übersehen?
Kann es sein, das spamdyke noch läuft und deshalb den Fehler ausspuckt?
Immer wenn ich die Spamdyke Prozesse per -kill beende, starten sie sofort wieder.

Komischerweise wird auch immer noch
Code:
spamdyke 4.0.10+TLS+CONFIGTEST+DEBUG (C)2008 Sam Clippinger, samc (at) silence (dot) org
http://www.spamdyke.org/

Use -h for an option summary or see README.html for complete option details.

ERROR: Missing qmail-smtpd command
ausgeführt.

Mein System:

System: SuSE 10.3
Verwaltung: Plesk 8.6

Hat jemand ne Idee?

Greetz

fluse
 
Last edited by a moderator:
Back
Top