---
name: dma
version: v0.7_1,1
origin: mail/dma
comment: DragonFly Mail Agent, a small MTA for local/outbound mail
arch: freebsd:9:x86:64
www: https://github.com/corecode/dma
maintainer: bzeeb+freebsdports@zabbadoz.net
prefix: /usr/local
licenselogic: single
licenses: [BSD]
flatsize: 93207
desc: |
  The DragonFly Mail Agent is a small Mail Transport Agent (MTA),
  designed for home and office use.  It accepts e-mail messages
  from locally installed Mail User Agents (MUA) and delivers the
  messages either locally or to a remote destination.  Remote
  delivery includes several features like TLS/SSL support and
  SMTP authentication, but not MX record lookups.  Therefore,
  dma is currently not suitable for direct remote delivery.
  However, it works very well for handling local mail plus
  secure mail submission to a remote smarthost (e.g. for
  travelling mobile computers).

  Since dma is not intended as a replacement for real, big MTAs
  like sendmail(8) or postfix(1), it does not listen on port 25
  for incoming connections.

  WWW: https://github.com/corecode/dma
categories: [mail, ipv6]
files:
  /usr/local/etc/dma/auth.conf.sample: 7daef888f8fbc30f2f5b48c83c44bf2bace4a1ac66f235d6a5036faf7f66fb0c
  /usr/local/etc/dma/dma.conf.sample: af706730997fbe2d9ef82522ef3ce2ae7d209853353c6f250544e2194cf6c0eb
  /usr/local/etc/rc.d/dma_flushq: 9fb1a2501cef97289edbfa1e5f0741116fa3b8c6b2f46e0915f81270189f3ab9
  /usr/local/libexec/dma: 45b7c216e74fc35aabb7c509bfeb730e4791cb0df0922a76ed4f1eb5e308b573
  /usr/local/libexec/dma-mbox-create: 8812e192cbfaee9ad37d4ac72d4b6b25bfbbbb6be6222e3b384178621dcb0d7d
  /usr/local/man/man8/dma.8.gz: 259d027c1d1fb8e119a0e3dabe0a799bf333b4cee7ca206d70677185e2f947ac
  /usr/local/share/licenses/dma-v0.7_1,1/BSD: 10f2cb168b60c9c82a9341a28ad34c9a385204c68806a86a22a9135345f4e063
  /usr/local/share/licenses/dma-v0.7_1,1/LICENSE: d9cce0db43502eb1bd8fbef7e960cfaa43b5647186f7f7379923b336209fd77b
  /usr/local/share/licenses/dma-v0.7_1,1/catalog.mk: 27a140b8efce214c960ce4529abc4b6cab31aa510d0414f28150ea6cff1b388f
directories:
  /usr/local/share/licenses/dma-v0.7_1,1/: n
  /usr/local/share/licenses/: y
  /usr/local/etc/dma/: y
scripts:
  post-install: |
    if [ ! -f /usr/local/etc/dma/dma.conf ] ; then cp -p /usr/local/etc/dma/dma.conf.sample /usr/local/etc/dma/dma.conf; fi
    if [ ! -f /usr/local/etc/dma/auth.conf ] ; then cp -p /usr/local/etc/dma/auth.conf.sample /usr/local/etc/dma/auth.conf; fi
    install -d -o root -g mail -m 770 /var/spool/dma
    cd /usr/local
    cd /usr/local
  pre-deinstall: |
    if cmp -s /usr/local/etc/dma/dma.conf.sample /usr/local/etc/dma/dma.conf; then rm -f /usr/local/etc/dma/dma.conf; fi
    if cmp -s /usr/local/etc/dma/auth.conf.sample /usr/local/etc/dma/auth.conf; then rm -f /usr/local/etc/dma/auth.conf; fi
    cd /usr/local
    cd /usr/local
  post-deinstall: |
    cd /usr/local
    cd /usr/local
message: "\nTo enable dma please edit /etc/mail/mailer.conf to replace all lines\nreferring
  to another MTA with the following:\n\nsendmail\t/usr/local/libexec/dma\nsend-mail\t/usr/local/libexec/dma\nmailq\t\t/usr/local/libexec/dma\n\nIf
  you not need sendmail anymore, please add in your rc.conf:\n\nsendmail_enable=\"NO\"\nsendmail_submit_enable=\"NO\"\nsendmail_outbound_enable=\"NO\"\nsendmail_msp_queue_enable=\"NO\"\n\nif
  you want anything in your queue to be flushed at on boot or before\nshutdown, add
  the following to rc.conf as well:\n\ndma_flushq_enable=\"YES\"\n\nyou can also add
  a cronjob to do regular mailq flushes using the following \ncommand: \n\n/usr/local/libexec/dma
  -q\n\nAnd you can disable some sendmail specific daily maintenance routines in your\n/etc/periodic.conf
  file:\n\ndaily_clean_hoststat_enable=\"NO\"\ndaily_status_mail_rejects_enable=\"NO\"\ndaily_status_include_submit_mailq=\"NO\"\ndaily_submit_queuerun=\"NO\"\n\n"
