mmv

mailserver bootstrap script
git clone git://git.yotsev.xyz/mmv.git
Log | Files | Refs | README | LICENSE

smtpd.conf (980B)


      1 # smtpd.conf
      2 
      3 # configure TLS
      4 pki "mail" cert "/etc/ssl/<maildom>.crt"
      5 pki "mail" key "/etc/ssl/private/<maildom>.key"
      6 
      7 # aliases table
      8 table aliases file:/etc/mail/aliases
      9 table credentials passwd:/etc/mail/credentials
     10 table virtuals file:/etc/mail/virtuals
     11 table domains file:/etc/mail/domains
     12 
     13 filter "rspamd" proc-exec "/usr/local/libexec/smtpd/filter-rspamd"
     14 
     15 # listen directives
     16 listen on all port 25 tls-require pki "mail" \
     17     hostname "<maildom>" filter "rspamd"
     18 listen on all port 587 tls-require pki "mail" \
     19     hostname "<maildom>" auth <credentials> filter "rspamd"
     20 
     21 action "local" mbox alias <aliases>
     22 action "inbound" \
     23     maildir "/var/vmail/%{dest.domain:lowercase}/%{dest.user:lowercase}/Inbox" virtual <virtuals>
     24 action "outbound" relay helo "<maildom>"
     25 
     26 # accept external mail
     27 match from any for domain <domains> action "inbound"
     28 match from local for local action "local"
     29 match from local for any action "outbound"
     30 match from auth for any action "outbound"