opensmtpd
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
opensmtpd [2021/02/11 11:52] – admin | opensmtpd [2023/12/13 19:17] (current) – admin | ||
---|---|---|---|
Line 3: | Line 3: | ||
Installieren mit: | Installieren mit: | ||
- | < | + | < |
Dann die Datei / | Dann die Datei / | ||
< | < | ||
- | # This is the smtpd server system-wide configuration file. | + | pki "mail.domain.tld" |
- | # See smtpd.conf(5) for more information. | + | pki "mail.domain.tld" key "/ |
+ | srs key " | ||
- | # Zertifikate: | + | # internal aliases to root |
- | pki mail.example.com cert "/etc/ | + | table aliases file:/etc/mail/aliases |
- | pki mail.example.com key "/ | + | |
- | filter check_dyndns phase connect match rdns regex { '.*\.dyn\..*', ' | + | # External Mails in Database vmail |
- | ' } \ | + | table domains mysql:/ |
- | disconnect "550 no residential connections" | + | table virtuals mysql:/ |
+ | table credentials mysql:/ | ||
filter check_rdns phase connect match !rdns \ | filter check_rdns phase connect match !rdns \ | ||
- | disconnect "550 no rDNS is so 80s" | + | disconnect "550 no rDNS" |
- | + | ||
- | filter check_fcrdns phase connect match !fcrdns \ | + | |
- | disconnect "550 no FCrDNS is so 80s" | + | |
filter senderscore \ | filter senderscore \ | ||
- | proc-exec " | + | proc-exec " |
filter rspamd proc-exec " | filter rspamd proc-exec " | ||
- | table aliases file:/etc/mail/aliases | + | listen on eth0 tls pki mail.domain.tld filter { senderscore, |
+ | listen on eth0 port 465 smtps pki mail.domain.tld auth < | ||
+ | listen on eth0 port 587 tls-require pki mail.domain.tld auth < | ||
- | listen on all tls pki mail.example.com \ | + | action " |
- | | + | action " |
+ | action " | ||
+ | action " | ||
- | listen on all port submission tls-require pki mail.example.com auth filter rspamd | + | # match from any for domain < |
+ | match from any for domain < | ||
+ | match from local for local action " | ||
- | action "local" | + | match from local for any action "outbound" |
- | action " | + | match auth from any for any action " |
+ | </ | ||
- | match from any for domain " | + | Die oben erwähnte / |
- | match for local action " | + | |
- | match from any auth for any action " | + | < |
- | match for any action " | + | host localhost |
+ | username | ||
+ | password | ||
+ | database | ||
- | </ | + | query_alias SELECT destination FROM virtuals WHERE email=?; |
+ | query_credentials SELECT user, password FROM credentials WHERE user=?; | ||
+ | query_domain SELECT domain FROM domains WHERE domain=?; | ||
+ | </ | ||
opensmtpd.1613044376.txt.gz · Last modified: 2021/02/11 11:52 by admin