Greylisting mit leeren IP's

  • Thread starter Thread starter Klaus-DK
  • Start date Start date
K

Klaus-DK

Guest
Ich habe Debian 4 mit Plesk 8.4.0

Spamprotection mit Greylisting nach der Huschi Anleitung Installiert dies klappt auch.

Plesk Greylisting Control Panel habe ich auch Installiert Greylisting Control Panel 1.5.2 dies klappt auch.

Nun habe ich folgendes Problem:

Auf der Gesamtübersicht von Greylisting Control Panel werden alle Mails angezeigt aber weiter unten von ip steht nicht die IP woher die Mail kommt sonden 0.0.0.0 von mail also der Absender der Mail stehts korrekt drinn.

Bei allen Mails habe ich von IP immer 0.0.0.0 stehen einer eine Idee was falsch sein könnte.

Gruss
Klaus
 
Schon in der DB nachgesehen, ob dort auch 0er-IP's stehen, oder ob dort die richtige IP erscheint.

huschi.
 
Also ist es kein Problem mit dem Plesk-Greylisting-Control-Panel, sondern mit Deinem System bzw. der Qmail-Installation.
Also verschiebe ich den Teil in einen neuen Thread.

Und dann fang mal an Fakten zu sammeln:
Wie sehen die Einträge in der Greylisting-Datenbank aus?
Was steht in der dbg_*?

huschi.
 
Gutre Fangen wir mal an:

So sieht die Datenbank Qmail aus:
Code:
 	id 	bigint(20) 	Nein 	Primär 	
	auto_increment
	relay_ip 	varchar(16) 	Ja 	Indiziert 	
	mail_from 	varchar(255) 	Ja 	Indiziert 	
	rcpt_to 	varchar(255) 	Ja 	Indiziert 	
	block_expires 	datetime 	Nein 	Keines 	0000-00-00 00:00:00 	
	record_expires 	datetime 	Nein 	Keines 	0000-00-00 00:00:00 	
	blocked_count 	bigint(20) 	Nein 	Keines 	0 	
	passed_count 	bigint(20) 	Nein 	Keines 	0 	
	aborted_count 	bigint(20) 	Nein 	Keines 	0 	
	origin_type 	enum('MANUAL','AUTO') 	Nein 	Keines 	MANUAL 	
	create_time 	datetime 	Nein 	Keines 	0000-00-00 00:00:00 	
	last_update 	timestamp 	Nein 	Keines 	CURRENT_TIMESTAMP
Dies ist ein eintrag von der Datenbank:
Code:
1 	0.0.0.0 	[email][email protected][/email] 	[email][email protected][/email] 	2008-07-20 19:18:49 	2008-08-25 19:24:49 	1 	1 	0 	AUTO 	2008-07-20 19:14:49 	2008-07-20 19:24:49
Die anderen genau so immer IP 0.0.0.0

Gruss Klaus
 
Last edited by a moderator:
Auszug aus der /tmp/gereylist_dbg.txt:
Code:
protocol = notneeded4qmail [email][email protected][/email]  
[email][email protected][/email] -> [email][email protected][/email] (0.0.0.0) Doesn't Exists Block
--------
protocol = notneeded4qmail [email][email protected][/email]  
[email][email protected][/email] -> [email][email protected][/email] (0.0.0.0) Doesn't Exists Block
--------
protocol = notneeded4qmail [email][email protected][/email]  
[email][email protected][/email] -> [email][email protected][/email] (0.0.0.0) Doesn't Exists Block
--------
protocol = notneeded4qmail [email][email protected][/email]  
[email][email protected][/email] -> [email][email protected][/email] (0.0.0.0) Doesn't Exists Block
--------
protocol = notneeded4qmail [email][email protected][/email]  
[email][email protected][/email] -> [email][email protected][/email] (0.0.0.0) Doesn't Exists Block
--------
protocol = notneeded4qmail [email][email protected][/email]  
[email][email protected][/email] -> [email][email protected][/email] (0.0.0.0) Doesn't Exists Block
--------
protocol = notneeded4qmail [email][email protected][/email]  
[email][email protected][/email] -> [email][email protected][/email] (0.0.0.0) Doesn't Exists Block
--------
protocol = notneeded4qmail [email][email protected][/email]  
[email][email protected][/email] -> [email][email protected][/email] (0.0.0.0) Doesn't Exists Block
--------
protocol = notneeded4qmail [email][email protected][/email]  
[email][email protected][/email] -> [email][email protected][/email] (0.0.0.0) Doesn't Exists Block
--------
protocol = notneeded4qmail [email][email protected][/email]  
[email][email protected][/email] -> [email][email protected][/email] (0.0.0.0) Doesn't Exists Block
--------
protocol = notneeded4qmail [email][email protected][/email]  
[email][email protected][/email] -> [email][email protected][/email] (0.0.0.0) Doesn't Exists Block
--------
protocol = notneeded4qmail [email][email protected][/email]  
[email][email protected][/email] -> [email][email protected][/email] (0.0.0.0) Doesn't Exists Block
--------
protocol = notneeded4qmail [email][email protected][/email]  
[email][email protected][/email] -> [email][email protected][/email] (0.0.0.0) Doesn't Exists Block
--------
protocol = notneeded4qmail [email][email protected][/email]  
[email][email protected][/email] -> [email][email protected][/email] (0.0.0.0) Doesn't Exists Block
--------
protocol = notneeded4qmail [email][email protected][/email]  
[email][email protected][/email] -> [email][email protected][/email] (0.0.0.0) Doesn't Exists Block
--------
protocol = notneeded4qmail [email][email protected][/email]  
[email][email protected][/email] -> [email][email protected][/email] (0.0.0.0) Doesn't Exists Block
--------
protocol = notneeded4qmail [email][email protected][/email]  
[email][email protected][/email] -> [email][email protected][/email] (0.0.0.0) Doesn't Exists Block
--------

