From: Ian Kelling Date: Sat, 11 Feb 2017 20:38:41 +0000 (-0800) Subject: fix mail setup for exim X-Git-Url: https://iankelling.org/git/?p=distro-setup;a=commitdiff_plain;h=c2bf18a9e27233fc9b57450455969fc9e53508b8 fix mail setup for exim --- diff --git a/mail-setup b/mail-setup index ead9423..b43bde4 100755 --- a/mail-setup +++ b/mail-setup @@ -144,6 +144,9 @@ EOF 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 @@ -152,27 +155,27 @@ else # exim. has debian specific stuff for now # 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 <