# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4

PortSystem          1.0
PortGroup           golang 1.0

go.setup            github.com/mjl-/mox 0.0.12 v
revision            0

description         \
    Modern full-featured open source secure mail server for low-maintenance \
    self-hosted email

long_description    \
    {*}${description}. \n\
    Mox features: \n\
    - Quick and easy to start/maintain mail server, for your own domain(s). \n\
    - SMTP (with extensions) for receiving and submitting email. \n\
    - IMAP4 (with extensions) for giving email clients access to email. \n\
    - Automatic TLS with ACME, for use with Let's Encrypt and other CA's. \n\
    - SPF, verifying that a remote host is allowed to sent email for a domain.  \n\
    - DKIM, verifying that a message is signed by the claimed sender domain, \
      and for signing emails sent by mox for others to verify. \n\
    - DMARC, for enforcing SPF/DKIM policies set by domains. Incoming DMARC \
      aggregate reports are analyzed. \n\
    - Reputation tracking, learning (per user) host- and domain-based \
      reputation from (Non-)Junk email. \n\
    - Bayesian spam filtering that learns (per user) from (Non-)Junk email. \n\
    - Slowing down senders with no/low reputation or questionable email \
      content (similar to greylisting). Rejected emails are stored in a \
      mailbox called Rejects for a short period, helping with misclassified \
      legitimate synchronous signup/login/transactional emails. \n\
    - Internationalized email, with unicode names in domains and usernames \
      ("localparts"). \n\
    - TLSRPT, parsing reports about TLS usage and issues. \n\
    - MTA-STS, for ensuring TLS is used whenever it is required. Both serving \
      of policies, and tracking and applying policies of remote servers. \n\
    - Web admin interface that helps you set up your domains and accounts \
      (instructions to create DNS records, configure \
      SPF/DKIM/DMARC/TLSRPT/MTA-STS), for status information, managing \
      accounts/domains, and modifying the configuration file. \n\
    - Autodiscovery (with SRV records, Microsoft-style and Thunderbird-style) \
      for easy account setup (though not many clients support it). \n\
    - Prometheus metrics and structured logging for operational insight.


checksums           rmd160  f2c30abb45553ee1f1528b78520101e43b27929c \
                    sha256  432fb5d4d7122fc67c9ad272a306ffe38cfbfa0364be286aca7ffe72299fd721 \
                    size    6570643

categories          mail
installs_libs       no
license             MIT
maintainers         {gmail.com:herby.gillot @herbygillot} \
                    openmaintainer

depends_build-append \
                    bin:npm:npm10

build.cmd           make

destroot {
    xinstall -m 0755 ${worksrcpath}/${name} ${destroot}${prefix}/bin/
}
