connection refused

Fórumok

Sziasztok !

Segitseget kernek. Mar 2 napja szivok egy problemaval . Adott egy postfix mail server , meg egy clamav+clapf paros.
Ugy laccik ,h minden mukodik rendben de ha levelet kuldok akkor a kovetkezo van a mail logban :

Jul 24 13:17:25 flan postfix/smtpd[2372]: connect from ip20.d110.tiszanet.hu[217.65.110.20]
Jul 24 13:17:25 flan postfix/smtpd[2372]: 4E7B5370BC: client=ip20.d110.tiszanet.hu[217.65.110.20]
Jul 24 13:17:25 flan postfix/cleanup[2375]: 4E7B5370BC: message-id=<20070724111725.4E7B5370BC@flan.delmagyar.szeged.hu>
Jul 24 13:17:25 flan postfix/qmgr[2220]: 4E7B5370BC: from=, size=2168, nrcpt=1 (queue active)
Jul 24 13:17:25 flan postfix/smtp[2376]: connect to 127.0.0.1[127.0.0.1]: Connection refused (port 10025)
Jul 24 13:17:25 flan postfix/smtp[2376]: 4E7B5370BC: to=, relay=none, delay=0.17, delays=0.14/0.03/0/0, dsn=4.4.1, status=deferred (connect to 127.0.0.1[127.0.0.1]: Connection refused)
Jul 24 13:17:26 flan postfix/smtpd[2372]: disconnect from ip20.d110.tiszanet.hu[217.65.110.20

telnet localhost 10025 ra ez a valasz
Trying 127.0.0.1...
telnet: Unable to connect to remote host: Connection refused

Valami fogja a portot gondolom a keves eszemmel . De mi ??
elvileg a clapf.conf , main.cf master.cf howto alapjan van beallitva

Lecci segitsetek

Koszi
Sztupi

Hozzászólások

ezt:

Starting Nmap 4.11 ( http://www.insecure.org/nmap/ ) at 2007-07-24 13:38 CEST
Warning: OS detection will be MUCH less reliable because we did not find at least 1 open and 1 closed TCP port
Interesting ports on localhost.localdomain (127.0.0.1):
PORT STATE SERVICE VERSION
10025/tcp closed unknown
Too many fingerprints match this host to give specific OS details

Nmap finished: 1 IP address (1 host up) scanned in 4.476 seconds

Hogy melyik portot mi használja, az egyik legkényelmesebb parancs:
#fuser 10025/tcp
vagy:
#natstat -a | grep -i listen (itt az összes nyitott portot látni fogod)
Az amavis logjában mi szerepel?
___________________________________________________________________
Lógnak a pálmafán a kókuszok .... :)
http://laszlo.co.hu/

Ujabb fejlemeny addig farigcsaltam mig a linux sem tudott elindulni . Tudok mi :-(, ujraraktam a clamav postfix dovecot szepen felmaszott am amikor forgatomra a clapf-ot akkor a make clean all ra asszongya h , :

make[1]: *** [decoder.o] Error 1
make[1]: Leaving directory `/usr/src/clapf-0.3.28'
make: *** [all] Error 2

Na itt egy csoppet leakadtam . Mi a fene kell neki ???

Koszi
Sztupi

ime a teljes uzi:

-f *.o *.a clapf parsembox splitmbox spamtest spamdrop train spamcgi traincgi trainlogcgi usercgi passmail
flan:/usr/src/clapf-0.3.28# make clean all
rm -f *.o *.a clapf parsembox splitmbox spamtest spamdrop train spamcgi traincgi trainlogcgi usercgi passmail
make misc.o cfg.o smtp.o sig.o session.o decoder.o parser.o cgi.o hash.o chi.o bayes.o clamd.o
make[1]: Entering directory `/usr/src/clapf-0.3.28'
gcc -O3 -Wall -DHAVE_ANTISPAM -DHAVE_ANTIVIRUS -DHAVE_CLAMD -c misc.c
misc.c: In function 'translate':
misc.c:69: warning: pointer targets in initialization differ in signedness
misc.c:81: warning: pointer targets in assignment differ in signedness
misc.c:85: warning: pointer targets in passing argument 1 of 'strncasecmp' differ in signedness
misc.c:86: warning: pointer targets in passing argument 1 of 'strncasecmp' differ in signedness
misc.c: In function 'count_invalid_hexa_stuff':
misc.c:145: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness
misc.c: In function 'fix_url':
misc.c:250: warning: pointer targets in passing argument 1 of 'count_char_in_buffer' differ in signedness
misc.c:279: warning: pointer targets in passing argument 1 of 'count_char_in_buffer' differ in signedness
gcc -O3 -Wall -DHAVE_ANTISPAM -DHAVE_ANTIVIRUS -DHAVE_CLAMD -c cfg.c
gcc -O3 -Wall -DHAVE_ANTISPAM -DHAVE_ANTIVIRUS -DHAVE_CLAMD -c smtp.c
gcc -O3 -Wall -DHAVE_ANTISPAM -DHAVE_ANTIVIRUS -DHAVE_CLAMD -c sig.c
gcc -O3 -Wall -DHAVE_ANTISPAM -DHAVE_ANTIVIRUS -DHAVE_CLAMD -c session.c
session.c: In function 'postfix_to_clapf':
session.c:256: warning: pointer targets in passing argument 1 of 'search_in_buf' differ in signedness
session.c:256: warning: pointer targets in passing argument 3 of 'search_in_buf' differ in signedness
gcc -O3 -Wall -DHAVE_ANTISPAM -DHAVE_ANTIVIRUS -DHAVE_CLAMD -c decoder.c
decoder.c:8:25: error: openssl/evp.h: Nincs ilyen fájl vagy könyvtár
decoder.c: In function 'url_decode':
decoder.c:45: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness
decoder.c: In function 'utf8_decode':
decoder.c:156: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness
decoder.c: In function 'qp_decode':
decoder.c:203: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness
make[1]: *** [decoder.o] Error 1
make[1]: Leaving directory `/usr/src/clapf-0.3.28'
make: *** [all] Error 2

Ebbol ha kitudsz hamozni vmi okosat megkoszonnem

Sztupi

a kimenet

flan:/usr/src/clapf-0.3.29# ./configure --enable-clamd
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 for gcc option to accept ANSI C... none needed
checking whether make sets $(MAKE)... yes
checking for a BSD-compatible install... /usr/bin/install -c
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 sys/socket.h usability... yes
checking sys/socket.h presence... yes
checking for sys/socket.h... yes
checking sys/time.h usability... yes
checking sys/time.h presence... yes
checking for sys/time.h... yes
checking syslog.h usability... yes
checking syslog.h presence... yes
checking for syslog.h... yes
checking signal.h usability... yes
checking signal.h presence... yes
checking for signal.h... yes
checking ctype.h usability... yes
checking ctype.h presence... yes
checking for ctype.h... yes
checking for unistd.h... (cached) yes
checking math.h usability... yes
checking math.h presence... yes
checking for math.h... yes
checking for main in -lm... no
checking ldap.h usability... yes
checking ldap.h presence... yes
checking for ldap.h... yes
checking for main in -lldap... yes
checking for ldap_simple_bind_s in -lldap... yes
checking gsl/gsl_cdf.h usability... yes
checking gsl/gsl_cdf.h presence... yes
checking for gsl/gsl_cdf.h... yes
please specify the token database with --with-tokendb

flan:~# netstat -l -n -p
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 127.0.0.1:10026 0.0.0.0:* LISTEN 2332/master
tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN 2080/mysqld
tcp 0 0 0.0.0.0:110 0.0.0.0:* LISTEN 2455/dovecot
tcp 0 0 0.0.0.0:143 0.0.0.0:* LISTEN 2455/dovecot
tcp 0 0 0.0.0.0:111 0.0.0.0:* LISTEN 1786/portmap
tcp 0 0 0.0.0.0:3184 0.0.0.0:* LISTEN 2443/rpc.statd
tcp 0 0 0.0.0.0:113 0.0.0.0:* LISTEN 2254/inetd
tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN 2332/master
tcp6 0 0 :::80 :::* LISTEN 2481/apache2
tcp6 0 0 :::22 :::* LISTEN 2276/sshd
udp 0 0 0.0.0.0:1024 0.0.0.0:* 2443/rpc.statd
udp 0 0 0.0.0.0:923 0.0.0.0:* 2443/rpc.statd
udp 0 0 0.0.0.0:111 0.0.0.0:* 1786/portmap
Active UNIX domain sockets (only servers)
Proto RefCnt Flags Type State I-Node PID/Program name Path
unix 2 [ ACC ] STREAM LISTENING 5510 2080/mysqld /var/run/mysqld/mysqld.sock
unix 2 [ ACC ] STREAM LISTENING 5669 2185/acpid /var/run/acpid.socket
unix 2 [ ACC ] STREAM LISTENING 6419 2455/dovecot /var/run/dovecot/dict-server
unix 2 [ ACC ] STREAM LISTENING 6461 2455/dovecot /var/run/dovecot/login/default
unix 2 [ ACC ] STREAM LISTENING 6466 2455/dovecot /var/run/dovecot/auth-worker.2474
unix 2 [ ACC ] STREAM LISTENING 6541 2487/apache2 /var/run/apache2/cgisock.2481
unix 2 [ ACC ] STREAM LISTENING 6698 2435/clamd /var/run/clamav/clamd.ctl
unix 2 [ ACC ] STREAM LISTENING 6108 2332/master public/cleanup
unix 2 [ ACC ] STREAM LISTENING 6115 2332/master private/tlsmgr
unix 2 [ ACC ] STREAM LISTENING 6119 2332/master private/rewrite
unix 2 [ ACC ] STREAM LISTENING 6123 2332/master private/bounce
unix 2 [ ACC ] STREAM LISTENING 6127 2332/master private/defer
unix 2 [ ACC ] STREAM LISTENING 6131 2332/master private/trace
unix 2 [ ACC ] STREAM LISTENING 6135 2332/master private/verify
unix 2 [ ACC ] STREAM LISTENING 6139 2332/master public/flush
unix 2 [ ACC ] STREAM LISTENING 6143 2332/master private/proxymap
unix 2 [ ACC ] STREAM LISTENING 6147 2332/master private/smtp
unix 2 [ ACC ] STREAM LISTENING 6151 2332/master private/relay
unix 2 [ ACC ] STREAM LISTENING 6155 2332/master public/showq
unix 2 [ ACC ] STREAM LISTENING 6159 2332/master private/error
unix 2 [ ACC ] STREAM LISTENING 6163 2332/master private/discard
unix 2 [ ACC ] STREAM LISTENING 6167 2332/master private/local
unix 2 [ ACC ] STREAM LISTENING 6171 2332/master private/virtual
unix 2 [ ACC ] STREAM LISTENING 6175 2332/master private/lmtp
unix 2 [ ACC ] STREAM LISTENING 6179 2332/master private/anvil
unix 2 [ ACC ] STREAM LISTENING 6183 2332/master private/scache
unix 2 [ ACC ] STREAM LISTENING 6187 2332/master private/maildrop
unix 2 [ ACC ] STREAM LISTENING 6191 2332/master private/uucp
unix 2 [ ACC ] STREAM LISTENING 6195 2332/master private/ifmail
unix 2 [ ACC ] STREAM LISTENING 6199 2332/master private/bsmtp
unix 2 [ ACC ] STREAM LISTENING 6203 2332/master private/scalemail-backend
unix 2 [ ACC ] STREAM LISTENING 6207 2332/master private/mailman
flan:~#

Semmi sincs a 10025-os porton. Meg kene nezni, hogy a clapf mit nyitott meg. pgrep clapf vagy ps, aztan a kapott pid-del hasznald az lsof-t: lsof -p ... A kovetkezo tippem mar strace lenne, innentol mar bonyolodik a dolog :( A clapf.c-be belenezve mukodnie illene, megha a -d opcio nincs is dokumentalva (ami szerintem azert nem artana, illene daemon-kent mukodnie).

Csak most talaltam ra erre a forumra. Kivancsi vagyok, hogy muzsikal nalatok a clapf?

ASK Me No Questions, I'll Tell You No Lies