From: Christian Heller Date: Mon, 28 Sep 2015 21:37:25 +0000 (+0200) Subject: Add mail config to server postinstall script. X-Git-Url: https://plomlompom.com/repos/%7B%7Bdb.prefix%7D%7D/%7B%7B%20web_path%20%7D%7D/decks/%7B%7Bprefix%7D%7D/condition?a=commitdiff_plain;h=1cea6c46e0845f8bc7e15c50fddad34a38baac79;p=config Add mail config to server postinstall script. --- diff --git a/dotfiles_user_server/getmail/getmailrc b/dotfiles_user_server/getmail/getmailrc new file mode 100644 index 0000000..9e12bf1 --- /dev/null +++ b/dotfiles_user_server/getmail/getmailrc @@ -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 index 0000000..1784ca1 --- /dev/null +++ b/dotfiles_user_server/procmailrc @@ -0,0 +1,68 @@ +# plomlompom's procmail configuration + +MAILDIR=/home/plom/mail/current +DEFAULT=$MAILDIR/inbox/ + +:0 +* ^To: Bisdahin +bisdahin/ + +:0 +* ^From: Doodle +doodle/ + +:0 +* ^From: FetLife +fetlife/ + +:0 +* ^From: Flattr +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/ diff --git a/jessie_start_server.sh b/jessie_start_server.sh index c77c174..6d5916a 100755 --- a/jessie_start_server.sh +++ b/jessie_start_server.sh @@ -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