home · contact · privacy
Add mail config to server postinstall script.
authorChristian Heller <c.heller@plomlompom.de>
Mon, 28 Sep 2015 21:37:25 +0000 (23:37 +0200)
committerChristian Heller <c.heller@plomlompom.de>
Mon, 28 Sep 2015 21:37:25 +0000 (23:37 +0200)
dotfiles_user_server/getmail/getmailrc [new file with mode: 0644]
dotfiles_user_server/procmailrc [new file with mode: 0644]
jessie_start_server.sh

diff --git a/dotfiles_user_server/getmail/getmailrc b/dotfiles_user_server/getmail/getmailrc
new file mode 100644 (file)
index 0000000..9e12bf1
--- /dev/null
@@ -0,0 +1,18 @@
+# plomlompom's getmail configuration
+
+# Where and how to get mail from.
+[retriever]
+type = SimplePOP3SSLRetriever
+server = mail.klostein.com
+username = c.heller@plomlompom.de
+
+# Let procmail take charge of incoming mail. Use user-defined rc file.
+[destination]
+type = MDA_external
+path = /usr/bin/procmail
+arguments = ("-m", "/home/plom/.procmailrc")
+
+# Delete retrieved mail from server.
+[options]
+#delete = true 
+delete = false
diff --git a/dotfiles_user_server/procmailrc b/dotfiles_user_server/procmailrc
new file mode 100644 (file)
index 0000000..1784ca1
--- /dev/null
@@ -0,0 +1,68 @@
+# plomlompom's procmail configuration
+
+MAILDIR=/home/plom/mail/current
+DEFAULT=$MAILDIR/inbox/
+
+:0
+* ^To: Bisdahin <termin@bisdahin.de>
+bisdahin/
+
+:0
+* ^From: Doodle <mailer@doodle.com>
+doodle/
+
+:0
+* ^From: FetLife <donotreply@fetlifemail\.com>
+fetlife/
+
+:0
+* ^From: Flattr <no-reply@flattr.com>
+flattr/
+
+:0
+* ^From: noreply@statusnetondemand.net
+identica/
+
+:0
+* ^From: .*@linkedin\.com
+linkedin/
+
+:0
+* ^To: .*forum@detrans.de
+ML-detrans/
+
+:0
+* ^To: .*liste-ff-medien@gruene-jugend.de
+ML-gj-medien/
+
+:0
+* ^To: wann-klettern-wir@googlegroups\.com
+ML-klettern/
+
+:0
+* ^Subject: \[schildower-kreis-info\]
+schildower_kreis/
+
+:0
+* ^Subject: .*\[reflect-info\]
+reflect-info/
+
+:0
+* ^To: .*st-berlin@smjg.org
+ML-smjg-berlin/
+
+:0
+* ^Subject: Logwatch for plomlompom\.com \(Linux\)
+serverlogs/
+
+:0
+* ^Subject: ***SPAM***
+spam-suspect/
+
+:0
+* ^From: Twitter 
+twitter/
+
+:0
+* ^From: Computerspielemuseum
+computerspielemuseum/
index c77c1749c5c6088e50f9f4bbc24661d5d260d506..6d5916a65600e9d2f6024408fc8ef8d2583dcacf 100755 (executable)
@@ -81,6 +81,9 @@ apt-get -y install openssh-server
 # Set up irssi.
 apt-get -y install irssi
 
+# Set up getmail und procmail.
+apt-get -y install getmail4 procmail
+
 # Clean up.
 rm jessie_start_server.sh