User Tools

Site Tools



Installieren mit:

apt install opensmtpd opensmtpd-filter-senderscore mariadb-client mariadb-server

Dann die Datei /etc/smtpd.conf anpassen. Meine sieht jetzt so aus:

# This is the smtpd server system-wide configuration file.
# See smtpd.conf(5) for more information.

# Zertifikate:
pki cert "/etc/letsencrypt/live/"
pki key "/etc/letsencrypt/live/"

filter check_dyndns phase connect match rdns regex { '.*\.dyn\..*', '.*\.dsl\..*
' } \
    disconnect "550 no residential connections"

filter check_rdns phase connect match !rdns \
    disconnect "550 no rDNS is so 80s"

filter check_fcrdns phase connect match !fcrdns \
    disconnect "550 no FCrDNS is so 80s"

filter senderscore \
    proc-exec "filter-senderscore -blockBelow 10 -junkBelow 70 -slowFactor 5000"

filter rspamd proc-exec "filter-rspamd"

table aliases file:/etc/mail/aliases

listen on all tls pki \
    filter { check_dyndns, check_rdns, check_fcrdns, senderscore, rspamd }

listen on all port submission tls-require pki auth filter rspamd

action "local" maildir junk alias <aliases>
action "outbound" relay helo

match from any for domain "" action "local"
match for local action "local"

match from any auth for any action "outbound"
match for any action "outbound"
opensmtpd.txt · Last modified: 2021/10/06 07:26 by admin

Except where otherwise noted, content on this wiki is licensed under the following license: CC0 1.0 Universal
CC0 1.0 Universal Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki