Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
| Beide Seiten der vorigen RevisionVorhergehende ÜberarbeitungNächste Überarbeitung | Vorhergehende Überarbeitung | ||
| mailserver [2008/11/11 17:07] – gerald | mailserver [2024/02/29 13:36] (aktuell) – Externe Bearbeitung 127.0.0.1 | ||
|---|---|---|---|
| Zeile 1: | Zeile 1: | ||
| + | ====== Mailserver ====== | ||
| + | |||
| + | |||
| + | [[mailserver: | ||
| + | |||
| + | [[mailserver: | ||
| + | |||
| Quelle((http:// | Quelle((http:// | ||
| Zeile 9: | Zeile 16: | ||
| Postfix statt sendmail. Das Kommando ' | Postfix statt sendmail. Das Kommando ' | ||
| + | |||
| + | ===== SSL Zertifikate für Postfix (SMTPs), Cyrus IMAPs & POPs, erzeugen | ||
| + | Aus obiger Anleitung. Quelle ((http:// | ||
| + | |||
| + | < | ||
| + | ~$ cd / | ||
| + | ~$ openssl req -new -x509 -keyout smtps.pem -out smtps.pem -days 365 -nodes | ||
| + | ~$ chgrp postfix smtps.pem | ||
| + | ~$ cp smtps.pem cyrus.pem | ||
| + | ~$ chown cyrus:mail cyrus.pem | ||
| + | ~$ chmod 640 smtps.pem cyrus.pem | ||
| + | </ | ||
| + | |||
| + | Ganz wichtig: | ||
| + | |||
| + | < | ||
| + | Übrige Daten für das selbstsignierte Zertifikat sind beliebig. | ||
| + | |||
| + | |||
| + | ===== Fehler mit dem ClamAV ===== | ||
| + | |||
| + | Mailversand/ | ||
| + | |||
| + | / | ||
| + | < | ||
| + | Geht also immer ins lokale Netz, obwohl die Nachricht für Außerhalb gedacht ist. | ||
| + | |||
| + | die / | ||
| + | |||
| + | Hab schon früh vermutet, dass es an der Übergabe einer der drei Filterkomponenten Spamassassin, | ||
| + | |||
| + | SA und Postgrey genau durchsucht und scheint alles ok. Schließlich war ich beim ClamAV. Habe folgende Zeilen aus der ''/ | ||
| + | < | ||
| + | # Antivirus | ||
| + | # AV scan filter (used by content_filter) | ||
| + | #scan unix - | ||
| + | # -o smtp_send_xforward_command=yes | ||
| + | |||
| + | cyrus unix - n | ||
| + | | ||
| + | # Spamassassin | ||
| + | spamassassin unix - | ||
| + | user=nobody argv=/ | ||
| + | / | ||
| + | |||
| + | |||
| + | # For injecting mail back into postfix from the filter | ||
| + | # | ||
| + | # -o content_filter= | ||
| + | # -o receive_override_options=no_unknown_recipient_checks, | ||
| + | # -o smtpd_helo_restrictions= | ||
| + | # -o smtpd_client_restrictions= | ||
| + | # -o smtpd_sender_restrictions= | ||
| + | # -o smtpd_recipient_restrictions=permit_mynetworks, | ||
| + | # -o mynetworks_style=host | ||
| + | # -o smtpd_authorized_xforward_hosts=127.0.0.0/ | ||
| + | </ | ||
| + | |||
| + | Es geht! Jubel, jubel, freu, freu! | ||
| ==== Postfix einrichten ==== | ==== Postfix einrichten ==== | ||
| Zeile 20: | Zeile 86: | ||
| Anzeigen der hängenden Mails: | Anzeigen der hängenden Mails: | ||
| < | < | ||
| + | ===== Probleme mit Spamassassin ===== | ||
| + | |||
| + | Problem: bekomme solche Meldungen in / | ||
| + | < | ||
| + | Nov 11 19:43:18 www spamd[2622]: | ||
| + | Nov 11 19:43:18 www spamd[2622]: | ||
| + | Nov 11 19:43:18 www spamd[2622]: | ||
| + | Nov 11 19:43:18 www spamd[2622]: | ||
| + | </ | ||
| + | |||
| + | |||
| + | Quelle((http:// | ||
| + | |||
| + | Package: spamassassin | ||
| + | Version: 3.1.7-2 | ||
| + | Severity: normal | ||
| + | |||
| + | When using spamd child processes run as ' | ||
| + | dir. That causes a permission denied error in creation of bayesian | ||
| + | filtering files, as explained here for instance: | ||
| + | |||
| + | [[http:// | ||
| + | |||
| + | Adding something like: | ||
| + | |||
| + | < | ||
| + | |||
| + | to OPTIONS in / | ||
| + | would be appropriate. It would be better also creating a system spamd user | ||
| + | with appropriate home and shell, instead of using nobody. | ||
| + | |||