User Tools

Site Tools


opensmtpd

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
opensmtpd [2021/10/06 07:26] adminopensmtpd [2023/12/13 19:12] admin
Line 8: Line 8:
  
 <code> <code>
-# This is the smtpd server system-wide configuration file+pki "mail.domain.tld" cert "/etc/letsencrypt/live/mail.domain.tld/fullchain.pem" 
-# See smtpd.conf(5) for more information.+pki "mail.domain.tld" key "/etc/letsencrypt/live/mail.domain.tld/privkey.pem" 
 +srs key "lassdirwasschöneseinfallenhier"
  
-Zertifikate: +internal aliases to root 
-pki mail.example.com cert "/etc/letsencrypt/live/mail.example.com/cert.pem" +table aliases file:/etc/mail/aliases
-pki mail.example.com key "/etc/letsencrypt/live/mail.example.com/privkey.pem"+
  
-filter check_dyndns phase connect match rdns regex { '.*\.dyn\..*', '.*\.dsl\..* +# External Mails in Database vmail 
-' } \ +table domains mysql:/etc/mail/mysql.conf 
-    disconnect "550 no residential connections"+table virtuals mysql:/etc/mail/mysql.conf 
 +table credentials mysql:/etc/mail/mysql.conf
  
 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 "filter-senderscore -blockBelow 10 -junkBelow 70 -slowFactor 5000"+    proc-exec "filter-senderscore -junkBelow 70 -slowFactor 5000"
  
 filter rspamd proc-exec "filter-rspamd" filter rspamd proc-exec "filter-rspamd"
  
-table aliases file:/etc/mail/aliases +listen on eth0 tls pki mail.domain.tld filter { senderscore, rspamd, check_rdns 
- +listen on eth0 port 465 smtps pki mail.domain.tld auth <credentials> filter rspamd } 
-listen on all tls pki mail.example.com \ +listen on eth0 port 587 tls-require pki mail.domain.tld auth <credentials> filter { rspamd }
-    filter { check_dyndns, check_rdns, check_fcrdns, senderscore, rspamd } +
- +
-listen on all port submission tls-require pki mail.example.com auth filter rspamd +
- +
-action "local" maildir junk alias <aliases> +
-action "outbound" relay helo mail.example.com+
  
-match from any for domain "example.com" action "local+action "local_mail" mbox alias <aliases> 
-match for local action "local"+action "domain_mail" maildir "/var/vmail/%{dest.domain:lowercase}/%{dest.user:lowercase}virtual <virtuals> 
 +action "outboundrelay 
 +action "RECV" lmtp "/var/run/dovecot/lmtprcpt-to virtual <virtuals>
  
-match from any auth for any action "outbound+match from any for domain <domains> action "domain_mail" 
-match for any action "outbound"+match from any for domain <domains> action "RECV
 +match from local for local action "local_mail"
  
 +match from local for any action "outbound"
 +match auth from any for any action "outbound"
 </code> </code>
  
  
  
opensmtpd.txt · Last modified: 2023/12/13 19:17 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