private:mail-server:gateway
Rozdíly
Zde můžete vidět rozdíly mezi vybranou verzí a aktuální verzí dané stránky.
| Obě strany předchozí revizePředchozí verzeNásledující verze | Předchozí verze | ||
| private:mail-server:gateway [2019/02/21 20:07] – [Postfix konfigurace] snemec | private:mail-server:gateway [2020/02/11 13:55] (aktuální) – [Fail2ban - Postfix SASL attack] snemec | ||
|---|---|---|---|
| Řádek 1: | Řádek 1: | ||
| + | ====== Mail gateway ====== | ||
| + | ===== Postfix konfigurace ===== | ||
| + | |||
| + | Postfix, Amavis, Clamav, SpamAssassin | ||
| + | |||
| + | https:// | ||
| + | |||
| + | http:// | ||
| + | |||
| + | https:// | ||
| + | |||
| + | https:// | ||
| + | |||
| + | Postfix: sender-dependent SASL authentication.md\\ | ||
| + | https:// | ||
| + | |||
| + | Postfix: selecting relay host based on From: mail header rather than envelope sender | ||
| + | https:// | ||
| + | |||
| + | |||
| + | Policyd - limit pro odesílané zprávy | ||
| + | |||
| + | http:// | ||
| + | ==== SPF DKIM DMARC ==== | ||
| + | |||
| + | |||
| + | |||
| + | https:// | ||
| + | |||
| + | https:// | ||
| + | |||
| + | https:// | ||
| + | |||
| + | https:// | ||
| + | |||
| + | https:// | ||
| + | |||
| + | https:// | ||
| + | |||
| + | https:// | ||
| + | |||
| + | https:// | ||
| + | |||
| + | https:// | ||
| + | |||
| + | https:// | ||
| + | |||
| + | https:// | ||
| + | ===== Spam ===== | ||
| + | |||
| + | https:// | ||
| + | |||
| + | https:// | ||
| + | |||
| + | ==== SpamAssassin ==== | ||
| + | |||
| + | |||
| + | https:// | ||
| + | |||
| + | Obrázkové emaily - nastavil jsem v ''/ | ||
| + | Originálni konfigurační soubory jsou uloženy: ''/ | ||
| + | |||
| + | |||
| + | Příklad hlaviček SPAM emailů - dva jsou obrázkové\\ | ||
| + | < | ||
| + | < | ||
| + | Return-Path: | ||
| + | Delivered-To: | ||
| + | Received: from localhost (localhost [127.0.0.1]) | ||
| + | by post.emcc.cz (Postfix) with ESMTP id 1996D27A9D6 | ||
| + | for < | ||
| + | Received: from post.emcc.cz ([127.0.0.1]) | ||
| + | by localhost (post.emcc.cz [127.0.0.1]) (amavisd-new, | ||
| + | with ESMTP id jnWVro40vyGn for < | ||
| + | Tue, 19 Feb 2019 01:45:33 +0100 (CET) | ||
| + | X-Original-Helo: | ||
| + | Received: from mailgw01.emcc.cz (unknown [10.13.238.21]) | ||
| + | by post.emcc.cz (Postfix) with ESMTP id E3BFE27A854 | ||
| + | for < | ||
| + | Received: from mailgw02.emcc.cz (mailgw02.emcc.cz [127.0.0.1]) | ||
| + | by mailgw01.emcc.cz (Postfix) with ESMTP id D379B31B51 | ||
| + | for < | ||
| + | X-Virus-Scanned: | ||
| + | X-Spam-Flag: | ||
| + | X-Spam-Score: | ||
| + | X-Spam-Level: | ||
| + | X-Spam-Status: | ||
| + | tests=[HTML_IMAGE_ONLY_04=0.342, | ||
| + | HTML_SHORT_LINK_IMG_1=0.139, | ||
| + | MPART_ALT_DIFF=0.724, | ||
| + | URIBL_ABUSE_SURBL=1.948, | ||
| + | autolearn=no autolearn_force=no | ||
| + | Received: from mailgw01.emcc.cz ([127.0.0.1]) | ||
| + | by mailgw02.emcc.cz (mailgw02.emcc.cz [127.0.0.1]) (amavisd-new, | ||
| + | with ESMTP id E9uuftbHMya5 for < | ||
| + | Tue, 19 Feb 2019 01:45:33 +0100 (CET) | ||
| + | Received: from mail.mainstree.eu (unknown [89.163.216.59]) | ||
| + | by mailgw01.emcc.cz (Postfix) with ESMTP id 5E1D231ABB | ||
| + | for < | ||
| + | Received: from mainstree.eu (unknown [5.8.76.161]) | ||
| + | by mail.mainstree.eu (Postfix) with ESMTPA id E2CC283E9B; | ||
| + | Tue, 19 Feb 2019 01:59:00 +0200 (EET) | ||
| + | Message-ID: < | ||
| + | From: "Horny Housewives" | ||
| + | To: < | ||
| + | Subject: Life is short. Have an affair. | ||
| + | Date: Tue, 19 Feb 2019 01:59:03 +0200 | ||
| + | MIME-Version: | ||
| + | Content-Type: | ||
| + | type=" | ||
| + | boundary=" | ||
| + | Precedence: bulk | ||
| + | List-Id: b51837323v06887284 | ||
| + | X-Complaints-To: | ||
| + | List-Unsubscribe: | ||
| + | |||
| + | Return-Path: | ||
| + | Delivered-To: | ||
| + | Received: from localhost (localhost [127.0.0.1]) | ||
| + | by post.emcc.cz (Postfix) with ESMTP id 67A8E27AC8D | ||
| + | for < | ||
| + | Received: from post.emcc.cz ([127.0.0.1]) | ||
| + | by localhost (post.emcc.cz [127.0.0.1]) (amavisd-new, | ||
| + | with ESMTP id aDUbEGvuNfOs for < | ||
| + | Tue, 19 Feb 2019 02:10:58 +0100 (CET) | ||
| + | X-Original-Helo: | ||
| + | Received: from mailgw01.emcc.cz (unknown [10.13.238.20]) | ||
| + | by post.emcc.cz (Postfix) with ESMTP id 456B427AC86 | ||
| + | for < | ||
| + | Received: from mailgw02.emcc.cz (mailgw01.emcc.cz [127.0.0.1]) | ||
| + | by mailgw01.emcc.cz (Postfix) with ESMTP id 3DD2F7A217 | ||
| + | for < | ||
| + | X-Virus-Scanned: | ||
| + | X-Spam-Flag: | ||
| + | X-Spam-Score: | ||
| + | X-Spam-Level: | ||
| + | X-Spam-Status: | ||
| + | tests=[HTML_IMAGE_ONLY_28=0.726, | ||
| + | HTML_MESSAGE=0.001, | ||
| + | URIBL_ABUSE_SURBL=1.948, | ||
| + | autolearn=no autolearn_force=no | ||
| + | Received: from mailgw01.emcc.cz ([127.0.0.1]) | ||
| + | by mailgw02.emcc.cz (mailgw02.emcc.cz [127.0.0.1]) (amavisd-new, | ||
| + | with ESMTP id bFhNn3mduEfq for < | ||
| + | Tue, 19 Feb 2019 02:10:57 +0100 (CET) | ||
| + | Received: from mail.topins.eu (mail.topins.eu [5.255.94.85]) | ||
| + | by mailgw01.emcc.cz (Postfix) with ESMTP id 4B1187A0DD | ||
| + | for < | ||
| + | Received: from topins.eu (unknown [5.8.76.161]) | ||
| + | by mail.topins.eu (Postfix) with ESMTPA id EC330245E2; | ||
| + | Tue, 19 Feb 2019 02:44:14 +0200 (EET) | ||
| + | Message-ID: < | ||
| + | From: " | ||
| + | To: < | ||
| + | Subject: =? | ||
| + | Date: Tue, 19 Feb 2019 02:36:50 +0200 | ||
| + | MIME-Version: | ||
| + | Content-Type: | ||
| + | type=" | ||
| + | boundary=" | ||
| + | Precedence: bulk | ||
| + | List-Id: b10612128v02608671 | ||
| + | X-Complaints-To: | ||
| + | List-Unsubscribe: | ||
| + | |||
| + | Return-Path: | ||
| + | Delivered-To: | ||
| + | Received: from localhost (localhost [127.0.0.1]) | ||
| + | by post.emcc.cz (Postfix) with ESMTP id 8561D27D232 | ||
| + | for < | ||
| + | DKIM-Signature: | ||
| + | : | ||
| + | : | ||
| + | : | ||
| + | 5HIU2UkOv3Fr7/ | ||
| + | Vg0Ba4Kh7+ZDAb/ | ||
| + | 3KBAonfvt3H2ILMitb0muoM3n7Tu11m4EiFSnnfeu+8OiVwqwsZV6bgIu8+DjqBq | ||
| + | 45sfEyhAkiQUJnr6enDvML7ul4= | ||
| + | Received: from post.emcc.cz ([127.0.0.1]) | ||
| + | by localhost (post.emcc.cz [127.0.0.1]) (amavisd-new, | ||
| + | with ESMTP id 2SBI76gFZ-PD for < | ||
| + | Tue, 19 Feb 2019 07:13:29 +0100 (CET) | ||
| + | X-Original-Helo: | ||
| + | Received: from mailgw01.emcc.cz (unknown [10.13.238.21]) | ||
| + | by post.emcc.cz (Postfix) with ESMTP id 63E8627D285 | ||
| + | for < | ||
| + | Received: from mailgw02.emcc.cz (mailgw02.emcc.cz [127.0.0.1]) | ||
| + | by mailgw01.emcc.cz (Postfix) with ESMTP id 5C549367AC | ||
| + | for < | ||
| + | X-Virus-Scanned: | ||
| + | X-Spam-Flag: | ||
| + | X-Spam-Score: | ||
| + | X-Spam-Level: | ||
| + | X-Spam-Status: | ||
| + | BITCOIN_EXTORT_01=4.999, | ||
| + | HEADER_FROM_DIFFERENT_DOMAINS=0.001, | ||
| + | RCVD_IN_DNSWL_NONE=-0.0001] autolearn=no autolearn_force=no | ||
| + | Received: from mailgw01.emcc.cz ([127.0.0.1]) | ||
| + | by mailgw02.emcc.cz (mailgw02.emcc.cz [127.0.0.1]) (amavisd-new, | ||
| + | with ESMTP id RpXeUlDgZERL for < | ||
| + | Tue, 19 Feb 2019 07:13:28 +0100 (CET) | ||
| + | Received: from mail.sdp-mos.ru (mail.sdp-mos.ru [81.23.7.130]) | ||
| + | by mailgw01.emcc.cz (Postfix) with ESMTP id 92022364D3 | ||
| + | for < | ||
| + | Received: from [dynamicip-176-215-13-96.pppoe.ekat.ertelecom.ru] (dynamicip-176-215-13-96.pppoe.ekat.ertelecom.ru [176.215.13.96]) | ||
| + | by mail.sdp-mos.ru with ESMTPA | ||
| + | ; Tue, 19 Feb 2019 06:26:20 +0300 | ||
| + | List-ID: ah2j2vlkydvcj1d9tlm4kl0wr6f list | ||
| + | < | ||
| + | User-Agent: One.com webmail 24.28.0 | ||
| + | To: nemec@emcc.cz | ||
| + | X-Abuse-Reports-To: | ||
| + | Date: Tue, 19 Feb 2019 04:26:19 +0100 | ||
| + | Abuse-Reports-To: | ||
| + | Message-ID: < | ||
| + | Subject: ***SPAM*** nemec | ||
| + | Content-Transfer-Encoding: | ||
| + | Content-Type: | ||
| + | X-Sender: belozerov@sdp-mos.ru | ||
| + | X-Mailer: BME Mailer - **BME8534552-975406-169798249** | ||
| + | X-Sender-Info: | ||
| + | From: < | ||
| + | |||
| + | |||
| + | Return-Path: | ||
| + | Delivered-To: | ||
| + | Received: from localhost (localhost [127.0.0.1]) | ||
| + | by post.emcc.cz (Postfix) with ESMTP id 10FC5263CFD | ||
| + | for < | ||
| + | Received: from post.emcc.cz ([127.0.0.1]) | ||
| + | by localhost (post.emcc.cz [127.0.0.1]) (amavisd-new, | ||
| + | with ESMTP id Pa0xJeG40kJ2 for < | ||
| + | Wed, 13 Feb 2019 09:43:59 +0100 (CET) | ||
| + | Received: from PCSTAROSTA (unknown [79.98.72.254]) | ||
| + | by post.emcc.cz (Postfix) with ESMTPSA id 25EAF263E5E | ||
| + | for < | ||
| + | From: =? | ||
| + | To: =? | ||
| + | Subject: =? | ||
| + | =? | ||
| + | Date: Wed, 13 Feb 2019 09:42:54 +0100 | ||
| + | Message-ID: < | ||
| + | MIME-Version: | ||
| + | Content-Type: | ||
| + | boundary=" | ||
| + | X-Mailer: Microsoft Outlook 14.0 | ||
| + | Thread-Index: | ||
| + | Content-Language: | ||
| + | |||
| + | Return-Path: | ||
| + | Delivered-To: | ||
| + | Received: from localhost (localhost [127.0.0.1]) | ||
| + | by post.emcc.cz (Postfix) with ESMTP id CAACF240D28 | ||
| + | for < | ||
| + | Received: from post.emcc.cz ([127.0.0.1]) | ||
| + | by localhost (post.emcc.cz [127.0.0.1]) (amavisd-new, | ||
| + | with ESMTP id Dy1fUZ5Xt2br for < | ||
| + | Thu, 14 Feb 2019 12:17:06 +0100 (CET) | ||
| + | X-Original-Helo: | ||
| + | Received: from mailgw01.emcc.cz (unknown [10.13.238.21]) | ||
| + | by post.emcc.cz (Postfix) with ESMTP id B3831240D21 | ||
| + | for < | ||
| + | Received: from mailgw02.emcc.cz (mailgw02.emcc.cz [127.0.0.1]) | ||
| + | by mailgw01.emcc.cz (Postfix) with ESMTP id 9F8592BE97 | ||
| + | for < | ||
| + | X-Virus-Scanned: | ||
| + | X-Spam-Flag: | ||
| + | X-Spam-Score: | ||
| + | X-Spam-Level: | ||
| + | X-Spam-Status: | ||
| + | tests=[HTML_IMAGE_ONLY_12=1.629, | ||
| + | HTML_MESSAGE=0.001, | ||
| + | MAILING_LIST_MULTI=-1, | ||
| + | URIBL_BLOCKED=0.001, | ||
| + | autolearn=no autolearn_force=no | ||
| + | Received: from mailgw01.emcc.cz ([127.0.0.1]) | ||
| + | by mailgw02.emcc.cz (mailgw02.emcc.cz [127.0.0.1]) (amavisd-new, | ||
| + | with ESMTP id 4h9cseJ-VmWq for < | ||
| + | Thu, 14 Feb 2019 12:17:06 +0100 (CET) | ||
| + | Received: from mail.centroban.eu (mail.centroban.eu [188.138.70.167]) | ||
| + | by mailgw01.emcc.cz (Postfix) with ESMTP id D876A2BD4A | ||
| + | for < | ||
| + | Received: from centroban.eu (unknown [62.173.149.221]) | ||
| + | by mail.centroban.eu (Postfix) with ESMTPA id ACD361BEC616; | ||
| + | Thu, 14 Feb 2019 09:48:27 +0200 (EET) | ||
| + | Message-ID: < | ||
| + | Reply-To: " | ||
| + | From: " | ||
| + | To: < | ||
| + | Subject: ***SPAM*** =? | ||
| + | Date: Thu, 14 Feb 2019 10:48:33 +0300 | ||
| + | MIME-Version: | ||
| + | Content-Type: | ||
| + | type=" | ||
| + | boundary=" | ||
| + | Precedence: bulk | ||
| + | List-Id: b17838601v85654876 | ||
| + | X-Complaints-To: | ||
| + | List-Unsubscribe: | ||
| + | |||
| + | Return-Path: | ||
| + | Delivered-To: | ||
| + | Received: from localhost (localhost [127.0.0.1]) | ||
| + | by post.emcc.cz (Postfix) with ESMTP id 43183208EDB | ||
| + | for < | ||
| + | Received: from post.emcc.cz ([127.0.0.1]) | ||
| + | by localhost (post.emcc.cz [127.0.0.1]) (amavisd-new, | ||
| + | with ESMTP id 7hxsyuJX7XD9 for < | ||
| + | Thu, 21 Feb 2019 01:37:23 +0100 (CET) | ||
| + | X-Original-Helo: | ||
| + | Received: from mailgw01.emcc.cz (unknown [10.13.238.20]) | ||
| + | by post.emcc.cz (Postfix) with ESMTP id 2282D2099BD | ||
| + | for < | ||
| + | Received: from mailgw02.emcc.cz (mailgw01.emcc.cz [127.0.0.1]) | ||
| + | by mailgw01.emcc.cz (Postfix) with ESMTP id 1BC179B2FE | ||
| + | for < | ||
| + | X-Virus-Scanned: | ||
| + | X-Spam-Flag: | ||
| + | X-Spam-Score: | ||
| + | X-Spam-Level: | ||
| + | X-Spam-Status: | ||
| + | tests=[HTML_IMAGE_ONLY_20=0.7, | ||
| + | HTML_MESSAGE=0.001, | ||
| + | MAILING_LIST_MULTI=-1, | ||
| + | URIBL_BLACK=1.7] autolearn=no autolearn_force=no | ||
| + | Received: from mailgw01.emcc.cz ([127.0.0.1]) | ||
| + | by mailgw02.emcc.cz (mailgw02.emcc.cz [127.0.0.1]) (amavisd-new, | ||
| + | with ESMTP id 1wPxgrbz5F8W for < | ||
| + | Thu, 21 Feb 2019 01:37:22 +0100 (CET) | ||
| + | Received: from mail.dreamse.eu (mail.dreamse.eu [46.249.59.89]) | ||
| + | by mailgw01.emcc.cz (Postfix) with ESMTP id 9E6F09B450 | ||
| + | for < | ||
| + | Received: from dreamse.eu (p2002.pserver.ru [185.144.28.90]) | ||
| + | by mail.dreamse.eu (Postfix) with ESMTPA id 478A32436A; | ||
| + | Thu, 21 Feb 2019 02:22:38 +0200 (EET) | ||
| + | Message-ID: < | ||
| + | Reply-To: " | ||
| + | From: " | ||
| + | To: < | ||
| + | Subject: =? | ||
| + | Date: Thu, 21 Feb 2019 02:22:03 +0200 | ||
| + | MIME-Version: | ||
| + | Content-Type: | ||
| + | type=" | ||
| + | boundary=" | ||
| + | Precedence: bulk | ||
| + | List-Id: b33260101v08802510 | ||
| + | X-Complaints-To: | ||
| + | List-Unsubscribe: | ||
| + | |||
| + | </ | ||
| + | </ | ||
| + | |||
| + | ==== Fail2ban - Postfix SASL attack ==== | ||
| + | |||
| + | https:// | ||
| + | |||
| + | |||
| + | ==== Postfix: remove and webserve attachments ==== | ||
| + | |||
| + | |||
| + | http:// | ||
