summaryrefslogtreecommitdiff
path: root/examples/nullmailer-example/etc
diff options
context:
space:
mode:
authorcryx <cryx@h3q.com>2010-01-24 21:22:39 +0000
committercryx <cryx@h3q.com>2010-01-24 21:22:39 +0000
commitb78a01cb0e2c959e4753723e940a3807c0381a8e (patch)
tree685bdf06220bd5ac876dd84d4a7bd8997baf4c37 /examples/nullmailer-example/etc
parent9a3ccdcbb7a5c68897ae5a0ae28ee34c935a3e3d (diff)
Example flavour for using nullmailer as sendmail-replacement inside a jail, routing outgoing mail over an extern mailserver.
Diffstat (limited to 'examples/nullmailer-example/etc')
-rw-r--r--examples/nullmailer-example/etc/mail/mailer.conf4
-rwxr-xr-xexamples/nullmailer-example/etc/rc.conf26
2 files changed, 30 insertions, 0 deletions
diff --git a/examples/nullmailer-example/etc/mail/mailer.conf b/examples/nullmailer-example/etc/mail/mailer.conf
new file mode 100644
index 0000000..c3fa67d
--- /dev/null
+++ b/examples/nullmailer-example/etc/mail/mailer.conf
@@ -0,0 +1,4 @@
1# replace sendmail with nullmailer
2sendmail /usr/local/libexec/nullmailer/sendmail
3send-mail /usr/local/libexec/nullmailer/sendmail
4mailq /usr/local/libexec/nullmailer/mailq
diff --git a/examples/nullmailer-example/etc/rc.conf b/examples/nullmailer-example/etc/rc.conf
new file mode 100755
index 0000000..e22f6f9
--- /dev/null
+++ b/examples/nullmailer-example/etc/rc.conf
@@ -0,0 +1,26 @@
1# Pretuned by German Engineers
2
3# No network interfaces in jails
4network_interfaces=""
5
6# Prevent rpc
7rpcbind_enable="NO"
8
9# Prevent loads of jails doing their cron jobs at the same time
10cron_flags="$cron_flags -J 15"
11
12# Prevent syslog to open sockets
13syslogd_flags="-ss"
14
15# Prevent sendmail to try to connect to localhost
16sendmail_enable="NO"
17sendmail_submit_enable="NO"
18sendmail_outbound_enable="NO"
19sendmail_msp_queue_enable="NO"
20
21# Bring up sshd, it takes some time and uses some entropy on first startup
22# sshd_enable="YES"
23
24# Enable nullmailer for external mail delivery
25nullmailer_enable="YES"
26