Ping von Server habe ich nocht nie ausgeführt bitte da um Hilfe.

Gruss
Klaus
 
Last edited by a moderator:
Mal den Auszug von ping:
Code:
64 bytes from gmx.net (213.165.65.50): icmp_seq=188 ttl=55 time=12.1 ms
64 bytes from gmx.net (213.165.65.50): icmp_seq=189 ttl=55 time=10.2 ms
64 bytes from gmx.net (213.165.65.50): icmp_seq=190 ttl=55 time=11.9 ms
64 bytes from gmx.net (213.165.65.50): icmp_seq=191 ttl=55 time=11.0 ms
64 bytes from gmx.net (213.165.65.50): icmp_seq=192 ttl=55 time=13.2 ms
64 bytes from gmx.net (213.165.65.50): icmp_seq=193 ttl=55 time=12.2 ms
Warning: time of day goes back (-68615us), taking countermeasures.
64 bytes from gmx.net (213.165.65.50): icmp_seq=194 ttl=55 time=0.000 ms
64 bytes from gmx.net (213.165.65.50): icmp_seq=195 ttl=55 time=10.9 ms
64 bytes from gmx.net (213.165.65.50): icmp_seq=196 ttl=55 time=10.5 ms
64 bytes from gmx.net (213.165.65.50): icmp_seq=197 ttl=55 time=11.0 ms
64 bytes from gmx.net (213.165.65.50): icmp_seq=198 ttl=55 time=10.9 ms
64 bytes from gmx.net (213.165.65.50): icmp_seq=199 ttl=55 time=10.4 ms
64 bytes from gmx.net (213.165.65.50): icmp_seq=200 ttl=55 time=10.5 ms
64 bytes from gmx.net (213.165.65.50): icmp_seq=201 ttl=55 time=11.0 ms
64 bytes from gmx.net (213.165.65.50): icmp_seq=202 ttl=55 time=10.9 ms
Warning: time of day goes back (-69670us), taking countermeasures.
64 bytes from gmx.net (213.165.65.50): icmp_seq=203 ttl=55 time=0.000 ms

Gruss
Klaus
 
Last edited by a moderator:
Ok, als neuer Versuch:
Wie schaut die /etc/xinetd.d/smtp_psa.conf aus?
Wird evtl. tcp-env nicht aufgerufen?

huschi.
 
Die smtp_psa.conf gibt es weder in der:
/etc/init.d/ weder noch in der /etc/xinitd.d

Gruss
Klaus
 
Ist denn ein bisschen eigen Engagement schon wieder zuviel verlangt?
Es gibt definitiv einen Eintrag für den SMTP-Port im (x)inetd ("inet" nicht "init").
Finde den und wir machen hier weiter.

huschi.
 
Habe gerade Webmin Installiert, da ist die suche einfacher.

So in der inetd config steht folgendes:
Sevice Name = smtp
Port = 25
Protokolle = TCP
Aliase = mail
Komando = /var/qmail/bin/tcp-env
Argumente = tcp-env Rt-0 /usr/bin/env SMTPAUTH=1 POPLOCK_TIME=20 END=1 /var/qmail/bin/relaylock /var/qmail/bin/qmail-smtpd /var/qmail/bin/smtp_auth /var/qmail/bin/true /var/qmail/bin/cmd5checkpw /var/qmail/bin/true

Gruss
Klaus
 
Meinen Server habe ich wie folgt Installiert:

Debian 4 64bit Minimal.
Dann xinitd Installiert

