Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
centos:mail_c7:spam_6 [02.12.2014 14:16. ] – [GTUBE auf Port 587 (MUA zu MSA Verkehr)] django | centos:mail_c7:spam_6 [22.07.2019 15:02. ] (aktuell) – Externe Bearbeitung 127.0.0.1 | ||
---|---|---|---|
Zeile 1: | Zeile 1: | ||
- | <WRAP center round important 60%> | ||
- | Artikel befindet sich noch in Bearbeitung - noch nicht vollständig! | ||
- | </ | ||
- | |||
====== Grundinstallation von AMaViS unter CentOS 7.x ====== | ====== Grundinstallation von AMaViS unter CentOS 7.x ====== | ||
{{: | {{: | ||
- | <WRAP round important> | + | <WRAP round important> |
Viele der Design und Konfigurationsvorschläge stammen aus einem Idividualtraining beim **" | Viele der Design und Konfigurationsvorschläge stammen aus einem Idividualtraining beim **" | ||
Zeile 30: | Zeile 26: | ||
===== Installation ===== | ===== Installation ===== | ||
==== amavisd-milter ==== | ==== amavisd-milter ==== | ||
- | Da wir für den " | + | Da wir für den " |
# yum install amavisd-milter -y | # yum install amavisd-milter -y | ||
Zeile 214: | Zeile 210: | ||
# Django : 2014-11-18 | # Django : 2014-11-18 | ||
# default: SOCKET=/ | # default: SOCKET=/ | ||
- | SOCKET=inet: | + | SOCKET=inet: |
# | # | ||
Zeile 1081: | Zeile 1077: | ||
</ | </ | ||
- | Viele Parameter sind etwas arg verstreut in der Datei, so dass man oft nicht auf den ersten Blick deren Abhängigkeit erkennt. Wir werden daher, ähnlich auch schon wie bei der Konfiguration unseres **MTA**((**M**ail **T**ransport **A**gent)) [[centos: | + | Viele Parameter sind etwas arg verstreut in der Datei, so dass man oft nicht auf den ersten Blick deren Abhängigkeit erkennt. Wir werden daher, ähnlich auch schon wie bei der Konfiguration unseres **MTA**((**M**ail **T**ransport **A**gent)) [[centos: |
Wir benennen also als erstes einmal, die original mitgelieferte Konfigurationsdate des AMaViS-Daemon um. | Wir benennen also als erstes einmal, die original mitgelieferte Konfigurationsdate des AMaViS-Daemon um. | ||
Zeile 2087: | Zeile 2083: | ||
$lock_file = "/ | $lock_file = "/ | ||
$pid_file | $pid_file | ||
+ | |||
+ | # ENVELOPE SENDER SOFT-WHITELISTING / SOFT-BLACKLISTING | ||
+ | @score_sender_maps = ({ # a by-recipient hash lookup table, | ||
+ | # results from all matching recipient tables are summed | ||
+ | |||
+ | # ## per-recipient personal tables | ||
+ | # ' | ||
+ | # ' | ||
+ | # ' | ||
+ | # ' | ||
+ | |||
+ | ## site-wide opinions about senders (the ' | ||
+ | ' | ||
+ | |||
+ | | ||
+ | [qr' | ||
+ | [qr' | ||
+ | [qr' | ||
+ | [qr' | ||
+ | [qr' | ||
+ | [qr' | ||
+ | [qr' | ||
+ | ), | ||
+ | |||
+ | # read_hash("/ | ||
+ | |||
+ | { # a hash-type lookup table (associative array) | ||
+ | ' | ||
+ | ' | ||
+ | ' | ||
+ | ' | ||
+ | ' | ||
+ | ' | ||
+ | ' | ||
+ | ' | ||
+ | ' | ||
+ | ' | ||
+ | ' | ||
+ | ' | ||
+ | ' | ||
+ | ' | ||
+ | ' | ||
+ | ' | ||
+ | ' | ||
+ | ' | ||
+ | ' | ||
+ | ' | ||
+ | ' | ||
+ | ' | ||
+ | ' | ||
+ | ' | ||
+ | ' | ||
+ | ' | ||
+ | ' | ||
+ | ' | ||
+ | ' | ||
+ | | ||
+ | | ||
+ | |||
+ | # soft-blacklisting (positive score) | ||
+ | ' | ||
+ | ' | ||
+ | |||
+ | }, | ||
+ | ], # end of site-wide tables | ||
+ | }); | ||
# Utilities mit denen amavis Archive auspackt | # Utilities mit denen amavis Archive auspackt | ||
Zeile 2264: | Zeile 2326: | ||
10.0.0.0/ | 10.0.0.0/ | ||
10.0.10.0/ | 10.0.10.0/ | ||
- | )</ | + | ) |
Zeile 2525: | Zeile 2587: | ||
originating => 1, | originating => 1, | ||
# Keine pof Abfragen für interne Clients durchführen. | # Keine pof Abfragen für interne Clients durchführen. | ||
- | os_fingerprint_method => undef, | + | os_fingerprint_method => undef, |
+ | # keinerlei unchecked-Meldungen verschicken | ||
+ | # | ||
+ | # " | ||
+ | $admin_maps_by_ccat{+CC_UNCHECKED.', | ||
}; | }; | ||
Zeile 2541: | Zeile 2607: | ||
virus_admin_maps => [" | virus_admin_maps => [" | ||
spam_admin_maps | spam_admin_maps | ||
- | warnbadhsender | + | warnbadhsender |
+ | # keinerlei unchecked-Meldungen verschicken | ||
+ | # | ||
+ | # " | ||
+ | $admin_maps_by_ccat{+CC_UNCHECKED.', | ||
# forward to a smtpd service providing DKIM signing service | # forward to a smtpd service providing DKIM signing service | ||
forward_method => ' | forward_method => ' | ||
Zeile 2601: | Zeile 2671: | ||
==== Postfix ==== | ==== Postfix ==== | ||
- | Die Anbinung | + | Die Anbindung |
- | * **MTA**((**M**ail **T**ransport **A**gent))-Traffic : Hier bewerten und prüfen wir die Nachricht noch während der Annahme der Nachricht. Daher nutzen wir hier unseren [[centos: | + | * **MTA**((**M**ail **T**ransport **A**gent))-Traffic : Hier bewerten und prüfen wir die Nachricht noch während der Annahme der Nachricht. Daher nutzen wir hier unseren [[centos: |
################################################################################ | ################################################################################ | ||
Zeile 2608: | Zeile 2678: | ||
# Django : 2014-11-18 | # Django : 2014-11-18 | ||
# DMARC Test | # DMARC Test | ||
- | amavisd_milter | + | amavisd_milter |
... | ... | ||
Zeile 2653: | Zeile 2723: | ||
Als erstes gestatten wir den Verkehr vom SMTP-Daemon zum AMaViS-Milter. | Als erstes gestatten wir den Verkehr vom SMTP-Daemon zum AMaViS-Milter. | ||
- | # firewall-cmd --permanent --zone=public --add-rich-rule=" | + | # firewall-cmd --permanent --zone=public --add-rich-rule=" |
| | ||
Zeile 2670: | Zeile 2740: | ||
< | < | ||
pkts bytes target | pkts bytes target | ||
- | 0 0 ACCEPT | + | 0 0 ACCEPT |
0 0 ACCEPT | 0 0 ACCEPT | ||
</ | </ | ||
Zeile 2720: | Zeile 2790: | ||
Main PID: 15166 (amavisd-milter) | Main PID: 15166 (amavisd-milter) | ||
| | ||
- | | + | |
Dec 02 09:38:09 vml000067.dmz.nausch.org systemd[1]: Starting amavisd-milter is a milter (mailfilter) for amavisd-new which uses the AM.PDP protocol.... | Dec 02 09:38:09 vml000067.dmz.nausch.org systemd[1]: Starting amavisd-milter is a milter (mailfilter) for amavisd-new which uses the AM.PDP protocol.... | ||
Dec 02 09:38:09 vml000067.dmz.nausch.org systemd[1]: PID file / | Dec 02 09:38:09 vml000067.dmz.nausch.org systemd[1]: PID file / | ||
- | Dec 02 09:38:09 vml000067.dmz.nausch.org amavisd-milter[15166]: | + | Dec 02 09:38:09 vml000067.dmz.nausch.org amavisd-milter[15166]: |
Dec 02 09:38:09 vml000067.dmz.nausch.org systemd[1]: Started amavisd-milter is a milter (mailfilter) for amavisd-new which uses the AM.PDP protocol..</ | Dec 02 09:38:09 vml000067.dmz.nausch.org systemd[1]: Started amavisd-milter is a milter (mailfilter) for amavisd-new which uses the AM.PDP protocol..</ | ||
Mit **lsof** können wir auch den geöfneten Port überprüfen. | Mit **lsof** können wir auch den geöfneten Port überprüfen. | ||
- | # lsof -i :10010 | + | # lsof -i :8899 |
| | ||
- | | + | |
Zeile 2972: | Zeile 3042: | ||
=== SMTP-Client (swaks) === | === SMTP-Client (swaks) === | ||
Wir verschicken nun als erstes mit Hilfe von [[http:// | Wir verschicken nun als erstes mit Hilfe von [[http:// | ||
- | | + | $ swaks --to django@nausch.org --from n3rd@sec-mail.guru --header-X-Test "test eMail" --server 10.0.0.87 --port 25 --tls --header " |
< | < | ||
Zeile 3146: | Zeile 3216: | ||
=== SMTP-Client (swaks) === | === SMTP-Client (swaks) === | ||
- | Auch hier verschicken wir nun mit Hilfe von [[http:// | + | Auch hier verschicken wir nun mit Hilfe von [[http:// |
$ # swaks --to django@nausch.org --from n3rd@sec-mail.guru --header-X-Test "test eMail" --server 10.0.0.87 --port 587 --tls --header " | $ # swaks --to django@nausch.org --from n3rd@sec-mail.guru --header-X-Test "test eMail" --server 10.0.0.87 --port 587 --tls --header " | ||
Zeile 3293: | Zeile 3363: | ||
=== MUA (Empfänger) === | === MUA (Empfänger) === | ||
- | Der Empfänger findet nun im Mail-Postfach unsere Testnachricht. Im Gegensatz zum vorangegangenen Testlauf mit Einlieferung auf Port **25**, sehen wir hier im Mailheader den " | + | Der Empfänger findet nun im Mail-Postfach unsere Testnachricht. Im Gegensatz zum vorangegangenen Testlauf mit Einlieferung auf Port **25**, sehen wir hier im Mailheader den " |
< | < | ||
Zeile 3455: | Zeile 3525: | ||
</ | </ | ||
- | Wie wir sehen lönnen | + | Wie wir sehen können |
=== SMTP-Server === | === SMTP-Server === | ||
Zeile 3524: | Zeile 3594: | ||
</ | </ | ||
==== GTUBE auf Port 587 (MUA zu MSA Verkehr) ==== | ==== GTUBE auf Port 587 (MUA zu MSA Verkehr) ==== | ||
- | Als nächstes überprüfen wir, ob wir die GTUBE-Testmail als authetifizierten | + | Als nächstes überprüfen wir, ob wir die GTUBE-Testmail als authentifizierten |
=== SMTP-Client (swaks) === | === SMTP-Client (swaks) === | ||
- | Als nächstes | + | Das bereits heruntergeladene GTUBE-Testmail |
- | FIXME FIXME | + | # swaks --to django@nausch.org --from n3rd@sec-mail.guru --header-X-Test "test eMail" --server 10.0.0.87 --port |
- | Diese Nachricht versuchen wir nun loszuschicken: | + | |
- | # swaks --to django@nausch.org --from n3rd@sec-mail.guru --header-X-Test "test eMail" --server 10.0.0.87 --port | + | < |
- | < | + | === Connected to 10.0.0.87. |
- | === Connected to 10.0.0.87. | + | <- 220 mx01.nausch.org ESMTP Postfix |
- | <- 220 mx01.nausch.org ESMTP Postfix | + | -> EHLO vml000087.dmz.nausch.org |
- | -> EHLO vml000087.dmz.nausch.org | + | <- 250-mx01.nausch.org |
- | <- 250-mx01.nausch.org | + | <- 250-PIPELINING |
- | <- 250-PIPELINING | + | <- 250-SIZE 52428800 |
- | <- 250-SIZE 52428800 | + | <- 250-ETRN |
- | <- 250-ETRN | + | <- 250-STARTTLS |
- | <- 250-STARTTLS | + | <- 250-ENHANCEDSTATUSCODES |
- | <- 250-ENHANCEDSTATUSCODES | + | <- 250-8BITMIME |
- | <- 250-8BITMIME | + | <- 250 DSN |
- | <- 250 DSN | + | -> STARTTLS |
- | -> STARTTLS | + | <- 220 2.0.0 Ready to start TLS |
- | <- 220 2.0.0 Ready to start TLS | + | |
=== TLS started with cipher TLSv1.2: | === TLS started with cipher TLSv1.2: | ||
- | === TLS no local certificate set | + | === TLS no local certificate set |
- | === TLS peer DN="/ | + | === TLS peer DN="/ |
- | ~> EHLO vml000087.dmz.nausch.org | + | ~> EHLO vml000087.dmz.nausch.org |
- | <~ 250-mx01.nausch.org | + | <~ 250-mx01.nausch.org |
- | <~ 250-PIPELINING | + | <~ 250-PIPELINING |
- | <~ 250-SIZE 52428800 | + | <~ 250-SIZE 52428800 |
- | <~ 250-ETRN | + | <~ 250-ETRN |
- | <~ 250-ENHANCEDSTATUSCODES | + | <~ 250-AUTH PLAIN LOGIN DIGEST-MD5 CRAM-MD5 NTLM |
- | <~ 250-8BITMIME | + | <~ 250-AUTH=PLAIN LOGIN DIGEST-MD5 CRAM-MD5 NTLM |
- | <~ 250 DSN | + | <~ 250-ENHANCEDSTATUSCODES |
- | ~> MAIL FROM:< | + | <~ 250-8BITMIME |
- | <~ 250 2.1.0 Ok | + | <~ 250 DSN |
- | ~> RCPT TO:< | + | ~> AUTH NTLM |
- | <~ 250 2.1.5 Ok | + | <~ 334 |
- | ~> DATA | + | ~> TlRUMTVNTUAABAAAABU6IAAAAAAAAAAAAAAAAAAAAAAAA= |
- | <~ 354 End data with < | + | <~ 334 UTlRMTVNTUAADUAAAAGAAYAEAAAAAYABUgAWAAAADAAMABwAAAAJAAkAKAAAAAkACQAxAAAAAAAAACoAAAABUQKCABKUTbcHiUVToxqvguZXpp6jgnmGYJ9jDa0UoXqDbxiyz+V1xFp8hFH2sd3yaZl/ |
- | ~> Date: Tue, 02 Dec 2014 12:10:34 +0100 | + | <~ 235 2.7.0 Authentication successful |
- | ~> To: django@nausch.org | + | ~> MAIL FROM:< |
- | ~> From: n3rd@sec-mail.guru | + | <~ 250 2.1.0 Ok |
- | ~> Subject: | + | ~> RCPT TO:< |
- | ~> X-Mailer: swaks v20130209.0 jetmore.org/ | + | <~ 250 2.1.5 Ok |
- | ~> X-Test: test eMail | + | ~> DATA |
- | | + | <~ 354 End data with < |
- | ~> Subject: Test spam mail (GTUBE) | + | ~> Date: Tue, 02 Dec 2014 15:27:15 +0100 |
- | ~> Message-ID: < | + | ~> To: django@nausch.org |
- | ~> Date: Wed, 23 Jul 2003 23:30:00 +0200 | + | ~> From: n3rd@sec-mail.guru |
- | ~> From: Sender < | + | ~> Subject: |
- | ~> To: Recipient < | + | ~> X-Mailer: swaks v20130209.0 jetmore.org/ |
- | ~> Precedence: junk | + | ~> X-Test: test eMail |
- | ~> MIME-Version: | + | ~> |
- | ~> Content-Type: | + | ~> Subject: Test spam mail (GTUBE) |
- | ~> Content-Transfer-Encoding: | + | ~> Message-ID: < |
- | | + | ~> Date: Wed, 23 Jul 2003 23:30:00 +0200 |
- | ~> This is the GTUBE, the | + | ~> From: Sender < |
- | | + | ~> To: Recipient < |
- | | + | ~> Precedence: junk |
- | | + | ~> MIME-Version: |
+ | ~> Content-Type: | ||
+ | ~> Content-Transfer-Encoding: | ||
+ | ~> | ||
+ | ~> This is the GTUBE, the | ||
+ | | ||
+ | | ||
+ | | ||
| | ||
| | ||
- | ~> | + | |
~> If your spam filter supports it, the GTUBE provides a test by which you | ~> If your spam filter supports it, the GTUBE provides a test by which you | ||
~> can verify that the filter is installed correctly and is detecting incoming | ~> can verify that the filter is installed correctly and is detecting incoming | ||
~> spam. You can send yourself a test mail containing the following string of | ~> spam. You can send yourself a test mail containing the following string of | ||
~> characters (in upper case and with no white spaces and line breaks): | ~> characters (in upper case and with no white spaces and line breaks): | ||
- | ~> | + | |
~> XJS*C4JDBQADN1.NSBN3*2IDNEN*GTUBE-STANDARD-ANTI-UBE-TEST-EMAIL*C.34X | ~> XJS*C4JDBQADN1.NSBN3*2IDNEN*GTUBE-STANDARD-ANTI-UBE-TEST-EMAIL*C.34X | ||
- | ~> | + | |
~> You should send this test mail from an account outside of your network. | ~> You should send this test mail from an account outside of your network. | ||
- | | + | ~> |
- | | + | ~> |
- | ~> | + | |
~> . | ~> . | ||
- | <~* 554 5.7.0 Reject, id=15388-01 - spam. Contact your postmaster/ | + | <~ 250 2.0.0 Ok: queued as E5401C00088 |
~> QUIT | ~> QUIT | ||
<~ 221 2.0.0 Bye | <~ 221 2.0.0 Bye | ||
+ | === Connection closed with remote host. | ||
</ | </ | ||
- | Wie wir sehen lönnen hat der SMTP-Server die Annahme der Nachricht mit dem Fehlercode | + | Die Nachricht |
- | === SMTP-Server === | + | Den genauen Ablauf dazu, sehen wir uns nun im Detail an. |
+ | |||
+ | === SMTP-Server | ||
+ | Im **Maillog** unseres Borderfilters sehen wir nun zu unserem gerade durchgeführten Versuch mehrere zusammenhängende Logeinträge. | ||
# less / | # less / | ||
- | < | + | |
- | Nov 18 14:56:33 vml000087 postfix/ | + | Zunächst sehen wir den TLS-Verbindungsaufbau, |
- | Nov 18 14:56:47 vml000087 postfix/ | + | < |
- | Nov 18 14:56:47 vml000087 postfix/cleanup[8192]: 49D10C00088: milter-reject: | + | Dec 2 15:27:15 vml000087 postfix/submission/smtpd[27678]: Anonymous TLS connection established from vml000087.dmz.nausch.org[10.0.0.87]: TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits) |
- | Nov 18 14:56:53 vml000087 postfix/ | + | Dec 2 15:27:15 vml000087 postfix/submission/ |
+ | Dec 2 15:27:15 vml000087 postfix/ | ||
+ | Dec 2 15:27:15 vml000087 postfix/ | ||
+ | Dec 2 15:27:15 vml000087 postfix/submission/smtpd[27678]: disconnect from vml000087.dmz.nausch.org[10.0.0.87] | ||
</ | </ | ||
- | === ASAV-Server | + | === ASAV-Host === |
+ | Die Überprüfung der Nachricht durch unseren Contentfilter wird auf dem AMaViS-Host im Maillog dokumentiert. | ||
# less / | # less / | ||
- | < | + | |
- | Nov 18 14:56:47 vml000067 amavis[10587]: process_request: | + | < |
- | Nov 18 14:56:47 vml000067 amavis[10587]: policy protocol: request=AM.PDP | + | Dec 2 15:27:16 vml000067 amavis[15668]: process_request: |
- | Nov 18 14:56:47 vml000067 amavis[10587]: policy protocol: queue_id=49D10C00088 | + | Dec 2 15:27:16 vml000067 amavis[15668]: (15668-01) ESMTP:[10.0.0.67]:10024 / |
- | Nov 18 14:56:47 vml000067 amavis[10587]: | + | org> Received: from mx01.nausch.org ([10.0.0.87]) by viruswall.dmz.nausch.org |
- | Nov 18 14:56:47 vml000067 amavis[10587]: | + | ; Tue, 2 Dec 2014 15:27:16 +0100 (CET) |
- | Nov 18 14:56:47 vml000067 amavis[10587]: policy protocol: tempdir=/ | + | Dec 2 15:27:16 vml000067 amavis[15668]: (15668-01) body hash: 4c7abc06887b1723a5b47a0f9562fd5c |
- | Nov 18 14:56:47 vml000067 | + | Dec 2 15:27:16 vml000067 amavis[15668]: (15668-01) ip_trace: 10.0.0.87 |
- | Nov 18 14:56:47 vml000067 amavis[10587]: | + | Dec 2 15:27:16 vml000067 amavis[15668]: (15668-01) client IP address unknown, fetched from Received: 10.0.0.87 |
- | Nov 18 14:56:47 vml000067 amavis[10587]: policy protocol: delivery_care_of=client | + | Dec 2 15:27:16 vml000067 amavis[15668]: (15668-01) Checking: |
- | Nov 18 14:56:47 vml000067 amavis[10587]: | + | Dec 2 15:27:16 vml000067 amavis[15668]: (15668-01) 2822.From: |
- | Nov 18 14:56:47 vml000067 amavis[10587]: policy protocol: client_name=vml000060.dmz.nausch.org | + | Dec 2 15:27:16 vml000067 amavis[15668]: (15668-01) p001 1 Content-Type: |
- | Nov 18 14:56:47 vml000067 amavis[10587]: | + | Dec 2 15:27:16 vml000067 amavis[15668]: (15668-01) inspect_dsn: |
- | Nov 18 14:56:47 vml000067 amavis[10587]: policy protocol: policy_bank=mx01.nausch.org | + | Dec 2 15:27:16 vml000067 amavis[15668]: (15668-01) Checking for banned types and filenames |
- | Nov 18 14:56:47 vml000067 amavis[10587]: (10587-01) Request: AM.PDP | + | Dec 2 15:27:16 vml000067 amavis[15668]: (15668-01) skipping banned check: all recipients bypass banned checks |
- | Nov 18 14:56:47 vml000067 amavis[10587]: (10587-01) loaded policy bank " | + | Dec 2 15:27:16 vml000067 amavis[15668]: (15668-01) presenting full original message to scanners as / |
- | Nov 18 14:56:47 vml000067 amavis[10587]: (10587-01) body hash: bb71e830f7582e0640cc78f70abd2bcf | + | Dec 2 15:27:16 vml000067 amavis[15668]: (15668-01) run_av Using (ClamAV-clamd): |
- | Nov 18 14:56:47 vml000067 amavis[10587]: (10587-01) ip_trace: 10.0.0.60 | + | Dec 2 15:27:16 vml000067 amavis[15668]: (15668-01) ClamAV-clamd: |
- | Nov 18 14:56:47 vml000067 amavis[10587]: (10587-01) Checking: | + | Dec 2 15:27:16 vml000067 amavis[15668]: (15668-01) new socket by IO:: |
- | Nov 18 14:56:47 vml000067 amavis[10587]: (10587-01) 2822.From: | + | Dec 2 15:27:16 vml000067 amavis[15668]: (15668-01) ClamAV-clamd: |
- | Nov 18 14:56:47 vml000067 amavis[10587]: (10587-01) p001 1 Content-Type: | + | amavisd/ |
- | Nov 18 14:56:47 vml000067 amavis[10587]: (10587-01) inspect_dsn: | + | Dec 2 15:27:16 vml000067 amavis[15668]: (15668-01) rw_loop read: got eof |
- | Nov 18 14:56:47 vml000067 amavis[10587]: | + | Dec 2 15:27:16 vml000067 amavis[15668]: (15668-01) run_av (ClamAV-clamd): |
- | Nov 18 14:56:47 vml000067 amavis[10587]: | + | Dec 2 15:27:16 vml000067 amavis[15668]: (15668-01) run_av (ClamAV-clamd) result: clean |
- | Nov 18 14:56:47 vml000067 amavis[10587]: (10587-01) Checking for banned types and filenames | + | Dec 2 15:27:16 vml000067 amavis[15668]: (15668-01) calling SA parse (0), SA vers 3.3.2, 3.003002, data as STRING, recips_ind [0], user: " |
- | Nov 18 14:56:47 vml000067 amavis[10587]: (10587-01) skipping banned check: all recipients bypass banned checks | + | Dec 2 15:27:16 vml000067 amavis[15668]: (15668-01) spam_scan: score=1000.8 autolearn=no tests=[ALL_TRUSTED=-1, |
- | Nov 18 14:56:47 vml000067 amavis[10587]: (10587-01) presenting full original message to scanners as / | + | Dec 2 15:27:16 vml000067 amavis[15668]: (15668-01) spam_scan: dsn_suppress_reason DKIM_ADSP_DISCARD |
- | Nov 18 14:56:47 vml000067 amavis[10587]: (10587-01) run_av Using (ClamAV-clamd): | + | Dec 2 15:27:16 vml000067 amavis[15668]: (15668-01) blocking contents category is (6) for django@nausch.org, |
- | Nov 18 14:56:47 vml000067 amavis[10587]: (10587-01) ClamAV-clamd: | + | |
- | Nov 18 14:56:47 vml000067 amavis[10587]: (10587-01) new socket by IO:: | + | Der SPAM-Wert von **1000.8** liegt doch "etwas über" unserem definierten Wert von **6.31**, die Nachricht wird also nicht zugestellt! |
- | Nov 18 14:56:47 vml000067 amavis[10587]: (10587-01) ClamAV-clamd: | + | |
- | Nov 18 14:56:47 vml000067 amavis[10587]: (10587-01) rw_loop read: got eof | + | <WRAP center round important> |
- | Nov 18 14:56:47 vml000067 amavis[10587]: (10587-01) run_av (ClamAV-clamd): | + | Gemäß unserer Konfiguration erhält der der Empfänger **virusalert@nausch.org** eine Nachricht von **postmaster@nausch.org** mit dem Details zu der SPAM-Mail. Der Postmaster kann so reagieren und mit dem authentifizierten Mailbox-Nutzer Kontalt aufnehmen und diesen ggf. darauf hinweisen, dass unter Umständen sein Rechner von einem Zombie gekapert wurde und dieser munter SPAM-Mails verschicken will. Ein weitere Ursache könnte auch ein durch eine **[[http:// |
- | Nov 18 14:56:47 vml000067 amavis[10587]: (10587-01) run_av (ClamAV-clamd) result: clean | + | |
- | Nov 18 14:56:47 vml000067 amavis[10587]: (10587-01) calling SA parse (0), SA vers 3.3.2, 3.003002, data as STRING, recips_ind [0], user: " | + | So kann der Postmaster tätig werden und weiteren Schaden vom Mailserver abwenden, bevor der eigene Server auf einer **Blacklist** landet und so dann gar keine Nachricht mehr verschickt werden könnte. |
- | Nov 18 14:56:47 vml000067 amavis[10587]: (10587-01) spam_scan: score=1006.51 autolearn=no tests=[ALL_TRUSTED=-1, | + | </ |
- | Nov 18 14:56:47 vml000067 amavis[10587]: (10587-01) bounce unverifiable, | + | |
- | Nov 18 14:56:47 vml000067 amavis[10587]: (10587-01) blocking contents category is (6) for michael@nausch.org, | + | Im Maillog des AMaViS-Servers sehen wir nun, dass der Daemon die entsprechende Nachricht an den definierten Bearbeiter verschicken wird. |
- | Nov 18 14:56:47 vml000067 amavis[10587]: (10587-01) do_notify_and_quar: | + | # less / |
- | Nov 18 14:56:47 vml000067 amavis[10587]: (10587-01) delivery method is 1, recips: | + | |
- | Nov 18 14:56:47 vml000067 amavis[10587]: (10587-01) status counters: InMsgsStatus{Rejected, | + | < |
- | Nov 18 14:56:47 vml000067 amavis[10587]: (10587-01) Blocked SPAM {RejectedInternal}, | + | Dec 2 15:27:16 vml000067 amavis[15668]: (15668-01) dkim: candidate originators: |
- | Nov 18 14:56:47 vml000067 amavis[10587]: (10587-01) TIMING-SA total 364 ms - parse: | + | Dec 2 15:27:16 vml000067 amavis[15668]: |
- | Nov 18 14:56:47 vml000067 amavis[10587]: (10587-01) mail checking ended: version_server=2\nlog_id=10587-01\nsetreply=554 5.7.0 Reject,%20id=10587-01%20-%20spam\nreturn_value=reject\nexit_code=69 | + | Dec 2 15:27:16 vml000067 amavis[15668]: |
- | Nov 18 14:56:47 vml000067 amavis[10587]: (10587-01) size: 929, TIMING [total | + | Dec 2 15:27:16 vml000067 amavis[15668]: |
- | Nov 18 14:56:47 vml000067 amavis[10587]: (10587-01) extra modules loaded: unicore/ | + | Dec 2 15:27:16 vml000067 amavis[15668]: |
- | Nov 18 14:56:47 vml000067 amavis[10587]: (10587-01) load: 100 %, total idle 0.000 s, busy 0.468 s | + | Dec 2 15:27:16 vml000067 amavis[15668]: |
+ | Dec 2 15:27:16 vml000067 amavis[15668]: | ||
+ | Dec 2 15:27:16 vml000067 amavis[15668]: | ||
+ | Dec 2 15:27:16 vml000067 amavis[15668]: | ||
+ | Dec 2 15:27:16 vml000067 amavis[15668]: | ||
+ | Dec 2 15:27:16 vml000067 amavis[15668]: | ||
+ | Dec 2 15:27:16 vml000067 amavis[15668]: | ||
+ | Dec 2 15:27:16 vml000067 amavis[15668]: | ||
+ | Dec 2 15:27:16 vml000067 amavis[15668]: | ||
+ | Dec 2 15:27:16 vml000067 amavis[15668]: | ||
+ | Dec 2 15:27:16 vml000067 amavis[15668]: | ||
+ | Dec 2 15:27:16 vml000067 amavis[15668]: | ||
+ | Dec 2 15:27:16 vml000067 amavis[15668]: | ||
+ | Dec 2 15:27:16 vml000067 amavis[15668]: | ||
+ | Dec 2 15:27:16 vml000067 amavis[15668]: (15668-01) status counters: InMsgsStatus{Rejected, | ||
+ | Dec 2 15:27:16 vml000067 amavis[15668]: (15668-01) Blocked SPAM {RejectedInternal}, | ||
+ | Dec 2 15:27:16 vml000067 amavis[15668]: (15668-01) TIMING-SA total 404 ms - parse: | ||
+ | Dec 2 15:27:16 vml000067 amavis[15668]: (15668-01) sending SMTP response: "554 5.7.0 Reject, | ||
+ | Dec 2 15:27:16 vml000067 amavis[15668]: (15668-01) size: 1417, TIMING [total | ||
+ | Dec 2 15:27:16 vml000067 amavis[15668]: | ||
+ | Dec 2 15:27:16 vml000067 amavis[15668]: (15668-01) extra modules loaded: unicore/ | ||
+ | Dec 2 15:27:16 vml000067 amavis[15668]: (15668-01) load: 100 %, total idle 0.003 s, busy 0.700 s</ | ||
+ | |||
+ | === SMTP-Server (Teil 2 von 3) === | ||
+ | Im **Maillog** unseres Borderfilters sehen wir nun also als nächstes den Eingang dieser Notification-eMail an den definierten Empfänger. | ||
+ | # less / | ||
+ | |||
+ | < | ||
+ | Dec 2 15:27:16 vml000087 postfix/ | ||
+ | Dec 2 15:27:16 vml000087 postfix/ | ||
+ | Dec 2 15:27:16 vml000087 postfix/ | ||
+ | Dec 2 15:27:16 vml000087 postfix/ | ||
+ | Dec 2 15:27:16 vml000087 postfix/ | ||
+ | Dec 2 15:27:16 vml000087 postfix/ | ||
+ | Dec 2 15:27:16 vml000087 postfix/ | ||
+ | Dec 2 15:27:16 vml000087 postfix/ | ||
+ | Dec 2 15:27:17 vml000087 postfix/ | ||
+ | Dec 2 15:27:17 vml000087 postfix/ | ||
</ | </ | ||
- | ==== EICAR ==== | + | === SMTP-Server (Teil 3 von 3) === |
- | === SMTP-Client === | + | |
- | $ swaks -t django@nausch.org --attach - --server 10.0.0.87 --suppress-data </ | + | <WRAP center round tip> |
+ | Zu guter Letzt sehen wir dann noch die **Bounce**-Nachricht an den ursprünglichen Absender, den wir ja zweifelsfrei kennen, da dieser sich beim Einliefern der Nachricht authentifizierten hatte. Somit ist die Gefahr von **[[http:// | ||
+ | </ | ||
+ | |||
+ | # less / | ||
+ | |||
+ | | ||
+ | | ||
+ | |||
+ | === MUA (Empfänger der Notification Mail) === | ||
+ | Wie schon angeschnitten erhält der verantwortliche Admin des Servers mit der Addresse **virusalert@nausch.org** eine Nachricht mit dem Detail des Versuches eine SPAM-Mail zu verschicken. | ||
+ | |||
+ | < | ||
+ | Delivered-To: | ||
+ | Received: from mx01.nausch.org ([10.0.0.87]) | ||
+ | by imap.nausch.org (Dovecot) with LMTP id 0WGxKC3MfVQbPAAArK2B9Q | ||
+ | for < | ||
+ | Received: from viruswall.dmz.nausch.org (vml000067.dmz.nausch.org [10.0.0.67]) | ||
+ | by mx01.nausch.org (Postfix) with ESMTP id 9A6FBC00089 | ||
+ | for < | ||
+ | DKIM-Signature: | ||
+ | message-id: | ||
+ | : | ||
+ | t=1417530436; | ||
+ | fu9jN2ZwFt0=; | ||
+ | Xxbc0Unj1QQ08ZSGRNHFp5aJu4rN71BI8ad8OhRTSHdbhWR821V2Z2yRti7TUDwq | ||
+ | QZigx230dACkYKrzQhTKJawAmXKbg1V2EUbTTqUpwBDsaYnTML9i+fAr4mcVrN2n | ||
+ | JBAmg1K3OL0uokXp/ | ||
+ | kxonaX5Bhio01JhAEuG+fy2f12N3QMNQ2l+8zWQskPXUaL/ | ||
+ | m6f1+Z8kBuZeosXe/ | ||
+ | adNxaPKefjC75FtY0AEYWpDlU8WIbk/ | ||
+ | xmy4M2uNK2l6aWbfQV0cjnrg0FQ2AfisP74d45dEaDNV+dsBhMiYgcZ1wHhW4Aro | ||
+ | ug1OiU1+hbie1t59J0Y15BHO/ | ||
+ | / | ||
+ | LQL4HSB5TbVxVDhOfgaStlWWRZmt4IwWR3aOsfGA2TSEOle4cTJXWHxokec= | ||
+ | Content-Type: | ||
+ | Content-Transfer-Encoding: | ||
+ | MIME-Version: | ||
+ | From: " | ||
+ | Date: Tue, 2 Dec 2014 15:27:16 +0100 (CET) | ||
+ | Subject: Spam FROM LOCAL [10.0.0.87] < | ||
+ | To: < | ||
+ | Message-ID: < | ||
+ | |||
+ | This is a multi-part message in MIME format... | ||
+ | |||
+ | ------------=_1417530436-15668-0 | ||
+ | Content-Type: | ||
+ | Content-Disposition: | ||
+ | Content-Transfer-Encoding: | ||
+ | |||
+ | Content type: Spam | ||
+ | Internal reference code for the message is 15668-01/ | ||
+ | |||
+ | First upstream SMTP client IP address: [10.0.0.87] | ||
+ | Received from: 10.0.0.87 | ||
+ | |||
+ | Return-Path: | ||
+ | From: n3rd@sec-mail.guru | ||
+ | Message-ID: < | ||
+ | X-Mailer: swaks v20130209.0 jetmore.org/ | ||
+ | Subject: vierte Testnachricht SPAM auf Port 587 | ||
+ | Not quarantined. | ||
+ | |||
+ | The message WAS NOT relayed to: | ||
+ | < | ||
+ | 554 5.7.0 Reject, id=15668-01 - spam | ||
+ | |||
+ | Spam scanner report: | ||
+ | Spam detection software, running on the system " | ||
+ | identified this incoming email as possible spam. The original message | ||
+ | has been attached to this so you can view it (if it isn't spam) or label | ||
+ | similar future email. | ||
+ | the administrator of that system for details. | ||
+ | |||
+ | Content preview: | ||
+ | Date: Wed, 23 Jul 2003 23:30:00 +0200 From: Sender < | ||
+ | | ||
+ | | ||
+ | |||
+ | Content analysis details: | ||
+ | |||
+ | pts rule name description | ||
+ | ---- ---------------------- -------------------------------------------------- | ||
+ | -1.0 ALL_TRUSTED | ||
+ | 1.8 DKIM_ADSP_DISCARD | ||
+ | and suggests discarding the rest | ||
+ | 1000 GTUBE BODY: Generic Test for Unsolicited Bulk Email | ||
+ | |||
+ | ------------=_1417530436-15668-0 | ||
+ | Content-Type: | ||
+ | Content-Disposition: | ||
+ | Content-Transfer-Encoding: | ||
+ | Content-Description: | ||
+ | |||
+ | Return-Path: | ||
+ | Received: from vml000087.dmz.nausch.org (vml000087.dmz.nausch.org [10.0.0.87]) | ||
+ | (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) | ||
+ | (No client certificate requested) | ||
+ | by mx01.nausch.org (Postfix) with ESMTPSA id E5401C00088 | ||
+ | for < | ||
+ | Date: Tue, 02 Dec 2014 15:27:15 +0100 | ||
+ | To: django@nausch.org | ||
+ | From: n3rd@sec-mail.guru | ||
+ | Subject: vierte Testnachricht SPAM auf Port 587 | ||
+ | X-Mailer: swaks v20130209.0 jetmore.org/ | ||
+ | X-Test: test eMail | ||
+ | Message-Id: < | ||
+ | |||
+ | ------------=_1417530436-15668-0-- | ||
+ | </ | ||
+ | |||
+ | === MUA (Empfänger der Bounce Mail) === | ||
+ | Der Ursprüngliche authentifizierte Absender erhält die Bounce-Nachricht, | ||
+ | |||
+ | < | ||
+ | Delivered-To: | ||
+ | Received: from mx01.nausch.org ([10.0.0.87]) | ||
+ | by imap.nausch.org (Dovecot) with LMTP id hwVTMkTMfVQfPAAArK2B9Q | ||
+ | for < | ||
+ | Received: by mx01.nausch.org (Postfix) | ||
+ | id B736EC0008A; | ||
+ | Date: Tue, 2 Dec 2014 15:27:16 +0100 (CET) | ||
+ | From: MAILER-DAEMON@nausch.org (Mail Delivery System) | ||
+ | Subject: Rueckgabe nicht zustellbarer Nachricht an Absender | ||
+ | To: n3rd@sec-mail.guru | ||
+ | Auto-Submitted: | ||
+ | MIME-Version: | ||
+ | Content-Type: | ||
+ | boundary=" | ||
+ | Message-Id: < | ||
+ | |||
+ | This is a MIME-encapsulated message. | ||
+ | |||
+ | --E5401C00088.1417530436/ | ||
+ | Content-Description: | ||
+ | Content-Type: | ||
+ | |||
+ | Dies ist eine automatisch generierte Nachricht des Postfix E-Mail-Dienstes. | ||
+ | Dieser Dienst wird auf dem Server mx01.nausch.org betrieben und teilt Ihnen | ||
+ | folgendes mit: | ||
+ | |||
+ | |||
+ | Ihre Nachricht konnte an einen oder mehrere Empfaenger nicht zugestellt | ||
+ | werden. Ein Problem-Bericht, | ||
+ | das Ende dieser Nachricht angehaengt. | ||
+ | |||
+ | |||
+ | Fuer weitere Hilfe kontaktieren Sie bitte den fuer Sie zustaendigen | ||
+ | < | ||
+ | |||
+ | Senden Sie dazu den an diese E-Mail angefuegten Problem-Bericht mit. | ||
+ | Den Inhalt Ihrer urspruenglichen Nachricht koennen Sie - zum Schutz Ihrer | ||
+ | Privatsphaere - entfernen; er ist fuer eine Fehler-Diagnose nicht zwingend | ||
+ | notwendig. | ||
+ | |||
+ | Der Postfix E-Mail-Dienst | ||
+ | |||
+ | INTERNATIONAL VERSION | ||
+ | |||
+ | This is the Postfix program at host mx01.nausch.org. | ||
+ | |||
+ | I'm sorry to have to inform you that your message could not | ||
+ | be delivered to one or more recipients. It's attached below. | ||
+ | |||
+ | For further assistance, please send mail to < | ||
+ | |||
+ | If you do so, please include this problem report. You can | ||
+ | delete your own text from the attached returned message. | ||
+ | |||
+ | |||
+ | < | ||
+ | id=15668-01 - spam (in reply to end of DATA command) | ||
+ | |||
+ | --E5401C00088.1417530436/ | ||
+ | Content-Description: | ||
+ | Content-Type: | ||
+ | |||
+ | Reporting-MTA: | ||
+ | X-Postfix-Queue-ID: | ||
+ | X-Postfix-Sender: | ||
+ | Arrival-Date: | ||
+ | |||
+ | Final-Recipient: | ||
+ | Original-Recipient: | ||
+ | Action: failed | ||
+ | Status: 5.7.0 | ||
+ | Remote-MTA: dns; 10.0.0.67 | ||
+ | Diagnostic-Code: | ||
+ | |||
+ | --E5401C00088.1417530436/ | ||
+ | Content-Description: | ||
+ | Content-Type: | ||
+ | |||
+ | Return-Path: | ||
+ | Received: from vml000087.dmz.nausch.org (vml000087.dmz.nausch.org [10.0.0.87]) | ||
+ | (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) | ||
+ | (No client certificate requested) | ||
+ | by mx01.nausch.org (Postfix) with ESMTPSA id E5401C00088 | ||
+ | for < | ||
+ | Date: Tue, 02 Dec 2014 15:27:15 +0100 | ||
+ | To: django@nausch.org | ||
+ | From: n3rd@sec-mail.guru | ||
+ | Subject: vierte Testnachricht SPAM auf Port 587 | ||
+ | X-Mailer: swaks v20130209.0 jetmore.org/ | ||
+ | X-Test: test eMail | ||
+ | Message-Id: < | ||
+ | |||
+ | Subject: Test spam mail (GTUBE) | ||
+ | Message-ID: < | ||
+ | Date: Wed, 23 Jul 2003 23:30:00 +0200 | ||
+ | From: Sender < | ||
+ | To: Recipient < | ||
+ | Precedence: junk | ||
+ | MIME-Version: | ||
+ | Content-Type: | ||
+ | Content-Transfer-Encoding: | ||
+ | |||
+ | This is the GTUBE, the | ||
+ | Generic | ||
+ | Test for | ||
+ | Unsolicited | ||
+ | Bulk | ||
+ | |||
+ | |||
+ | If your spam filter supports it, the GTUBE provides a test by which you | ||
+ | can verify that the filter is installed correctly and is detecting incoming | ||
+ | spam. You can send yourself a test mail containing the following string of | ||
+ | characters (in upper case and with no white spaces and line breaks): | ||
+ | |||
+ | XJS*C4JDBQADN1.NSBN3*2IDNEN*GTUBE-STANDARD-ANTI-UBE-TEST-EMAIL*C.34X | ||
+ | |||
+ | You should send this test mail from an account outside of your network. | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | --E5401C00088.1417530436/ | ||
+ | </ | ||
+ | |||
+ | |||
+ | ==== Eicar-Testmail auf Port 25 (MTA zu MTA Verkehr) ==== | ||
+ | |||
+ | === SMTP-Client | ||
+ | Beim vorletzten Test unseres **AS/ | ||
+ | |||
+ | Dazu laden wir uns erst einmal einen Testpattern [[http:// | ||
+ | # curl -O http:// | ||
+ | |||
+ | Wir versuchen nun eine eMail zusammen mit dieser Testdatei zu versenden, zunächst auf Port **25**. | ||
+ | Diese Nachricht versuchen wir nun loszuschicken: | ||
+ | # swaks -t django@nausch.org --attach - --server 10.0.0.87 --suppress-data <eicarcom2.zip --from n3rd@sec-mail.guru --header-X-Test "test eMail" --server 10.0.0.87 --port 25 --tls --header " | ||
< | < | ||
=== Connected to 10.0.0.87. | === Connected to 10.0.0.87. | ||
<- 220 mx01.nausch.org ESMTP Postfix | <- 220 mx01.nausch.org ESMTP Postfix | ||
- | -> EHLO vml000060.dmz.nausch.org | + | -> EHLO vml000087.dmz.nausch.org |
<- 250-mx01.nausch.org | <- 250-mx01.nausch.org | ||
<- 250-PIPELINING | <- 250-PIPELINING | ||
Zeile 3680: | Zeile 4054: | ||
<- 250-8BITMIME | <- 250-8BITMIME | ||
<- 250 DSN | <- 250 DSN | ||
- | | + | |
- | <- 250 2.1.0 Ok | + | <- 220 2.0.0 Ready to start TLS |
- | -> RCPT TO:< | + | === TLS started with cipher TLSv1.2: |
- | <- 250 2.1.5 Ok | + | === TLS no local certificate set |
- | -> DATA | + | === TLS peer DN="/ |
- | <- 354 End data with < | + | ~> EHLO vml000087.dmz.nausch.org |
- | -> 24 lines sent | + | <~ 250-mx01.nausch.org |
- | <** 554 5.7.0 Reject, id=10690-01 - INFECTED: Eicar-Test-Signature. Contact your postmaster/ | + | <~ 250-PIPELINING |
- | -> QUIT | + | <~ 250-SIZE 52428800 |
- | <- 221 2.0.0 Bye | + | <~ 250-ETRN |
+ | <~ 250-ENHANCEDSTATUSCODES | ||
+ | <~ 250-8BITMIME | ||
+ | <~ 250 DSN | ||
+ | ~> MAIL FROM:< | ||
+ | <~ 250 2.1.0 Ok | ||
+ | ~> RCPT TO:< | ||
+ | <~ 250 2.1.5 Ok | ||
+ | ~> DATA | ||
+ | <~ 354 End data with < | ||
+ | ~> 29 lines sent | ||
+ | <~* 554 5.7.0 Reject, id=15809-01 - INFECTED: Eicar-Test-Signature. Contact your postmaster/ | ||
+ | ~> QUIT | ||
+ | <~ 221 2.0.0 Bye | ||
+ | === Connection closed with remote host.</ | ||
+ | |||
+ | Wie wir sehen können, hat der SMTP-Server die Annahme der Nachricht mit dem Fehlercode **554 5.7.0 Reject, id=15809-01 - INFECTED: Eicar-Test-Signature.** verweigert. Zu dieser Fehlermeldung erhält der einliefernde SMTP-Client noch Informationen wie er sich ggf. mit uns in Verbindung setzen kann. | ||
+ | |||
+ | === SMTP-Server (Teil 1 von 2) === | ||
+ | Im **Maillog** unseres Borderfilters sehen wir nun zu unserem gerade durchgeführten Versuch eine Mail mit einem Virus einzuliefern mehrere zusammenhängende Logeinträge. | ||
+ | # less / | ||
+ | |||
+ | < | ||
+ | Dec 2 17:26:49 vml000087 postfix/ | ||
+ | 56/256 bits) | ||
+ | Dec 2 17:26:50 vml000087 postfix/ | ||
+ | Dec 2 17:26:50 vml000087 postfix/ | ||
+ | Dec 2 17:26:50 vml000087 postfix/ | ||
+ | Dec 2 17:26:50 vml000087 postfix/ | ||
+ | Dec 2 17:26:50 vml000087 postfix/ | ||
+ | Dec 2 17:26:50 vml000087 postfix/ | ||
+ | Dec 2 17:26:50 vml000087 postfix/ | ||
+ | Dec 2 17:26:50 vml000087 postfix/ | ||
+ | </ | ||
+ | Zunächst sehen wir den TLS-Verbindungsaufbau und dem erfolglosen Einlieferungsversuch des MTA((**M**ail **T**ransport **A**gent))-Clients. Hier finden wie auch die **id=15809-01** wieder, die uns der AMaViS-Host genannt hat. Diesen können wir nun verwenden um auf dem AMaViS-Host im Maillog zu suchen um in Erfahrung zu bringen, warum die Nachricht abgeleht wurde. | ||
+ | |||
+ | === ASAV-Host === | ||
+ | Die Überprüfung der Nachricht durch unseren Contentfilter wird auf dem AMaViS-Host im Maillog dokumentiert. | ||
+ | # less / | ||
+ | |||
+ | < | ||
+ | Dec 2 17:26:50 vml000067 amavis[15809]: | ||
+ | Dec 2 17:26:50 vml000067 amavis[15809]: | ||
+ | Dec 2 17:26:50 vml000067 amavis[15809]: | ||
+ | Dec 2 17:26:50 vml000067 amavis[15809]: | ||
+ | Dec 2 17:26:50 vml000067 amavis[15809]: | ||
+ | Dec 2 17:26:50 vml000067 amavis[15809]: | ||
+ | Dec 2 17:26:50 vml000067 amavis[15809]: | ||
+ | Dec 2 17:26:50 vml000067 amavis[15809]: | ||
+ | Dec 2 17:26:50 vml000067 amavis[15809]: | ||
+ | Dec 2 17:26:50 vml000067 amavis[15809]: | ||
+ | Dec 2 17:26:50 vml000067 amavis[15809]: | ||
+ | Dec 2 17:26:50 vml000067 amavis[15809]: | ||
+ | Dec 2 17:26:50 vml000067 amavis[15809]: | ||
+ | Dec 2 17:26:50 vml000067 amavis[15809]: | ||
+ | Dec 2 17:26:50 vml000067 amavis[15809]: | ||
+ | Dec 2 17:26:50 vml000067 amavis[15809]: | ||
+ | Dec 2 17:26:50 vml000067 amavis[15809]: | ||
+ | Dec 2 17:26:50 vml000067 amavis[15809]: | ||
+ | Dec 2 17:26:50 vml000067 amavis[15809]: | ||
+ | Dec 2 17:26:50 vml000067 amavis[15809]: | ||
+ | Dec 2 17:26:50 vml000067 amavis[15809]: | ||
+ | Dec 2 17:26:50 vml000067 amavis[15809]: | ||
+ | Dec 2 17:26:50 vml000067 amavis[15809]: | ||
+ | Dec 2 17:26:50 vml000067 amavis[15809]: | ||
+ | Dec 2 17:26:50 vml000067 amavis[15809]: | ||
+ | Dec 2 17:26:50 vml000067 amavis[15809]: | ||
+ | Dec 2 17:26:50 vml000067 amavis[15809]: | ||
+ | Dec 2 17:26:50 vml000067 amavis[15809]: | ||
+ | Dec 2 17:26:50 vml000067 amavis[15809]: | ||
+ | Dec 2 17:26:50 vml000067 amavis[15809]: | ||
+ | Dec 2 17:26:50 vml000067 amavis[15809]: | ||
+ | Dec 2 17:26:50 vml000067 amavis[15809]: | ||
+ | Dec 2 17:26:50 vml000067 clamd[1278]: | ||
+ | Dec 2 17:26:50 vml000067 clamd[1278]: | ||
+ | Dec 2 17:26:50 vml000067 amavis[15809]: | ||
+ | Dec 2 17:26:50 vml000067 amavis[15809]: | ||
+ | Dec 2 17:26:50 vml000067 amavis[15809]: | ||
+ | Dec 2 17:26:50 vml000067 amavis[15809]: | ||
+ | </ | ||
+ | |||
+ | Es wurde also die **Eicar-Test-Signature** in der Nachricht gefunden! Im **Maillog** des AMaViS-Servers sehen wir nun nachfolgend, | ||
+ | # less / | ||
+ | |||
+ | < | ||
+ | Dec 2 17:26:50 vml000067 amavis[15809]: | ||
+ | Dec 2 17:26:50 vml000067 amavis[15809]: | ||
+ | Dec 2 17:26:50 vml000067 amavis[15809]: | ||
+ | Dec 2 17:26:50 vml000067 amavis[15809]: | ||
+ | Dec 2 17:26:50 vml000067 amavis[15809]: | ||
+ | Dec 2 17:26:50 vml000067 amavis[15809]: | ||
+ | Dec 2 17:26:50 vml000067 amavis[15809]: | ||
+ | Dec 2 17:26:50 vml000067 amavis[15809]: | ||
+ | Dec 2 17:26:50 vml000067 amavis[15809]: | ||
+ | Dec 2 17:26:50 vml000067 amavis[15809]: | ||
+ | Dec 2 17:26:50 vml000067 amavis[15809]: | ||
+ | Dec 2 17:26:50 vml000067 amavis[15809]: | ||
+ | Dec 2 17:26:50 vml000067 amavis[15809]: | ||
+ | Dec 2 17:26:50 vml000067 amavis[15809]: | ||
+ | Dec 2 17:26:50 vml000067 amavis[15809]: | ||
+ | Dec 2 17:26:50 vml000067 amavis[15809]: | ||
+ | Dec 2 17:26:50 vml000067 amavis[15809]: | ||
+ | Dec 2 17:26:50 vml000067 amavis[15809]: | ||
+ | Dec 2 17:26:50 vml000067 amavis[15809]: | ||
+ | Dec 2 17:26:50 vml000067 amavis[15809]: | ||
+ | Dec 2 17:26:50 vml000067 amavis[15809]: | ||
+ | Dec 2 17:26:50 vml000067 amavis[15809]: | ||
+ | Dec 2 17:26:50 vml000067 amavis[15809]: | ||
+ | Dec 2 17:26:50 vml000067 amavis[15809]: | ||
+ | Dec 2 17:26:50 vml000067 amavis[15809]: | ||
+ | Dec 2 17:26:50 vml000067 amavis[15809]: | ||
+ | </ | ||
+ | |||
+ | === SMTP-Server (Teil 2 von 2) === | ||
+ | Im **Maillog** unseres Borderfilters sehen wir nun also als nächstes den Eingang dieser Notification-eMail an den definierten Empfänger. | ||
+ | # less / | ||
+ | |||
+ | < | ||
+ | Dec 2 17:26:50 vml000087 postfix/ | ||
+ | </ | ||
+ | |||
+ | === MUA (Empfänger der Notification Mail) === | ||
+ | Wie schon angeschnitten erhält der verantwortliche Admin des Servers mit der Addresse **virusalert@nausch.org** eine Nachricht mit dem Detail des Versuches eine SPAM-Mail zu verschicken. | ||
+ | |||
+ | < | ||
+ | Delivered-To: | ||
+ | Received: from mx01.nausch.org ([10.0.0.87]) | ||
+ | by imap.nausch.org (Dovecot) with LMTP id HpapJErofVSPSgAArK2B9Q | ||
+ | for < | ||
+ | Received: from viruswall.dmz.nausch.org (vml000067.dmz.nausch.org [10.0.0.67]) | ||
+ | by mx01.nausch.org (Postfix) with ESMTP id 8250AC00089 | ||
+ | for < | ||
+ | DKIM-Signature: | ||
+ | content-transfer-encoding: | ||
+ | : | ||
+ | : | ||
+ | Bpj4qmzmNJoEPHHj22aTtLu2THUwcwoCsls=; | ||
+ | szuBz2F49Mdzyx48m2VfA0mKMi1EmnT1D5QOs2tYdElBc35le8T3kLD9TfVheonI | ||
+ | XtwGnJKfUycJEQ/ | ||
+ | lEunOg/ | ||
+ | AWu8oties5VOEIM601gt2T7tBbKEFj9KMpZHiapeNGpu6UoddkvfY779Vs0DfLvj | ||
+ | WX/ | ||
+ | 1w5KfXJEmqeb1efZ9MZTfp4SrS90wcXbJRicSt+vzYmsOcB9rXj+hO5JJf7Uj/ | ||
+ | dP4ngXl+BvI2drOf33hjKrFynTVdpEMF8gLH/ | ||
+ | BXhF0en2YdcoIaof2ZMOxD17VLZtkouUaqDT6UxLyr60KHMS7Fx9+NeSEUjI7zTH | ||
+ | DobySVImu63dS8j3XTzFu8pFKthAod6dD2FgW2NuM00BTECEaZeDxp7CY7nuXmcg | ||
+ | pxpsoPuJYV12Y+1os+DW53ZuaLMEtsoJLQC7VF91oXkgJTk0PIaeB1FPQjOGudvd | ||
+ | QfnZYUFETGcNRt1SAd0= | ||
+ | MIME-Version: | ||
+ | From: Postmaster < | ||
+ | Date: Tue, 2 Dec 2014 17:26:50 +0100 (CET) | ||
+ | Subject: VIRUS (Eicar-Test-Signature) in mail TO YOU from < | ||
+ | To: django@nausch.org | ||
+ | Message-ID: < | ||
+ | Content-Type: | ||
+ | Content-Disposition: | ||
+ | Content-Transfer-Encoding: | ||
+ | |||
+ | VIRUS ALERT | ||
+ | |||
+ | Our content checker found | ||
+ | virus: Eicar-Test-Signature | ||
+ | |||
+ | in an email to you from probably faked sender: | ||
+ | |||
+ | claiming to be: < | ||
+ | |||
+ | Content type: Virus | ||
+ | Our internal reference code for your message is 15809-01/ | ||
+ | |||
+ | First upstream SMTP client IP address: [10.0.0.87] vml000087.dmz.nausch.org | ||
+ | Received from: 10.0.0.87 | ||
+ | |||
+ | Return-Path: | ||
+ | From: n3rd@sec-mail.guru | ||
+ | Message-ID: < | ||
+ | X-Mailer: swaks v20130209.0 jetmore.org/ | ||
+ | Subject: 5. Test-Testnachricht mit EICAR-Testdatei im Anhang auf Port 25 | ||
+ | Not quarantined. | ||
+ | |||
+ | Please contact your system administrator for details. | ||
+ | </ | ||
+ | |||
+ | |||
+ | ==== Eicar-Testmail auf Port 587 (MUA zu MSA Verkehr) ==== | ||
+ | Zum Abschluss unserer Testreihe überprüfen wir, ob wir die EICAR-Testsignatur als authentifizierten User von einem **MUA**((**M**ail **U**ser **A**gent)) beim **MSA**((**M**ail **S**ubmission **A**gent)) erfolgreich einliefern können. | ||
+ | |||
+ | === SMTP-Client (swaks) === | ||
+ | Die bereits heruntergeladene EICAR-Testmail versuchen wir nun mit mit Hilfe von [[http:// | ||
+ | # swaks -t django@nausch.org --attach - --server 10.0.0.87 --suppress-data < | ||
+ | |||
+ | < | ||
+ | === Connected to 10.0.0.87. | ||
+ | <- 220 mx01.nausch.org ESMTP Postfix | ||
+ | -> EHLO vml000087.dmz.nausch.org | ||
+ | <- 250-mx01.nausch.org | ||
+ | <- 250-PIPELINING | ||
+ | <- 250-SIZE 52428800 | ||
+ | <- 250-ETRN | ||
+ | <- 250-STARTTLS | ||
+ | <- 250-ENHANCEDSTATUSCODES | ||
+ | <- 250-8BITMIME | ||
+ | <- 250 DSN | ||
+ | -> STARTTLS | ||
+ | <- 220 2.0.0 Ready to start TLS | ||
+ | === TLS started with cipher TLSv1.2: | ||
+ | === TLS no local certificate set | ||
+ | === TLS peer DN="/ | ||
+ | ~> EHLO vml000087.dmz.nausch.org | ||
+ | <~ 250-mx01.nausch.org | ||
+ | <~ 250-PIPELINING | ||
+ | <~ 250-SIZE 52428800 | ||
+ | <~ 250-ETRN | ||
+ | <~ 250-AUTH PLAIN LOGIN DIGEST-MD5 CRAM-MD5 NTLM | ||
+ | <~ 250-AUTH=PLAIN LOGIN DIGEST-MD5 CRAM-MD5 NTLM | ||
+ | <~ 250-ENHANCEDSTATUSCODES | ||
+ | <~ 250-8BITMIME | ||
+ | <~ 250 DSN | ||
+ | ~> AUTH NTLM | ||
+ | <~ 334 | ||
+ | ~> TlRUMTVNTUAABAAAABU6IAAAAAAAAAAAAAAAAAAAAAAAA= | ||
+ | <~ 334 UTlRMTVNTUAADUAAAAGAAYAEAAAAAYABUgAWAAAADAAMABwAAAAJAAkAKAAAAAkACQAxAAAAAAAAACoAAAABUQKCABKUTbcHiUVToxqvguZXpp6jgnmGYJ9jDa0UoXqDbxiyz+V1xFp8hFH2sd3yaZl/ | ||
+ | <~ 235 2.7.0 Authentication successful | ||
+ | ~> MAIL FROM:< | ||
+ | <~ 250 2.1.0 Ok | ||
+ | ~> RCPT TO:< | ||
+ | <~ 250 2.1.5 Ok | ||
+ | ~> DATA | ||
+ | <~ 354 End data with < | ||
+ | ~> 55 lines sent | ||
+ | <~ 250 2.0.0 Ok: queued as 82EB5C00088 | ||
+ | ~> QUIT | ||
+ | <~ 221 2.0.0 Bye | ||
=== Connection closed with remote host. | === Connection closed with remote host. | ||
</ | </ | ||
- | === MTA-Host === | ||
+ | Wie auch schon bei vorhergehenden GTUBE-Test wird dem authentifizierten User die Nachricht abgenommen und mit einem **250**er bestätigt. Auch hier ist das Verhalten legitim und erklärbar, haben wir doch bei der Konfiguration explizit angegeben, dass wir Nachrichten von authentifizierten Nutzern sofort anzunehmen und erst im zweiten Schritt scannen wollen. Genau das machte unser AMaViS-Server auch. | ||
+ | |||
+ | Den genauen Ablauf dazu, sehen wir uns nun im Detail an. | ||
+ | |||
+ | === SMTP-Server (Teil 1 von 2) === | ||
+ | Im **Maillog** unseres Borderfilters sehen wir nun zu unserem gerade durchgeführten Versuch mehrere zusammenhängende Logeinträge. | ||
# less / | # less / | ||
- | < | + | |
- | Nov 18 15:40:51 vml000087 postfix/ | + | Zunächst sehen wir den TLS-Verbindungsaufbau, |
- | Nov 18 15:40:51 vml000087 postfix/ | + | < |
- | Nov 18 15:40:51 vml000087 postfix/smtpd[8714]: | + | Dec 2 18:14:17 vml000087 postfix/submission/smtpd[27873]: Anonymous TLS connection established from vml000087.dmz.nausch.org[10.0.0.87]: TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits) |
- | Nov 18 15:40:51 vml000087 postfix/ | + | Dec 2 18:14:17 vml000087 postfix/submission/smtpd[27873]: 82EB5C00088: client=vml000087.dmz.nausch.org[10.0.0.87], sasl_method=NTLM, |
- | Nov 18 15:40:51 vml000087 postfix/ | + | Dec 2 18:14:17 vml000087 postfix/ |
- | Nov 18 15:40:51 vml000087 postfix/ | + | Dec 2 18:14:17 vml000087 postfix/ |
- | Nov 18 15:40:51 vml000087 postfix/cleanup[8720]: | + | Dec 2 18:14:17 vml000087 postfix/submission/smtpd[27873]: disconnect from vml000087.dmz.nausch.org[10.0.0.87] |
- | Nov 18 15:40:51 vml000087 postfix/smtpd[8716]: disconnect from vml000060.dmz.nausch.org[10.0.0.60] | + | |
- | Nov 18 15:40:51 vml000087 postfix/ | + | |
- | Nov 18 15:40:51 vml000087 postfix/ | + | |
</ | </ | ||
=== ASAV-Host === | === ASAV-Host === | ||
+ | Die Überprüfung der Nachricht durch unseren Contentfilter wird auf dem AMaViS-Host im Maillog dokumentiert. | ||
# less / | # less / | ||
- | < | + | |
- | Nov 18 15:40:51 vml000067 amavis[10690]: process_request: | + | < |
- | Nov 18 15:40:51 vml000067 amavis[10690]: policy protocol: request=AM.PDP | + | Dec 2 18:14:17 vml000067 amavis[15810]: process_request: |
- | Nov 18 15:40:51 vml000067 amavis[10690]: policy protocol: queue_id=36DB7C00088 | + | Dec 2 18:14:17 vml000067 amavis[15810]: (15810-01) ESMTP:[10.0.0.67]:10024 / |
- | Nov 18 15:40:51 vml000067 | + | org> |
- | Nov 18 15:40:51 vml000067 amavis[10690]: | + | ; Tue, 2 Dec 2014 18:14:17 +0100 (CET) |
- | Nov 18 15:40:51 vml000067 amavis[10690]: | + | Dec 2 18: |
- | Nov 18 15:40:51 vml000067 amavis[10690]: | + | Dec 2 18:14:17 vml000067 amavis[15810]: (15810-01) ip_trace: 10.0.0.87 |
- | Nov 18 15:40:51 vml000067 amavis[10690]: | + | Dec 2 18:14:17 vml000067 amavis[15810]: (15810-01) client IP address unknown, fetched from Received: 10.0.0.87 |
- | Nov 18 15:40:51 vml000067 amavis[10690]: policy protocol: delivery_care_of=client | + | Dec 2 18:14:17 vml000067 amavis[15810]: (15810-01) Checking: |
- | Nov 18 15:40:51 vml000067 amavis[10690]: | + | Dec 2 18:14:17 vml000067 amavis[15810]: (15810-01) 2822.From: <n3rd@sec-mail.guru> |
- | Nov 18 15:40:51 vml000067 amavis[10690]: policy protocol: client_name=vml000060.dmz.nausch.org | + | Dec 2 18:14:17 vml000067 amavis[15810]: (15810-01) p003 1 Content-Type: |
- | Nov 18 15:40:51 vml000067 amavis[10690]: | + | Dec 2 18:14:17 vml000067 amavis[15810]: (15810-01) p001 1/1 Content-Type: |
- | Nov 18 15:40:51 vml000067 amavis[10690]: policy protocol: policy_bank=mx01.nausch.org | + | Dec 2 18:14:17 vml000067 amavis[15810]: (15810-01) p002 1/2 Content-Type: |
- | Nov 18 15:40:51 vml000067 amavis[10690]: (10690-01) Request: AM.PDP | + | Dec 2 18:14:17 vml000067 amavis[15810]: (15810-01) inspect_dsn: |
- | Nov 18 15:40:51 vml000067 amavis[10690]: (10690-01) loaded policy bank " | + | Dec 2 18:14:17 vml000067 amavis[15810]: (15810-01) Checking for banned types and filenames |
- | Nov 18 15:40:51 vml000067 amavis[10690]: (10690-01) body hash: ab01c2a13a3b0f4692629a20a0c9b55a | + | Dec 2 18:14:17 vml000067 amavis[15810]: (15810-01) skipping banned check: all recipients bypass banned checks |
- | Nov 18 15:40:51 vml000067 amavis[10690]: (10690-01) ip_trace: 10.0.0.60 | + | Dec 2 18:14:17 vml000067 amavis[15810]: (15810-01) presenting full original message to scanners as / |
- | Nov 18 15:40:51 vml000067 amavis[10690]: (10690-01) Checking: | + | Dec 2 18:14:17 vml000067 amavis[15810]: (15810-01) run_av Using (ClamAV-clamd): |
- | Nov 18 15:40:51 vml000067 amavis[10690]: (10690-01) 2822.From: <django@vml000060.dmz.nausch.org> | + | Dec 2 18:14:17 vml000067 amavis[15810]: (15810-01) ClamAV-clamd: |
- | Nov 18 15:40:51 vml000067 amavis[10690]: (10690-01) p003 1 Content-Type: | + | Dec 2 18:14:17 vml000067 amavis[15810]: (15810-01) new socket by IO:: |
- | Nov 18 15:40:51 vml000067 amavis[10690]: (10690-01) p001 1/1 Content-Type: | + | Dec 2 18:14:17 vml000067 amavis[15810]: (15810-01) ClamAV-clamd: |
- | Nov 18 15:40:51 vml000067 amavis[10690]: (10690-01) p002 1/2 Content-Type: | + | amavisd/ |
- | Nov 18 15:40:51 vml000067 amavis[10690]: (10690-01) inspect_dsn: | + | Dec 2 18:14:17 vml000067 clamd[1278]: / |
- | Nov 18 15:40:51 vml000067 amavis[10690]: (10690-01) Checking for banned types and filenames | + | Dec 2 18:14:17 vml000067 clamd[1278]: / |
- | Nov 18 15:40:51 vml000067 amavis[10690]: (10690-01) skipping banned check: all recipients bypass banned checks | + | Dec 2 18:14:17 vml000067 amavis[15810]: (15810-01) rw_loop read: got eof |
- | Nov 18 15:40:51 vml000067 amavis[10690]: (10690-01) presenting full original message to scanners as / | + | Dec 2 18:14:17 vml000067 amavis[15810]: (15810-01) run_av (ClamAV-clamd): |
- | Nov 18 15:40:51 vml000067 amavis[10690]: (10690-01) run_av Using (ClamAV-clamd): | + | ar-Test-Signature |
- | Nov 18 15:40:51 vml000067 amavis[10690]: (10690-01) ClamAV-clamd: | + | Dec 2 18:14:17 vml000067 amavis[15810]: (15810-01) virus_scan: (Eicar-Test-Signature), |
- | Nov 18 15:40:51 vml000067 amavis[10690]: (10690-01) new socket by IO:: | + | Dec 2 18:14:17 vml000067 amavis[15810]: (15810-01) Virus Eicar-Test-Signature matches (constant: |
- | Nov 18 15:40:51 vml000067 amavis[10690]: (10690-01) ClamAV-clamd: | + | |
- | Nov 18 15:40:51 vml000067 clamd[9755]: SelfCheck: Database status OK. | + | |
- | Nov 18 15:40:51 vml000067 clamd[9755]: / | + | |
- | Nov 18 15:40:51 vml000067 clamd[9755]: / | + | |
- | Nov 18 15:40:51 vml000067 amavis[10690]: (10690-01) rw_loop read: got eof | + | |
- | Nov 18 15:40:51 vml000067 amavis[10690]: (10690-01) run_av (ClamAV-clamd): | + | |
- | Nov 18 15:40:51 vml000067 amavis[10690]: (10690-01) virus_scan: (Eicar-Test-Signature), | + | |
- | Nov 18 15:40:51 vml000067 amavis[10690]: (10690-01) Virus Eicar-Test-Signature matches (constant: | + | |
- | Nov 18 15:40:51 vml000067 amavis[10690]: | + | |
- | Nov 18 15:40:51 vml000067 amavis[10690]: | + | |
- | Nov 18 15:40:51 vml000067 amavis[10690]: | + | |
- | Nov 18 15:40:51 vml000067 amavis[10690]: | + | |
- | Nov 18 15:40:51 vml000067 amavis[10690]: | + | |
- | Nov 18 15:40:51 vml000067 amavis[10690]: | + | |
- | Nov 18 15:40:51 vml000067 amavis[10690]: | + | |
- | Nov 18 15:40:51 vml000067 amavis[10690]: | + | |
- | Nov 18 15:40:51 vml000067 amavis[10690]: | + | |
- | Nov 18 15:40:51 vml000067 amavis[10690]: | + | |
- | Nov 18 15:40:51 vml000067 amavis[10690]: | + | |
- | Nov 18 15:40:51 vml000067 amavis[10690]: | + | |
- | Nov 18 15:40:51 vml000067 amavis[10690]: | + | |
- | Nov 18 15:40:51 vml000067 amavis[10690]: | + | |
- | Nov 18 15:40:51 vml000067 amavis[10690]: | + | |
- | Nov 18 15:40:51 vml000067 amavis[10690]: | + | |
- | Nov 18 15:40:51 vml000067 amavis[10690]: | + | |
- | Nov 18 15:40:51 vml000067 amavis[10690]: | + | |
- | Nov 18 15:40:51 vml000067 amavis[10690]: | + | |
- | Nov 18 15:40:51 vml000067 amavis[10690]: | + | |
- | Nov 18 15:40:51 vml000067 amavis[10690]: | + | |
- | Nov 18 15:40:51 vml000067 amavis[10690]: | + | |
- | Nov 18 15:40:51 vml000067 amavis[10690]: | + | |
- | Nov 18 15:40:51 vml000067 amavis[10690]: | + | |
- | Nov 18 15:40:51 vml000067 amavis[10690]: | + | |
- | Nov 18 15:40:51 vml000067 amavis[10690]: | + | |
- | Nov 18 15:40:51 vml000067 amavis[10690]: | + | |
</ | </ | ||
+ | Der Virenscanner hat also die Eicar-Test-Signatur in der Nachricht entdeckt, die Nachricht wird also nicht zugestellt! | ||
- | === Empfänger | + | <WRAP center round important> |
+ | Gemäß unserer Konfiguration erhält der der Empfänger **virusalert@nausch.org** eine Nachricht von **postmaster@nausch.org** mit dem Details zu der Virenmail-Mail. Der Postmaster kann so reagieren und mit dem authentifizierten Mailbox-Nutzer Kontakt aufnehmen und diesen ggf. darauf hinweisen, dass er versucht hatte einen Virus zu verschicken. | ||
+ | </ | ||
+ | |||
+ | Im Maillog des AMaViS-Servers sehen wir nun, dass der Daemon die entsprechende Nachricht an den definierten Bearbeiter verschicken wird. | ||
+ | # less / | ||
+ | |||
+ | < | ||
+ | Dec 2 18:14:17 vml000067 amavis[15810]: | ||
+ | Dec 2 18:14:17 vml000067 amavis[15810]: | ||
+ | Dec 2 18:14:17 vml000067 amavis[15810]: | ||
+ | ha256, c=> | ||
+ | Dec 2 18:14:17 vml000067 amavis[15810]: | ||
+ | Dec 2 18:14:17 vml000067 amavis[15810]: | ||
+ | Dec 2 18:14:17 vml000067 amavis[15810]: | ||
+ | Dec 2 18:14:17 vml000067 amavis[15810]: | ||
+ | Dec 2 18:14:17 vml000067 amavis[15810]: | ||
+ | Dec 2 18:14:17 vml000067 amavis[15810]: | ||
+ | Dec 2 18:14:17 vml000067 amavis[15810]: | ||
+ | Dec 2 18:14:17 vml000067 amavis[15810]: | ||
+ | Dec 2 18:14:17 vml000067 amavis[15810]: | ||
+ | Dec 2 18:14:17 vml000067 amavis[15810]: | ||
+ | Dec 2 18:14:17 vml000067 amavis[15810]: | ||
+ | Dec 2 18:14:17 vml000067 amavis[15810]: | ||
+ | Dec 2 18:14:17 vml000067 amavis[15810]: | ||
+ | Dec 2 18:14:17 vml000067 amavis[15810]: | ||
+ | Dec 2 18:14:17 vml000067 amavis[15810]: | ||
+ | Dec 2 18:14:18 vml000067 amavis[15810]: | ||
+ | Dec 2 18:14:18 vml000067 amavis[15810]: | ||
+ | Dec 2 18:14:18 vml000067 amavis[15810]: | ||
+ | Dec 2 18:14:18 vml000067 amavis[15810]: | ||
+ | Dec 2 18:14:18 vml000067 amavis[15810]: | ||
+ | Dec 2 18:14:18 vml000067 amavis[15810]: | ||
+ | Dec 2 18:14:18 vml000067 amavis[15810]: | ||
+ | Dec 2 18:14:18 vml000067 amavis[15810]: | ||
+ | Dec 2 18:14:18 vml000067 amavis[15810]: | ||
+ | Dec 2 18:14:18 vml000067 amavis[15810]: | ||
+ | Dec 2 18:14:18 vml000067 amavis[15810]: | ||
+ | Dec 2 18:14:18 vml000067 amavis[15810]: | ||
+ | Dec 2 18:14:18 vml000067 amavis[15810]: | ||
+ | Dec 2 18:14:18 vml000067 amavis[15810]: | ||
+ | Dec 2 18:14:18 vml000067 amavis[15810]: | ||
+ | Dec 2 18:14:18 vml000067 amavis[15810]: | ||
+ | Dec 2 18:14:18 vml000067 amavis[15810]: | ||
+ | Dec 2 18:14:18 vml000067 amavis[15810]: | ||
+ | Dec 2 18:14:18 vml000067 amavis[15810]: | ||
+ | Dec 2 18:14:18 vml000067 amavis[15810]: | ||
+ | Dec 2 18:14:18 vml000067 amavis[15810]: | ||
+ | Dec 2 18:14:18 vml000067 amavis[15810]: | ||
+ | Dec 2 18:14:18 vml000067 amavis[15810]: | ||
+ | </ | ||
+ | |||
+ | === SMTP-Server (Teil 2 von 2) === | ||
+ | Im **Maillog** unseres Borderfilters sehen wir nun also als nächstes den Eingang dieser Notification-eMail an den definierten Empfänger. | ||
+ | # less / | ||
+ | |||
+ | < | ||
+ | Dec 2 18:14:17 vml000087 postfix/ | ||
+ | Dec 2 18:14:17 vml000087 postfix/ | ||
+ | Dec 2 18:14:17 vml000087 postfix/ | ||
+ | Dec 2 18:14:18 vml000087 postfix/ | ||
+ | Dec 2 18:14:18 vml000087 postfix/ | ||
+ | Dec 2 18:14:18 vml000087 postfix/ | ||
+ | Dec 2 18:14:18 vml000087 postfix/ | ||
+ | Dec 2 18:14:18 vml000087 postfix/ | ||
+ | Dec 2 18:14:18 vml000087 postfix/ | ||
+ | Dec 2 18:14:18 vml000087 postfix/ | ||
+ | Dec 2 18:14:18 vml000087 postfix/ | ||
+ | Dec 2 18:14:18 vml000087 postfix/ | ||
+ | </ | ||
+ | |||
+ | === MUA (Empfänger der Notification Mail) === | ||
+ | Wie schon angeschnitten erhält der verantwortliche Admin des Servers mit der Addresse **virusalert@nausch.org** eine Nachricht mit dem Detail des Versuches eine SPAM-Mail zu verschicken. | ||
< | < | ||
Delivered-To: | Delivered-To: | ||
Received: from mx01.nausch.org ([10.0.0.87]) | Received: from mx01.nausch.org ([10.0.0.87]) | ||
- | by imap.nausch.org (Dovecot) with LMTP id BR4/H3Naa1R6TwAArK2B9Q | + | by imap.nausch.org (Dovecot) with LMTP id /kkIHTLzfVSXTwAArK2B9Q |
- | for < | + | for < |
- | Received: from localhost | + | Received: from viruswall.dmz.nausch.org |
- | by mx01.nausch.org (Postfix) with ESMTP id 617C1C00089 | + | by mx01.nausch.org (Postfix) with ESMTP id 11605C00089 |
- | for < | + | for < |
+ | DKIM-Signature: | ||
+ | content-transfer-encoding: | ||
+ | : | ||
+ | : | ||
+ | oPn36vNDqRoivIeBgUX0G0lRWQSp8HGIA6A=; | ||
+ | XX8lxTCdzecXPxva+XoERso6WO4fN2r+ATj9R1DDrW4F/ | ||
+ | 3XBPe6mYWqbbz/ | ||
+ | glfWWvj9qa+WU8KJSgICO8VLjNyxj/ | ||
+ | nGQS6rzuBqkBIbrDGdXlEU3JjRQStAp+sto+xnGj0tufa/ | ||
+ | gpwjoHs2sTBsRmW17mkyfmR+iA3DQr8qZKvtKhpGxWD8L3lARLNuwod6XMCldPMY | ||
+ | 6jKzohNbBasgl9eApl2BckMVeB0I3uHHpU/ | ||
+ | 8dZ86FBWL6z2pS2SYfBP3+gE9al11r1iGQI233wWZAsGMbOYC9XjJl/ | ||
+ | YbUYSQfEqR0HN+/ | ||
+ | OuBuaw5jLUJBKq7OoHeNjimEJglPIX53gxSIsW89ZBUhL64BnYYurCPzNoJ8GhLF | ||
+ | 0ILaxukNAzqQJY3aoP5zkKOAWLDet9NpwdHOYnsyHPcMv0+dmistSfktNlWUNy3M | ||
+ | v+PuSR8FGh6/ | ||
MIME-Version: | MIME-Version: | ||
From: Postmaster < | From: Postmaster < | ||
- | Date: Tue, 18 Nov 2014 15:40:51 +0100 (CET) | + | Date: Tue, 2 Dec 2014 18:14:17 +0100 (CET) |
- | Subject: VIRUS (Eicar-Test-Signature) in mail TO YOU from | + | Subject: VIRUS (Eicar-Test-Signature) in mail TO YOU from <n3rd@sec-mail.guru> |
- | <django@vml000060.dmz.nausch.org> | + | |
To: django@nausch.org | To: django@nausch.org | ||
- | Message-ID: <VRQn42nSkefjqi@viruswall.dmz.nausch.org> | + | Message-ID: <VRuj-7SfJU0v_M@viruswall.dmz.nausch.org> |
Content-Type: | Content-Type: | ||
Content-Disposition: | Content-Disposition: | ||
Zeile 3808: | Zeile 4470: | ||
in an email to you from probably faked sender: | in an email to you from probably faked sender: | ||
| | ||
- | claiming to be: <django@vml000060.dmz.nausch.org> | + | claiming to be: <n3rd@sec-mail.guru> |
Content type: Virus | Content type: Virus | ||
- | Our internal reference code for your message is 10690-01/Qn42nSkefjqi | + | Our internal reference code for your message is 15810-01/uj-7SfJU0v_M |
- | First upstream SMTP client IP address: [10.0.0.60] vml000060.dmz.nausch.org | + | First upstream SMTP client IP address: [10.0.0.87] |
- | Received from: 10.0.0.60 | + | Received from: 10.0.0.87 |
- | Return-Path: | + | Return-Path: |
- | From: django@vml000060.dmz.nausch.org | + | From: n3rd@sec-mail.guru |
+ | Message-ID: < | ||
X-Mailer: swaks v20130209.0 jetmore.org/ | X-Mailer: swaks v20130209.0 jetmore.org/ | ||
- | Subject: | + | Subject: |
+ | Port 25 | ||
Not quarantined. | Not quarantined. | ||
Please contact your system administrator for details. | Please contact your system administrator for details. | ||
</ | </ | ||
+ | |||
+ | ====== Links ====== | ||
+ | * **⇐ [[centos: | ||
+ | * **⇒ [[centos: | ||
+ | * **[[centos: | ||
+ | * **[[wiki: | ||
+ | * **[[http:// | ||
+ | |||
+ |