Example flavour for using nullmailer as sendmail-replacement inside a jail, routing outgoing mail over an extern mailserver.
This commit is contained in:
parent
9a3ccdcbb7
commit
b78a01cb0e
4
examples/nullmailer-example/etc/mail/mailer.conf
Normal file
4
examples/nullmailer-example/etc/mail/mailer.conf
Normal 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
|
26
examples/nullmailer-example/etc/rc.conf
Executable file
26
examples/nullmailer-example/etc/rc.conf
Executable 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"
|
||||
|
10
examples/nullmailer-example/ezjail.flavour
Normal file
10
examples/nullmailer-example/ezjail.flavour
Normal 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
|
@ -0,0 +1,2 @@
|
||||
# example smtp route
|
||||
# 127.0.0.1 smtp
|
Loading…
x
Reference in New Issue
Block a user