Plesk 8 Installation auf debian 4.x
Anleitung zur Installation von Plesk 8 auf debian 4.x siehe hier:
Plesk 8 Installation auf debian 4.x - enarion.net

An weiteren configs habe ich nichts verändert.

Plesk hat leider nichts in die xinetd.conf geschrieben, sonder nutzt leider inetd.

Plesk hat diese werte in die inetd.conf geschrieben:

Code:
# /etc/inetd.conf:  see inetd(8) for further informations.
#
# Internet superserver configuration database
#
#
# Lines starting with "#:LABEL:" or "#<off>#" should not
# be changed unless you know what you are doing!
#
# If you want to disable an entry so it isn't touched during
# package updates just comment it out with a single '#' character.
#
# Packages should modify this file by using update-inetd(8)
#
# <service_name> <sock_type> <proto> <flags> <user> <server_path> <args>
#
#:INTERNAL: Internal services
#discard		stream	tcp	nowait	root	internal
#discard		dgram	udp	wait	root	internal
#daytime		stream	tcp	nowait	root	internal
#time		stream	tcp	nowait	root	internal

#:STANDARD: These are standard services.

#:BSD: Shell, login, exec and talk are BSD protocols.

#:MAIL: Mail, news and uucp services.

#:INFO: Info services

#:BOOT: TFTP service is provided primarily for booting.  Most sites
#       run this only on machines acting as "boot servers."

#:RPC: RPC based services

#:HAM-RADIO: amateur-radio services

#:OTHER: Other services
ftp      stream  tcp     nowait  root    /usr/sbin/tcpd  in.proftpd
smtp stream tcp nowait.1000 root /var/qmail/bin/tcp-env tcp-env Rt-0 /usr/bin/env  SMTPAUTH=1  POPLOCK_TIME=20  END=1 /var/qmail/bin/relaylock /var/qmail/bin/qmail-smtpd /var/qmail/bin/smtp_auth /var/qmail/bin/true /var/qmail/bin/cmd5checkpw /var/qmail/bin/true
smtps stream tcp nowait.1000 root /var/qmail/bin/tcp-env tcp-env Rt-0 /usr/bin/env  SMTPAUTH=1  POPLOCK_TIME=20  END=1 /var/qmail/bin/relaylock /var/qmail/bin/qmail-smtpd /var/qmail/bin/smtp_auth /var/qmail/bin/true /var/qmail/bin/cmd5checkpw /var/qmail/bin/true
#<off># netbios-ssn	stream	tcp	nowait	root	/usr/sbin/tcpd	/usr/sbin/smbd

poppassd stream tcp nowait/1000 root /usr/sbin/tcpd /opt/psa/admin/bin/poppassd

ausser das Rt-0 dies habe ich zusätzlich eingegefügt da die Anmeldung am Mailsserver zu lange gedauert hat.

MFG
Klaus Kiewitt
 
Last edited by a moderator:
Ich habe inetd und xinetd drauf stimmt.

inetd.conf mittels xconv.pl komplett für xinetd konvertieren,
habe ich durchgeführt werte sind auch in der xinetd.conf geschrieben worden.

Wenn ich nun die inetd.conf lösche werden keine mails mehr versendet,
demnach gehe ich davon aus das xinetd icht genutzt wird.

wenn ich die xinetd.conf lösche läuft alles weiter.

inetd.conf sieht nun so aus:

den doppel eintrag tcp-env habe ich entfernt und ein -Rt0 bei smtp und smtps gesetzt, nun wenn eine mail vesendet wird dauert es ca 30 sec bis am Mailsserver angemeldet wird und dann die mail versand wird.

MFG
Klaus Kiewitt
 
inetd läuft nicht mehr auf meinem System ist nun gestoppt.

wie gesagt die inetd.conf und die xinetd.conf sind gleich,
ich habe mal smtp in inetd gestoppt da geht kein mail versand mehr,
wenn ich den smtp und smtps in xinetd stoppe kann ich weiter mails versenden.

Ich blicke da irgend wie nicht richtig durch.

Derzeit habe ich ca 30 E-Mail Postfächer wenn ich diese mit Windows Mail (habe Vista) abrufe bleibt Windows Mail bei manchen Postfächern hängen bekomme die Meldung der pop Server hat inerhalb 60sec nicht geantwortet wollen Sie weitere 60sec warten?.
 
Bring es einfach in den Griff, daß xinetd für die Emails zuständig ist.
Kontrolliere die Ausgaben von inetd und xinetd in den Logfiles.
Und der ganze Rest ist momentan egal. Mach erstmal das Eine richtig.

PS:
wie gesagt die inetd.conf und die xinetd.conf sind gleich
Die dürfen nicht gleich sein.

huschi.
 
Back
Top