From 8c29a6a021ad1f2f977ff7bfdb3c6e57835aecf7 Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Tue, 6 Oct 2015 23:04:27 +0200 Subject: [PATCH] Add /etc/aliases to server postinstall scripting. --- jessie_start_server.sh | 2 ++ systemfiles/aliases | 17 +++++++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 systemfiles/aliases diff --git a/jessie_start_server.sh b/jessie_start_server.sh index 1b143bf..0d12b31 100755 --- a/jessie_start_server.sh +++ b/jessie_start_server.sh @@ -87,6 +87,8 @@ apt-get -y install openssh-server # Set up mail system. DEBIAN_FRONTEND=noninteractive apt-get -y install getmail4 procmail mutt postfix maildrop cp config/systemfiles/main.cf /etc/postfix/main.cf +cp config/systemfiles/aliases /etc/aliases +service postfix restart su plom -c 'mkdir -p /home/plom/mail/' su plom -c 'mkdir -p /home/plom/mail/inbox/{cur,new,tmp}' su plom -c 'mkdir -p /home/plom/mail/new_inbox/{cur,new,tmp}' diff --git a/systemfiles/aliases b/systemfiles/aliases new file mode 100644 index 0000000..9e35dd2 --- /dev/null +++ b/systemfiles/aliases @@ -0,0 +1,17 @@ +# /etc/aliases + +# As per RFC 2142. + +mailer-daemon: postmaster +postmaster: root +nobody: root +hostmaster: root +usenet: root +news: root +webmaster: root +www: root +ftp: root +abuse: root +noc: root +security: root +root: plom -- 2.30.2