diff options
| author | cryx <cryx@h3q.com> | 2010-01-24 21:22:39 +0000 |
|---|---|---|
| committer | cryx <cryx@h3q.com> | 2010-01-24 21:22:39 +0000 |
| commit | b78a01cb0e2c959e4753723e940a3807c0381a8e (patch) | |
| tree | 685bdf06220bd5ac876dd84d4a7bd8997baf4c37 /examples | |
| parent | 9a3ccdcbb7a5c68897ae5a0ae28ee34c935a3e3d (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.conf | 4 | ||||
| -rwxr-xr-x | examples/nullmailer-example/etc/rc.conf | 26 | ||||
| -rw-r--r-- | examples/nullmailer-example/ezjail.flavour | 10 | ||||
| -rw-r--r-- | examples/nullmailer-example/usr/local/etc/nullmailer/remotes | 2 |
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 | ||
| 2 | sendmail /usr/local/libexec/nullmailer/sendmail | ||
| 3 | send-mail /usr/local/libexec/nullmailer/sendmail | ||
| 4 | mailq /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 | ||
| 4 | network_interfaces="" | ||
| 5 | |||
| 6 | # Prevent rpc | ||
| 7 | rpcbind_enable="NO" | ||
| 8 | |||
| 9 | # Prevent loads of jails doing their cron jobs at the same time | ||
| 10 | cron_flags="$cron_flags -J 15" | ||
| 11 | |||
| 12 | # Prevent syslog to open sockets | ||
| 13 | syslogd_flags="-ss" | ||
| 14 | |||
| 15 | # Prevent sendmail to try to connect to localhost | ||
| 16 | sendmail_enable="NO" | ||
| 17 | sendmail_submit_enable="NO" | ||
| 18 | sendmail_outbound_enable="NO" | ||
| 19 | sendmail_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 | ||
| 25 | nullmailer_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 | ||
| 8 | cd /usr/ports/mail/nullmailer | ||
| 9 | yes | make install | ||
| 10 | hostname > /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 | ||
