summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormakefu <root@pigstarter.de>2014-06-18 14:50:43 +0200
committermakefu <root@pigstarter.de>2014-06-18 14:51:31 +0200
commit20d0e0d17fd784b31dff9b3f7ed46387acab947c (patch)
tree9332fe68c79bbbedc111368c1c85d66681b3b3b1
parentb120b7a856fd2f1bab21b1f03d10c469653b5695 (diff)
fix the blog post
-rw-r--r--content/posts/remote-spamassassin.rst26
1 files changed, 18 insertions, 8 deletions
diff --git a/content/posts/remote-spamassassin.rst b/content/posts/remote-spamassassin.rst
index 999e28c..081436d 100644
--- a/content/posts/remote-spamassassin.rst
+++ b/content/posts/remote-spamassassin.rst
@@ -1,16 +1,16 @@
Using spamassassin on a remote IMAP Host
-##################################
-:date: 2014-04-15 14:20
-:tags: spamassassin, mutt,offlineimap,imapfilter
+########################################
+:date: 2014-06-18 14:42
+:tags: spamassassin, mutt,offlineimap,imapfilter,imap,mutt
-I have the fortunate situation that i have hosted mail on a trusted second party (my father) so i do not have to deal with anything mail server related. I have a domain for receiving mails and i use a wildcard address to receive all the mails.
+I have the fortunate situation that i have hosted mail on a trusted second party (my father) so i do not have to deal with anything mail server related. I have a domain for receiving mails and i use a wildcard address to receive all the mails.
Until now
---------
... I had the following setup:
- 1. Wherever i sign up with a mail address i use something like mailto://<service-domain>@<my-domain>
+ 1. Wherever i sign up with a mail address i use something like mailto:<service-domain>@<my-domain>
2. imapfilter_ pre-sorts mails based on the signup address
3. offlineimap_ retrieves new mails and puts them in my $HOME/Mail
4. mutt_ + msmtp_ to read and send mails
@@ -23,13 +23,16 @@ Everybody seems to be using spamassassin and i always thought it can only be use
Installation and preparation:
+
.. code-block:: bash
#?/bin/sh
# install sa
aptitude install spamassassin pyzor
# enable SA, activate 'allow-tell'
- sed -i -e 's#ENABLED=.*#ENABLED=1#' -e 's#OPTIONS=.*#OPTIONS="-4 --create-prefs --max-children 5 --helper-home-dir --allow-tell"#' /etc/default/spamassassin
+ sed -i -e 's#ENABLED=.*#ENABLED=1#' \
+ -e 's#OPTIONS=.*#OPTIONS="-4 --create-prefs --max-children 5 --helper-home-dir --allow-tell"#' \
+ /etc/default/spamassassin
update-rc.d spamassassin enable
/etc/init.d/spamassassin start
@@ -38,6 +41,7 @@ Installation and preparation:
pip install isbg
Configuration and learning:
+
.. code-block:: bash
#?/bin/sh
@@ -71,7 +75,13 @@ Configuration and learning:
# create mutt macro to mark and move spam in your inbox
echo 'macro index,pager S "| sa-learn --spam\ns=INBOX.Spam\n\n" "file as Spam"' >> $HOME/.muttrc
- # optional: disbale the 'press any key to continue' :
+ # optional: disable the 'press any key to continue' :
# echo 'set wait_key = no' >> $HOME/.muttrc
-After learning my >9000 spam mails in the spam folder the spamassassin bayes filter was trained pretty well. Now i was able to remove all the 'spam' rules from .imapfilter/config.lua, and it felt GREAT.
+After learning my >9000 spam mails in the spam folder the spamassassin bayes filter was trained pretty well. Now i was able to remove all the 'spam' rules from .imapfilter/config.lua, and it felt **GREAT**.
+
+.. _imapfilter: https://github.com/lefcha/imapfilter
+.. _offlineimap: http://offlineimap.org/
+.. _mutt: http://www.mutt.org/
+.. _msmtp: http://msmtp.sourceforge.net/
+.. _isbg.py: https://github.com/ook/isbg/blob/master/isbg.py