garbash-config

etc files for garbash tilde
git clone git://git.alexkarle.com.com/garbash-config
Log | Files | Refs | README | LICENSE

smtpd.conf (1446B) [raw]


      1 #	$OpenBSD: smtpd.conf,v 1.14 2019/11/26 20:14:38 gilles Exp $
      2 
      3 # This is the smtpd server system-wide configuration file.
      4 # See smtpd.conf(5) for more information.
      5 
      6 pki mail.garbash.com cert "/etc/ssl/garbash.com.fullchain.pem"
      7 pki mail.garbash.com key "/etc/ssl/private/garbash.com.key"
      8 
      9 filter check_dyndns phase connect match rdns regex { '.*\.dyn\..*', '.*\.dsl\..*' } \
     10     disconnect "550 no residential connections"
     11 
     12 filter check_rdns phase connect match !rdns \
     13     disconnect "550 no rDNS is so 80s"
     14 
     15 filter check_fcrdns phase connect match !fcrdns \
     16     disconnect "550 no FCrDNS is so 80s"
     17 
     18 filter senderscore \
     19     proc-exec "filter-senderscore -blockBelow 10 -junkBelow 70 -slowFactor 5000"
     20 
     21 filter "dkimsign" proc-exec "filter-dkimsign -d garbash.com -s 20210921 -k /etc/mail/dkim/garbash.com.key" user _dkimsign group _dkimsign
     22 
     23 table aliases file:/etc/mail/aliases
     24 
     25 listen on socket filter "dkimsign"
     26 
     27 # To accept external mail, replace with: listen on all
     28 #
     29 listen on all tls pki mail.garbash.com \
     30     filter { check_dyndns, check_rdns, check_fcrdns, senderscore, dkimsign }
     31 
     32 listen on lo0 port submission tls-require pki mail.garbash.com auth filter "dkimsign"
     33 
     34 action "local_mail" maildir "~/Maildir/INBOX" junk alias <aliases>
     35 action "outbound" relay helo mail.garbash.com
     36 
     37 match from any for domain "garbash.com" action "local_mail"
     38 match from local for local action "local_mail"
     39 match from local for any action "outbound"