PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : debian exim4 + dspam



YoZ
14.05.06, 18:25
hallo leute..

versuche dspam auf debian sarge zum laufen zu bringen..

hardware:

AMD 64 dual core opteron.

Habe dspam mit apt-get installiert alles scheint zu passen und zu laufen.. emails werden jedoch nicht überprüft...

emails müssten am ende mit "!DSpam id" gekennzeichnet werden und auch über die webinterface scheint es keine historical data zu geben.

hier aus den logs:

aus /var/log/exim4/mainlog sieht man dass die mails über dspam laufen:


2006-05-14 18:21:49 1FfJLp-0005vc-Mr => yoz <yoz@domain.org> R=dspam_router T=dspam_spamcheck
2006-05-14 18:21:49 1FfJLp-0005vc-Mr Completed
2006-05-14 18:21:49 1FfJLp-0005vn-R6 => /var/opt/vmail/domain.org/yoz/Maildir (yoz@debians.org) <yoz@optex.domain.org> R=virtual_domains T=virtual_delivery
2006-05-14 18:21:49 1FfJLp-0005vn-R6 Completed


die mails kommena auch an aber ohne dspam check.

und so sieht meine exim4.conf aus (dspam part):


dspam_router:
no_verify
check_local_user
# When to scan a message :
# - it isn't already flagged as spam from Spamassassin
# - it isn't already flagged as spam from DSPAM
# - it isn't already scanned
# - it isn't local
# - it isn't from one internal domain user to another
# - it is less than 512k in size
condition = "${if and { \
{!def:h_X-Spam-Flag:} \
{!def:h_X-FILTER-DSPAM:} \
# {!eq {$received_protocol}{local}} \
{ <= {$message_size}{512k}} \
}\
{1}{0}}"
headers_add = "X-FILTER-DSPAM: by $primary_hostname on $tod_full"
driver = accept
transport = dspam_spamcheck
# Which users to run dspam for.
#local_parts = /usr/local/etc/exim/dspam-testers
dspam_addspam_router:
driver = accept
local_part_prefix = spam-
transport = dspam_addspam
dspam_falsepositive_router:
driver = accept
local_part_prefix = nospam-
transport = dspam_falsepositive



dspam_spamcheck:
driver = pipe
command = "/usr/bin/dspam --deliver=innocent --user \
${lc:$local_part} -f '$sender_address' -bm %u"
home_directory = "/tmp"
current_directory = "/tmp"
user = Debian-exim
group = mail
log_output = true
return_fail_output = true
return_path_add = false
message_prefix =
message_suffix =
dspam_addspam:
driver = pipe
command = "/usr/bin/dspam --class=spam --source=error --user \
${lc:$local_part} -f '$sender_address' -bm %u"
home_directory = "/tmp"
current_directory = "/tmp"
user = Debian-exim
group = mail
log_output = true
return_fail_output = true
return_path_add = false
message_prefix =
message_suffix =
dspam_falsepositive:
driver = pipe
command = "/usr/bin/dspam --class=innocent --source=error \
--deliver=innocent,spam --user ${lc:$local_part}\
-f '$sender_address' -bm %u"
home_directory = "/tmp"
current_directory = "/tmp"
user = Debian-exim
group = mail
log_output = true
return_fail_output = true
return_path_add = false
message_prefix =
message_suffix =
=


ich denke dass es nur an dspam hängt, weiss aber nicht was es ist.

jemand eine idee?

Roger Wilco
14.05.06, 18:29
Schau dir mit `exim -bh 192.168.1.1` an, welche Router die Mails tatsächlich durchlaufen. Wenn du SpamAssassin laufen hast, mußt du je nach Konfiguration noch die Bedingungen in deinem dspam_router bearbeiten.

YoZ
14.05.06, 18:57
da passier net viel:


optex:/etc/dspam# exim4 -bh 192.168.0.1

**** SMTP testing session as if from host 192.168.0.1
**** but without any ident (RFC 1413) callback.
**** This is not for real!

>>> host in hosts_connection_nolog? no (option unset)
>>> host in host_lookup? yes (matched "*")
>>> looking up host name for 192.168.0.1
>>> IP address lookup yielded optex.debians.org
>>> gethostbyname2 looked up these IP addresses:
>>> name=optex.domain.org address=192.168.0.1
>>> checking addresses for optex.domain.org
>>> 192.168.0.1 OK
>>> host in host_reject_connection? no (option unset)
>>> host in sender_unqualified_hosts? no (option unset)
>>> host in recipient_unqualified_hosts? no (option unset)
>>> host in helo_verify_hosts? no (option unset)
>>> host in helo_try_verify_hosts? no (option unset)
>>> host in helo_accept_junk_hosts? no (option unset)
220 optex.domain.org ESMTP Exim 4.50 Sun, 14 May 2006 18:55:40 +0200


spamassassin habe ich zwar installiert aber deaktiviert.

MfG

Roger Wilco
14.05.06, 19:03
da passier net viel
Ja, da mußt du mit deinem Exim den SMTP-Dialog durchspielen, damit was passiert.

YoZ
14.05.06, 19:11
optex:/etc/dspam# exim4 -bt yoz
yoz@optex.domain.org
router = dspam_router, transport = dspam_spamcheck


ich weiss leider nicht weiter. :mad:

YoZ
14.05.06, 20:44
ok jetzt passt alles..

über die webinterface sehe ich auch ankommende mails nur kann ich die nicht als spam trainieren.. die cgi-scripts führen /usr/bin/dspam* aus schätze ich und da werden die rechte nicht ganz passen.. hat jemand eine idee wie man das machen könnte?

hab mit apache net so viel erfahrung.. hab da irgendwas von suexec gelesen aber leider nichts konkretes gefunden.

kann jemand helfen bezüglich webinterface?

MfG