From: Christian Heller Date: Tue, 6 Oct 2015 21:04:27 +0000 (+0200) Subject: Add /etc/aliases to server postinstall scripting. X-Git-Url: https://plomlompom.com/repos/%7B%7Bprefix%7D%7D/static/%7B%7Bdb.prefix%7D%7D/task?a=commitdiff_plain;h=8c29a6a021ad1f2f977ff7bfdb3c6e57835aecf7;p=config Add /etc/aliases to server postinstall scripting. --- 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