Example flavour for using nullmailer as sendmail-replacement inside a jail, routing outgoing mail over an extern mailserver.

This commit is contained in:
cryx 2010-01-24 21:22:39 +00:00
parent 9a3ccdcbb7
commit b78a01cb0e
4 changed files with 42 additions and 0 deletions

View File

@ -0,0 +1,4 @@
# replace sendmail with nullmailer
sendmail /usr/local/libexec/nullmailer/sendmail
send-mail /usr/local/libexec/nullmailer/sendmail
mailq /usr/local/libexec/nullmailer/mailq

View File

@ -0,0 +1,26 @@
# Pretuned by German Engineers
# No network interfaces in jails
network_interfaces=""
# Prevent rpc
rpcbind_enable="NO"
# Prevent loads of jails doing their cron jobs at the same time
cron_flags="$cron_flags -J 15"
# Prevent syslog to open sockets
syslogd_flags="-ss"
# Prevent sendmail to try to connect to localhost
sendmail_enable="NO"
sendmail_submit_enable="NO"
sendmail_outbound_enable="NO"
sendmail_msp_queue_enable="NO"
# Bring up sshd, it takes some time and uses some entropy on first startup
# sshd_enable="YES"
# Enable nullmailer for external mail delivery
nullmailer_enable="YES"

View File

@ -0,0 +1,10 @@
#!/bin/sh
#
# BEFORE: DAEMON
#
# ezjail flavour example
# install nullmailer port
cd /usr/ports/mail/nullmailer
yes | make install
hostname > /usr/local/etc/nullmailer/me

View File

@ -0,0 +1,2 @@
# example smtp route
# 127.0.0.1 smtp