s service postfix reload
else # exim. has debian specific stuff for now
+ # debconf settings will not work if packages are already installed,
+ # such as on vps images.
+ pu exim4-daemon-light exim4-daemon-heavy exim4-config exim4-base exim4
# wording of question from dpkg-reconfigure exim4-config
# 1. internet site; mail is sent and received directly using SMTP
# 4. local delivery only; not on a network
# 5. no configuration at this time
#
- # only the one receiving host needs option 2, the rest can do option 1, but
- # that host might change, so we pick option 2 and later
- # don't set it up to receive anything. Also, only receiving host needs
- # dc_other_hostnames and beyond, but no harm.
+ # only the one receiving host needs option 2, the rest can do option
+ # 1, but that host might change, so we pick option 2 and later don't
+ # set it up to receive anything, because it has nothing in it's
+ # receiving password file and we make that mandatory. Also, only
+ # receiving host needs dc_other_hostnames and beyond, but no harm.
# note, another related setting is /etc/mailname, which
# is set to be $HOSTNAME.lan on stretch. this may need to be
# setup on other distros.
- #
+ # setting local_interfaces to empty listens on all interfaces.
+ # default is 127.0.0.1 ; ::1, so only listen to lo interface.
s debconf-set-selections <<EOF
exim4-config exim4/dc_eximconfig_configtype select mail sent by smarthost; received via SMTP or fetchmail
exim4-config exim4/dc_smarthost string $smarthost
exim4-config exim4/use_split_config boolean true
exim4-config exim4/dc_other_hostnames string mail.iankelling.org
+exim4-config exim4/dc_local_interfaces string
exim4-config exim4/dc_postmaster string ian
exim4-config exim4/dc_localdelivery select Maildir format in home directory
EOF
- # debconf settings will not work if packages are already installed,
- # such as on vps images.
- pu exim4-daemon-light exim4-daemon-heavy exim4-config exim4-base exim4
# light version does not have sasl auth support.
pi exim4-daemon-heavy