Hallo zusammen,<br><br>Ich habe das Problem, dass E-Mails welche an eine interne E-Mail Adresse geschickt und mithilfe einer Weiterleitung automatisch nach extern weitergeleitet werden im amavis auf spam gecheckt werden.<br>
<br>Wenn jedoch ein interner Absender einer E-Mail nach extern verschickt (ohne das diese E-Mail weitergeleitet wurde), wird die E-Mail nicht auf Spam überprüft.<br><br>Ich habe folgende Parameter in meiner amavis.conf konfiguriert um intern verschickte E-Mails nicht auf Spam zu überprüfen:<br>
<br>=======================================<br><br>#No spam check for internal domains:<br><br>@bypass_spam_checks_maps = [<br> read_hash("/etc/amavis/01-bypass-domain-checks")<br> ];<br><br>========================================<br>
<br>Der Inhalt der Datei "01-bypass-domain-checks":<br><br>=========================================<br><br><a href="http://domain1.com">domain1.com</a><br><a href="http://domain2.com">domain2.com</a><br><a href="http://domain3.com">domain3.com</a><br>
<a href="http://domain4.com">domain4.com</a><br>.<br><br>=========================================<br><br>Folgender Eintrag wurde geloggt, wie eine E-Mail automatisch nach extern per Weiterleitung verschickt wurde:<br><br>
<br>=========================================<br><br>Apr 9 09:57:01 mail1 /usr/sbin/amavisd-new[28229]: (28229-01) ESMTP:[127.0.0.1]:10024 /var/lib/amavis/amavis-20100409T095701-28229: <> -> <<a href="mailto:external-recipient@externaldomain.com">external-recipient@externaldomain.com</a>> SIZE=2953145 BODY=8BITMIME Received: from mail1 ([127.0.0.1]) by localhost (mail1 [127.0.0.1]) (amavisd-new, port 10024) with ESMTP for <<a href="mailto:external-recipient@externaldomain.com">external-recipient@externaldomain.com</a>>; Fri, 9 Apr 2010 09:57:01 +0200 (CEST)<br>
Apr 9 09:57:02 mail1 /usr/sbin/amavisd-new[28229]: (28229-01) Checking: eGLnMl1QL7Gs [192.168.1.2] <> -> <<a href="mailto:external-recipient@externaldomain.com">external-recipient@externaldomain.com</a>><br>
Apr 9 09:57:02 mail1 /usr/sbin/amavisd-new[28229]: (28229-01) p009 1 Content-Type: multipart/mixed<br>Apr 9 09:57:02 mail1 /usr/sbin/amavisd-new[28229]: (28229-01) p010 1/1 Content-Type: multipart/alternative<br>Apr 9 09:57:02 mail1 /usr/sbin/amavisd-new[28229]: (28229-01) p001 1/1/1 Content-Type: text/plain, size: 590 B, name:<br>
Apr 9 09:57:02 mail1 /usr/sbin/amavisd-new[28229]: (28229-01) p002 1/1/2 Content-Type: text/html, size: 2397 B, name:<br>Apr 9 09:57:02 mail1 /usr/sbin/amavisd-new[28229]: (28229-01) p003 1/2 Content-Type: application/pdf, size: 734130 B, name: content1.pdf<br>
Apr 9 09:57:02 mail1 /usr/sbin/amavisd-new[28229]: (28229-01) p004 1/3 Content-Type: application/pdf, size: 328016 B, name: content2.pdf<br>Apr 9 09:57:02 mail1 /usr/sbin/amavisd-new[28229]: (28229-01) p005 1/4 Content-Type: application/pdf, size: 34108 B, name: content3.pdf<br>
Apr 9 09:57:02 mail1 /usr/sbin/amavisd-new[28229]: (28229-01) p006 1/5 Content-Type: application/pdf, size: 35796 B, name: content4.pdf<br>Apr 9 09:57:02 mail1 /usr/sbin/amavisd-new[28229]: (28229-01) p007 1/6 Content-Type: application/pdf, size: 546551 B, name: content5.pdf<br>
Apr 9 09:57:02 mail1 /usr/sbin/amavisd-new[28229]: (28229-01) p008 1/7 Content-Type: application/pdf, size: 473151 B, name: content6.pdf<br>Apr 9 09:57:02 mail1 /usr/sbin/amavisd-new[28229]: (28229-01) truncating a message passed to SA at 207383 bytes, orig 2953145<br>
Apr 9 09:57:03 mail1 /usr/sbin/amavisd-new[28229]: (28229-01) bounce unverifiable, originating, <> -> <<a href="mailto:external-recipient@externaldomain.com">external-recipient@externaldomain.com</a>><br>Apr 9 09:57:04 mail1 /usr/sbin/amavisd-new[28229]: (28229-01) SEND via SMTP: <> -> <<a href="mailto:quarantine@domain1.com">quarantine@domain1.com</a>>,ENVID=AM.eGLnMl1QL7Gs.20100409T075703Z@mail1 BODY=7BIT 250 2.0.0 Ok, id=28229-01, from MTA([127.0.0.1]:10025): 250 2.0.0 Ok: queued as E4C8313E2E<br>
Apr 9 09:57:04 mail1 /usr/sbin/amavisd-new[28229]: (28229-01) SPAM, <> -> <<a href="mailto:external-recipient@externaldomain.com">external-recipient@externaldomain.com</a>>, Yes, score=6.8 tag=2.5 tag2=2.5 kill=6.3 tests=[ANY_BOUNCE_MESSAGE=5, AWL=-3.411, BAYES_00=-2.599, BOUNCE_MESSAGE=5, HTML_EXTRA_CLOSE=2.809, HTML_MESSAGE=0.001] autolearn=no, quarantine eGLnMl1QL7Gs (<a href="mailto:quarantine@domain1.com">quarantine@domain1.com</a>)<br>
Apr 9 09:57:04 mail1 /usr/sbin/amavisd-new[28229]: (28229-01) Not-Delivered, (?) -> <<a href="mailto:external-recipient@externaldomain.com">external-recipient@externaldomain.com</a>>, quarantine eGLnMl1QL7Gs, Message-ID: <<a href="mailto:vmime.4bbedda3.279e.c1afe4fc2e25c64@externaldomain.com">vmime.4bbedda3.279e.c1afe4fc2e25c64@externaldomain.com</a>>, Hits: 6.8<br>
Apr 9 09:57:04 mail1 /usr/sbin/amavisd-new[28229]: (28229-01) TIMING [total 2697 ms] - SMTP greeting: 10 (0%)0, SMTP EHLO: 2 (0%)0, SMTP pre-MAIL: 1 (0%)0, mkdir tempdir: 1 (0%)1, create email.txt: 0 (0%)1, SMTP pre-DATA-flush: 5 (0%)1, SMTP DATA: 246 (9%)10, check_init: 2 (0%)10, digest_hdr: 2 (0%)10, digest_body: 24 (1%)11, gen_mail_id: 2 (0%)11, mkdir parts: 2 (0%)11, mime_decode: 198 (7%)18, get-file-type8: 41 (2%)20, parts_decode: 1 (0%)20, check_header: 2 (0%)20, AV-scan-1: 98 (4%)24, AV-scan-2: 266 (10%)33, spam-wb-list: 3 (0%)34, SA parse: 39 (1%)35, SA check: 1004 (37%)72, update_cache: 9 (0%)73, decide_mail_destiny: 3 (0%)73, notif-quar: 3 (0%)73, fwd-connect: 6 (0%)73, fwd-mail-pip: 2 (0%)73, fwd-rcpt-pip: 0 (0%)73, fwd-data-chkpnt: 0 (0%)73, write-header: 1 (0%)73, fwd-data-contents: 91 (3%)76, fwd-end-chkpnt: 576 (21%)98, prepare-dsn: 3 (0%)98, main_log_entry: 13 (0%)98, update_snmp: 3 (0%)99, SMTP pre-response: 0 (0%)99, SMTP response: 1 (0%)99, unlink-8-files: 37 (1%)100, rundown: 1 (0%)100<br>
<br>========================================<br><br>Wo könnte hier das Problem liegen?<br><br>Danke für eure Hilfe.<br><br>Mit freundlichen Grüßen<br><br><br><br>Heindl Florian<br>