home · contact · privacy
Add /etc/aliases to server postinstall scripting.
authorChristian Heller <c.heller@plomlompom.de>
Tue, 6 Oct 2015 21:04:27 +0000 (23:04 +0200)
committerChristian Heller <c.heller@plomlompom.de>
Tue, 6 Oct 2015 21:04:27 +0000 (23:04 +0200)
jessie_start_server.sh
systemfiles/aliases [new file with mode: 0644]

index 1b143bfa24e1a98538a9976f70315859bb87ed08..0d12b31a560348052fd1b6a3110ddb7b65d8455f 100755 (executable)
@@ -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 (file)
index 0000000..9e35dd2
--- /dev/null
@@ -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