--- /dev/null
+DEFAULT="$HOME/mail/new_inbox/"
+logfile "$HOME/.mailfilter.log"
# Force some variables for From: and Message-ID: generation.
set realname="Christian Heller"
-set from="c.heller@plomlompom.de"
-set hostname="plomlompom.de"
# Allow me to reply myself.
set reply_self = yes
# Set up openssh-server.
apt-get -y install openssh-server
-# Set up mail client system.
-apt-get -y install getmail4 procmail mutt
-su plom -c 'mkdir -p /home/plom/mail'
+# Set up mail system.
+apt-get -y install getmail4 procmail mutt postfix maildrop
+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}'
+cp config/systemfiles/mail.cf /etc/postfix/main.cf
# Set up screen.
apt-get -y install screen
--- /dev/null
+# /etc/postfix/main.cf
+
+# Use maildrop as MDA.
+mailbox_command = /usr/bin/maildrop
+
+# Restrictive relaying policy.
+smtpd_relay_restrictions = permit_mynetworks defer_unauth_destination
+
+# What domains to receive mail for: names of local server.
+mydestination = plomlompom.com, localhost
+
+# What clients to relay mail from: only local server.
+mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128
+
+# Paranoid maximum error notification.
+notify_classes=2bounce, bounce, data, delay, policy, protocol, resource, software
+
+# Use opendkim at given port as mail filter.
+#non_smtpd_milters = inet:localhost:12301
+#smtpd_milters = inet:localhost:12301