<?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>/dev/caffeine &#187; email</title>
	<atom:link href="http://devcaffeine.com/categories/email/feed/" rel="self" type="application/rss+xml" />
	<link>http://devcaffeine.com</link>
	<description>anything worth taking seriously is worth making fun of</description>
	<lastBuildDate>Thu, 24 Sep 2009 20:50:49 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Virtual List Domains and Reply-To</title>
		<link>http://devcaffeine.com/2006/12/01/virtual-list-domains-and-reply-to/</link>
		<comments>http://devcaffeine.com/2006/12/01/virtual-list-domains-and-reply-to/#comments</comments>
		<pubDate>Fri, 01 Dec 2006 18:56:45 +0000</pubDate>
		<dc:creator>cflipse</dc:creator>
				<category><![CDATA[email]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://devcaffeine.com/2006/12/01/virtual-list-domains-and-reply-to/</guid>
		<description><![CDATA[I discovered something &#8220;interesting&#8221; about my mailing list setup and how it&#8217;s interpreted by some mail readers.  When I was trying to debug it, nothing came up, so I&#8217;m blogging here to leave a record.  Hopefully, the search engines manage to pick it up.  This is a bit tricky, however&#8230;
The setup:  [...]]]></description>
			<content:encoded><![CDATA[<p>I discovered something &#8220;interesting&#8221; about my mailing list setup and how it&#8217;s interpreted by some mail readers.  When I was trying to debug it, nothing came up, so I&#8217;m blogging here to leave a record.  Hopefully, the search engines manage to pick it up.  This is a bit tricky, however&#8230;</p>
<p>The setup:  I run just under a dozen mailing lists for <a href="http://athas.org/">athas.org</a>.  The server they live on is the same one that this blog, and several other domains, are hosted on.  Because I&#8217;m hosting several domains, and I don&#8217;t want email bleed (because they&#8217;re not all mine), I set things up more or less as described in <a href="http://workaround.org/articles/ispmail-sarge/">this</a> howto.  So, my mailserver operates off the idea of virtual domains.  There&#8217;s a special virtual domain, lists.athas.org &#8212; all emails sent to this domain are piped into <a href="http://mailman.org/">mailman</a>.  It&#8217;s worked out pretty cleanly, and by doing it that way, my mailing lists are well-deliniated, and I don&#8217;t have to update aliases at the mail-server level every time I add or remove a mailing list.</p>
<p>The problem cropped up when I got an email from one of my list subscribers who was using <a href="http://mail.yahoo.com/">yahoo </a>mail.  It turns out that he was getting bounces whenever he tried to respond to a mail from the list.  So, I checked out my logs, and found his bounce in my postfix logs.  Turns out that he was trying to send email to <em>mochajava</em>.athas.org instead of <em>lists.</em>athas.org.  Mochajava is the &#8220;real&#8221; name of the server.</p>
<p>I had him forward me a copy of a mail from that list.  Reply-To header set correctly.   So, I know <em>what</em> the problem is:  His mail user agent was sending an email to the wrong address.  I just had no idea <em>why</em>.  Looking through the headers, the only instance of &#8220;mochajava.athas.org&#8221; I found was in the Recieved headers.</p>
<p>It wasn&#8217;t until a couple of weeks later that I realized what it was.  lists.athas.org was registered as a CNAME alias for mochajava.athas.org in my DNS setup.  So, a ns-lookup gives back something like:</p>
<blockquote><p>Non-authoritative answer:<br />
Name:    mochajava.athas.org<br />
Address:  65.78.231.230<br />
Aliases:  lists.athas.org</p></blockquote>
<p>So, I think what happened was this:  Yahoo mail client does a DNS lookup to ensure that the domain in the reply-to actually exists &#8212; makes sense from a user-friendly sort of approach &#8212; and, upon seeing that the given domain is an alias, replaces the name wih the host&#8217;s cannonical name.  Unfortunately, my mail server&#8217;s setup  depended on the use of that alias to direct emails to the list server software &#8230;</p>
<p>The solution was simple:  Change the DNS entry.  Now, lists.athas.org, instead of being a CNAME alias, is a top-level A record.  Everything works smoothly now, and replys to the list from my yahoo users actually get sent to the list.</p>
<p>Here&#8217;s hoping this helps someone spend less time scratching their heads than I had to&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://devcaffeine.com/2006/12/01/virtual-list-domains-and-reply-to/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
