<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Linux etc. &#187; Mail setup</title>
	<atom:link href="http://promberger.info/linux/category/mail-setup/feed/" rel="self" type="application/rss+xml" />
	<link>http://promberger.info/linux</link>
	<description>my outsourced memory for your perusal</description>
	<lastBuildDate>Thu, 08 Sep 2011 11:06:06 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>msmtprc settings for King&#8217;s College London email account</title>
		<link>http://promberger.info/linux/2009/09/04/msmtprc-settings-for-kings-college-london-email-account/</link>
		<comments>http://promberger.info/linux/2009/09/04/msmtprc-settings-for-kings-college-london-email-account/#comments</comments>
		<pubDate>Fri, 04 Sep 2009 16:55:44 +0000</pubDate>
		<dc:creator>Marianne</dc:creator>
				<category><![CDATA[Mail setup]]></category>
		<category><![CDATA[mutt]]></category>

		<guid isPermaLink="false">http://promberger.info/linux/?p=246</guid>
		<description><![CDATA[Just to maybe spare someone some time. There&#8217;s a pdf on the KCL website with all the information you need, but it&#8217;s even easier just to cut and paste. Note: account kcl Can be something else, especially, can be &#8220;default&#8221; if you want it to be the default. Replace &#8220;USERNAME&#8221; with your username, but make [...]]]></description>
			<content:encoded><![CDATA[<p>Just to maybe spare someone some time. There&#8217;s a <a href="http://www.kcl.ac.uk/content/1/c6/04/30/94/GenericSettings.pdf">pdf on the KCL website</a> with all the information you need, but it&#8217;s even easier just to cut and paste.</p>
<p>Note: </p>
<ul>
<li><code>account kcl</code> Can be something else, especially, can be &#8220;default&#8221; if you want it to be the default.</li>
<li>Replace &#8220;USERNAME&#8221; with your username, but make sure you leave the preceding <code>kclad\</code> in there.</li>
<li>replace PASSWORD</li>
<li><code>tls_trust_file</code> can vary depending on your system. This should work if you use Debian or Ubuntu and have the package <code>ca-certificates</code> installed. If you must, replace with <code>tls_certcheck off</code></li>
<li><code>logfile</code> setting is optional, but recommended</li>
</ul>
<pre>
account kcl
host kclsmtp.kcl.ac.uk
user kclad\USERNAME
password PASSWORD
auth on
tls
tls_trust_file /etc/ssl/certs/ca-certificates.crt
port 587
logfile ~/.msmtp-log
</pre>
]]></content:encoded>
			<wfw:commentRss>http://promberger.info/linux/2009/09/04/msmtprc-settings-for-kings-college-london-email-account/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Maintaining a whitelist of e-mail senders with local mutt and procmail on a server</title>
		<link>http://promberger.info/linux/2009/06/08/maintaining-a-whitelist-of-e-mail-senders-with-local-mutt-and-procmail/</link>
		<comments>http://promberger.info/linux/2009/06/08/maintaining-a-whitelist-of-e-mail-senders-with-local-mutt-and-procmail/#comments</comments>
		<pubDate>Mon, 08 Jun 2009 20:00:49 +0000</pubDate>
		<dc:creator>Marianne</dc:creator>
				<category><![CDATA[Mail setup]]></category>
		<category><![CDATA[mutt]]></category>
		<category><![CDATA[procmail]]></category>

		<guid isPermaLink="false">http://promberger.info/linux/?p=175</guid>
		<description><![CDATA[I run mutt locally on several different computers. OfflineIMAP automatically synchronizes the mailboxes, and that is a huge benefit. But I still had to set up a system that synchronizes my address books and mail settings. I&#8217;ve forgotten what exactly I am doing to accomplish this, and I now think there&#8217;s a small mistake somewhere [...]]]></description>
			<content:encoded><![CDATA[<p>I run mutt locally on several different computers. <a href="http://software.complete.org/software/projects/show/offlineimap">OfflineIMAP</a> automatically synchronizes the mailboxes, and that is a huge benefit. But I still had to set up a system that synchronizes my address books and mail settings. I&#8217;ve forgotten what exactly I am doing to accomplish this, and I now think there&#8217;s a small mistake somewhere that sometimes causes me to lose e-mail addresses from my address book. So I&#8217;ll write a little series in the category <a href="http://promberger.info/linux/category/mail-setup/">mail setup</a> to document this on this blog, step by step, as I have time. This is the first instalment.</p>
<p>I maintain a whitelist of e-mail addresses to save spamassassin some work and myself some false positives.<br />
To do this, I have a script that I run periodically (using crontab). The relevant lines of this script are (there&#8217;s some more stuff, since I also use it to blacklist things):</p>
<pre>
#!/bin/bash
ALIASFILE=$HOME/.mutt/.mutt.aliases
WHITELISTMAN=$HOME/.mutt/my_manual_whitelist
WHITELIST=$HOME/.mutt/my_whitelist
grep @ $ALIASFILE | cut -d "<" -f 2  | cut -d ">" -f 1 | grep -v " " > $WHITELIST
cat $WHITELISTMAN >> $WHITELIST
ping -c1 colobus.isomerica.net > /dev/null 2>&#038;1
if [ $? != 0 ] ; then
  exit 0
else
  rsync $WHITELIST isomerica:.procmail/my_whitelist
fi
</pre>
<p>The script just gets the e-mail addresses from my mutt alias file, combines this with any addresses from a manually maintained alias file, then uploads that to the server. On the server, the spam handling recipe in <code>~/.procmailrc</code> does not pipe mail from these addresses to spamassassin, but everything else:</p>
<pre>
 :0fw
* ! ? (echo "$FROM" | $FGREP -f $WHITELIST)
| spamc
:0:
* ^X-spam-flag: yes
$HOME/.maildir/inbox/.Junk/
</pre>
]]></content:encoded>
			<wfw:commentRss>http://promberger.info/linux/2009/06/08/maintaining-a-whitelist-of-e-mail-senders-with-local-mutt-and-procmail/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

