summaryrefslogtreecommitdiff
path: root/examples
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
parent9a3ccdcbb7a5c68897ae5a0ae28ee34c935a3e3d (diff)
Example flavour for using nullmailer as sendmail-replacement inside a jail, routing outgoing mail over an extern mailserver.
Diffstat (limited to 'examples')
-rw-r--r--examples/nullmailer-example/etc/mail/mailer.conf4
-rwxr-xr-xexamples/nullmailer-example/etc/rc.conf26
-rw-r--r--examples/nullmailer-example/ezjail.flavour10
-rw-r--r--examples/nullmailer-example/usr/local/etc/nullmailer/remotes2
4 files changed, 42 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
diff --git a/examples/nullmailer-example/ezjail.flavour b/examples/nullmailer-example/ezjail.flavour
new file mode 100644
index 0000000..dc8c16e
--- /dev/null
+++ b/examples/nullmailer-example/ezjail.flavour
@@ -0,0 +1,10 @@
1#!/bin/sh
2#
3# BEFORE: DAEMON
4#
5# ezjail flavour example
6
7# install nullmailer port
8cd /usr/ports/mail/nullmailer
9yes | make install
10hostname > /usr/local/etc/nullmailer/me
diff --git a/examples/nullmailer-example/usr/local/etc/nullmailer/remotes b/examples/nullmailer-example/usr/local/etc/nullmailer/remotes
new file mode 100644
index 0000000..052f6c8
--- /dev/null
+++ b/examples/nullmailer-example/usr/local/etc/nullmailer/remotes
@@ -0,0 +1,2 @@
1# example smtp route
2# 127.0.0.1 smtp