<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://jennyandlih.com" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>Mail</title>
 <link>http://jennyandlih.com/note-type/tech/mail</link>
 <description>The taxonomy view.</description>
 <language>en</language>
<item>
 <title>Using your ISP&#039;s SMTP server with postfix</title>
 <link>http://jennyandlih.com/using-your-isps-smtp-server-postfix</link>
 <description>&lt;p&gt;&lt;i&gt;Unlike esmtp, using your ISP&#039;s SMTP server with postfix will still allow local mail to be delivered.  Any hosts listed in the &lt;code&gt;mydestination&lt;/code&gt; option will be exempt from the SMTP relay.&lt;/i&gt;&lt;/p&gt;
&lt;h2&gt;Set up ISP info&lt;/h2&gt;
&lt;p&gt;Create &lt;code&gt;/etc/postfix/sasl_passwd&lt;/code&gt;, like so:&lt;br /&gt;
&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;mail.my-isp.org&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; username:password&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;Protect this file, since it has a plaintext password:&lt;/p&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;chown root.root /etc/postfix/sasl_passwd &amp;amp;&amp;amp; chmod 600 /etc/postfix/sasl_passwd&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;h2&gt;Create sasl_passwd DB file&lt;/h2&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;postmap hash:/etc/postfix/sasl_passwd&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://jennyandlih.com/using-your-isps-smtp-server-postfix&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://jennyandlih.com/using-your-isps-smtp-server-postfix#comments</comments>
 <category domain="http://jennyandlih.com/note-type/tech/mail">Mail</category>
 <pubDate>Sat, 01 Dec 2007 21:49:31 -0700</pubDate>
 <dc:creator>jenny</dc:creator>
 <guid isPermaLink="false">343 at http://jennyandlih.com</guid>
</item>
<item>
 <title>Setting up test user email accounts on a domU</title>
 <link>http://jennyandlih.com/setting-test-user-email-accounts-domu</link>
 <description>&lt;p&gt;&lt;b&gt;Replace &lt;i&gt;domU&lt;/i&gt; below with the hostname of your virtual machine and &lt;i&gt;username&lt;/i&gt; with your personal user account.&lt;/b&gt;&lt;/p&gt;
&lt;h2&gt;On domU&lt;/h2&gt;
&lt;h3&gt;Install a mail transfer agent and imap server&lt;/h3&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;sudo apt-get install postfix dovecot&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;h3&gt;Set up postfix&lt;/h3&gt;
&lt;p&gt;Create a /etc/postfix/virtual file with entries like so:&lt;br /&gt;
&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;@domU username@domU&lt;br /&gt;@localhost username@domU&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;Generate the virtual.db:&lt;br /&gt;
&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;postmap /etc/postfix/virtual&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;Tell postfix about your new virtual setup by adding the following to /etc/postfix/main.cf:&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;
&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://jennyandlih.com/setting-test-user-email-accounts-domu&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <comments>http://jennyandlih.com/setting-test-user-email-accounts-domu#comments</comments>
 <category domain="http://jennyandlih.com/note-type/tech/mail">Mail</category>
 <category domain="http://jennyandlih.com/note-type/tech/xen">Xen</category>
 <pubDate>Tue, 30 Oct 2007 06:03:36 -0600</pubDate>
 <dc:creator>jenny</dc:creator>
 <guid isPermaLink="false">250 at http://jennyandlih.com</guid>
</item>
<item>
 <title>Replacing sendmail with esmtp</title>
 <link>http://jennyandlih.com/replacing-sendmail-esmtp</link>
 <description>&lt;p&gt;esmtp is a drop-in replacement for sendmail.  If you&#039;re on DSL and everyone in the world blacklists your IP, you can set up esmtp with your DSL-provided SMTP information and continue sending mail as usual.&lt;/p&gt;
&lt;h2&gt;Install&lt;/h2&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;# apt-get install esmtp&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;h2&gt;Configure&lt;/h2&gt;
&lt;p&gt;Edit &lt;code&gt;/etc/esmtprc&lt;/code&gt;.  You&#039;ll probably just need to change hostname, username, and password.&lt;/p&gt;
&lt;h2&gt;Link it up&lt;/h2&gt;
&lt;p&gt;&lt;div class=&quot;codeblock&quot;&gt;&lt;code&gt;# ln -sf /usr/bin/esmtp /usr/sbin/sendmail&lt;/code&gt;&lt;/div&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href=&quot;http://jennyandlih.com/replacing-sendmail-esmtp&quot;&gt;read more&lt;/a&gt;&lt;/p&gt;</description>
 <category domain="http://jennyandlih.com/note-type/tech/mail">Mail</category>
 <pubDate>Sat, 20 Oct 2007 16:45:53 -0600</pubDate>
 <dc:creator>jenny</dc:creator>
 <guid isPermaLink="false">203 at http://jennyandlih.com</guid>
</item>
</channel>
</rss>
