/etc/mail: Install 4 sample mailer.conf files
authorJohn Marino <draco@marino.st>
Sat, 7 Mar 2015 19:37:38 +0000 (20:37 +0100)
committerJohn Marino <draco@marino.st>
Sat, 7 Mar 2015 21:06:38 +0000 (22:06 +0100)
These files have been recently referenced in the DragonFly handbook.
They are here to allow quick reconfiguration of the Mail Transfer Agent.
For example, if Postfix from DPorts is desired, all one needs to do is
copy /etc/mail/mailer.conf.postfix to /etc/mail/mailer.conf and reboot
(assuming postfix configuration files are already in place).

This provides default MTA configurations for dma (base), postfix,
sendmail, and and opensmtpd.

libexec/dma/Makefile
libexec/dma/mailer-conf/Makefile [new file with mode: 0644]
libexec/dma/mailer-conf/mailer.conf.dma [new file with mode: 0644]
libexec/dma/mailer-conf/mailer.conf.opensmtpd [new file with mode: 0644]
libexec/dma/mailer-conf/mailer.conf.postfix [new file with mode: 0644]
libexec/dma/mailer-conf/mailer.conf.sendmail [new file with mode: 0644]

index 014fd07..6760740 100644 (file)
@@ -1,3 +1,3 @@
-SUBDIR=        dma dma-mbox-create default-conf
+SUBDIR=        dma dma-mbox-create default-conf mailer-conf
 
 .include <bsd.subdir.mk>
diff --git a/libexec/dma/mailer-conf/Makefile b/libexec/dma/mailer-conf/Makefile
new file mode 100644 (file)
index 0000000..565e164
--- /dev/null
@@ -0,0 +1,14 @@
+# This installs standard mailer.conf samples based on sendmail, postfix
+# and OpenSMTPD from ports.  They are overwritten during each installworld
+
+FILESDIR=      /etc/mail/
+SHAREOWN=      root
+SHAREGRP=      mail
+FILESMODE=     640
+
+FILES+=                mailer.conf.dma \
+               mailer.conf.opensmtpd \
+               mailer.conf.postfix \
+               mailer.conf.sendmail
+
+.include <bsd.prog.mk>
diff --git a/libexec/dma/mailer-conf/mailer.conf.dma b/libexec/dma/mailer-conf/mailer.conf.dma
new file mode 100644 (file)
index 0000000..f53dc78
--- /dev/null
@@ -0,0 +1,9 @@
+#
+# Set the Mail Transfer Agent to DragonFly Mail Agent
+#
+
+sendmail       /usr/libexec/dma
+mailq          /usr/libexec/dma
+newaliases     true
+hoststat       true
+purgestat      true
diff --git a/libexec/dma/mailer-conf/mailer.conf.opensmtpd b/libexec/dma/mailer-conf/mailer.conf.opensmtpd
new file mode 100644 (file)
index 0000000..fe647db
--- /dev/null
@@ -0,0 +1,9 @@
+#
+# Set the Mail Transfer Agent to DPorts OpenSMTPD
+#
+
+sendmail       /usr/local/sbin/smtpctl
+mailq          /usr/local/sbin/smtpctl
+newaliases     /usr/local/sbin/smtpctl
+hoststat       true
+purgestat      true
diff --git a/libexec/dma/mailer-conf/mailer.conf.postfix b/libexec/dma/mailer-conf/mailer.conf.postfix
new file mode 100644 (file)
index 0000000..e7cc227
--- /dev/null
@@ -0,0 +1,9 @@
+#
+# Set the Mail Transfer Agent to DPorts Postfix
+#
+
+sendmail       /usr/local/sbin/sendmail
+mailq          /usr/local/bin/mailq
+newaliases     /usr/local/bin/newaliases
+hoststat       true
+purgestat      true
diff --git a/libexec/dma/mailer-conf/mailer.conf.sendmail b/libexec/dma/mailer-conf/mailer.conf.sendmail
new file mode 100644 (file)
index 0000000..644fe21
--- /dev/null
@@ -0,0 +1,9 @@
+#
+# Set the Mail Transfer Agent to DPorts Sendmail
+#
+
+sendmail       /usr/local/sbin/sendmail
+mailq          /usr/local/bin/mailq
+newaliases     /usr/local/bin/newaliases
+hoststat       /usr/local/bin/hoststat
+purgestat      /usr/local/bin/purgestat