<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
		>
<channel>
	<title>Comments on: Receiving Email with Rails</title>
	<atom:link href="http://jasonseifer.com/2009/04/24/receving-email-with-rails/feed" rel="self" type="application/rss+xml" />
	<link>http://jasonseifer.com/2009/04/24/receving-email-with-rails</link>
	<description></description>
	<lastBuildDate>Sat, 28 Jan 2012 23:16:05 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Jason</title>
		<link>http://jasonseifer.com/2009/04/24/receving-email-with-rails/comment-page-1#comment-4608</link>
		<dc:creator>Jason</dc:creator>
		<pubDate>Fri, 06 May 2011 17:33:23 +0000</pubDate>
		<guid isPermaLink="false">http://jasonseifer.com/?p=186#comment-4608</guid>
		<description>&lt;3 u more</description>
		<content:encoded><![CDATA[<p>&lt;3 u more</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ben</title>
		<link>http://jasonseifer.com/2009/04/24/receving-email-with-rails/comment-page-1#comment-4603</link>
		<dc:creator>ben</dc:creator>
		<pubDate>Thu, 05 May 2011 22:41:08 +0000</pubDate>
		<guid isPermaLink="false">http://jasonseifer.com/?p=186#comment-4603</guid>
		<description>&lt;3 u jason</description>
		<content:encoded><![CDATA[<p>&lt;3 u jason</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Walter Schreppers</title>
		<link>http://jasonseifer.com/2009/04/24/receving-email-with-rails/comment-page-1#comment-4434</link>
		<dc:creator>Walter Schreppers</dc:creator>
		<pubDate>Mon, 14 Feb 2011 10:40:38 +0000</pubDate>
		<guid isPermaLink="false">http://jasonseifer.com/?p=186#comment-4434</guid>
		<description>Thanks for this great tutorial! I will be using this in a project soon.
One question though, when you edit main.cf instead of using aliases I don&#039;t see you specify killerrobot anywhere? 

So this means all emails go to the mail_receiver.rb? So that is all emails from all domains running on this postfix ?

If this is so, it might also be an ideal place to do some ruby based spam filtering ;)

Anyway thanks for the great write up. Hope you can find the time to clearify where killerapp@yourdomain.com is used. Or maybe &#039;anything&#039;@yourdomain.com. Or how it can be modified to do this since I have about 10 domains running on 1 server, don&#039;t want all of their mails being processed by this system, just one or two of the used domains from my postfix/bind.

Kind regards,
W.</description>
		<content:encoded><![CDATA[<p>Thanks for this great tutorial! I will be using this in a project soon.<br />
One question though, when you edit main.cf instead of using aliases I don&#8217;t see you specify killerrobot anywhere? </p>
<p>So this means all emails go to the mail_receiver.rb? So that is all emails from all domains running on this postfix ?</p>
<p>If this is so, it might also be an ideal place to do some ruby based spam filtering ;)</p>
<p>Anyway thanks for the great write up. Hope you can find the time to clearify where <a href="mailto:killerapp@yourdomain.com">killerapp@yourdomain.com</a> is used. Or maybe &#8216;anything&#8217;@yourdomain.com. Or how it can be modified to do this since I have about 10 domains running on 1 server, don&#8217;t want all of their mails being processed by this system, just one or two of the used domains from my postfix/bind.</p>
<p>Kind regards,<br />
W.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Oma Gildner</title>
		<link>http://jasonseifer.com/2009/04/24/receving-email-with-rails/comment-page-1#comment-554</link>
		<dc:creator>Oma Gildner</dc:creator>
		<pubDate>Sat, 09 Oct 2010 14:51:01 +0000</pubDate>
		<guid isPermaLink="false">http://jasonseifer.com/?p=186#comment-554</guid>
		<description>Awesome blogging site! Now this technologies won&#039;t cease to surprise me personally. So anyways, please maintain the truly great work. If you have the time, I want to listen to your new thoughts on other related things to that. I have to say, my interest is piqued. Now whereis the subscribe option!</description>
		<content:encoded><![CDATA[<p>Awesome blogging site! Now this technologies won&#8217;t cease to surprise me personally. So anyways, please maintain the truly great work. If you have the time, I want to listen to your new thoughts on other related things to that. I have to say, my interest is piqued. Now whereis the subscribe option!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Devon Sonterre</title>
		<link>http://jasonseifer.com/2009/04/24/receving-email-with-rails/comment-page-1#comment-528</link>
		<dc:creator>Devon Sonterre</dc:creator>
		<pubDate>Sun, 05 Sep 2010 12:34:17 +0000</pubDate>
		<guid isPermaLink="false">http://jasonseifer.com/?p=186#comment-528</guid>
		<description>A wide variety of things cause to do this.</description>
		<content:encoded><![CDATA[<p>A wide variety of things cause to do this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: phegaro</title>
		<link>http://jasonseifer.com/2009/04/24/receving-email-with-rails/comment-page-1#comment-430</link>
		<dc:creator>phegaro</dc:creator>
		<pubDate>Wed, 13 Jan 2010 23:04:32 +0000</pubDate>
		<guid isPermaLink="false">http://jasonseifer.com/?p=186#comment-430</guid>
		<description>After looking at this we went with a model where we had a daemon that would just sit there and poll frequently to an IMAP server. We are using a google apps account to do this and it makes this much easier. You dont have to run your own mail server, you can just poll as frequent or non frequent as you want and if you really want instant you can turn on IMAP IDLE support and then you can get the mail as they come in. Since there is only one daemon running we no longer have this problem.</description>
		<content:encoded><![CDATA[<p>After looking at this we went with a model where we had a daemon that would just sit there and poll frequently to an IMAP server. We are using a google apps account to do this and it makes this much easier. You dont have to run your own mail server, you can just poll as frequent or non frequent as you want and if you really want instant you can turn on IMAP IDLE support and then you can get the mail as they come in. Since there is only one daemon running we no longer have this problem.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Me</title>
		<link>http://jasonseifer.com/2009/04/24/receving-email-with-rails/comment-page-1#comment-429</link>
		<dc:creator>Me</dc:creator>
		<pubDate>Wed, 13 Jan 2010 22:55:33 +0000</pubDate>
		<guid isPermaLink="false">http://jasonseifer.com/?p=186#comment-429</guid>
		<description>Is this true?</description>
		<content:encoded><![CDATA[<p>Is this true?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jose</title>
		<link>http://jasonseifer.com/2009/04/24/receving-email-with-rails/comment-page-1#comment-424</link>
		<dc:creator>Jose</dc:creator>
		<pubDate>Mon, 09 Nov 2009 23:42:14 +0000</pubDate>
		<guid isPermaLink="false">http://jasonseifer.com/?p=186#comment-424</guid>
		<description>I have several webapps needing this service hosted on the same server (each app receiving mail sent to a different domain).&lt;br&gt;&lt;br&gt;I&#039;m thinking of creating a separate Rails project just to do the mail receiving.  The domain info would be stored in the model so the webapps can separate their mail from each other.&lt;br&gt;&lt;br&gt;Does this sound reasonable?</description>
		<content:encoded><![CDATA[<p>I have several webapps needing this service hosted on the same server (each app receiving mail sent to a different domain).</p>
<p>I&#39;m thinking of creating a separate Rails project just to do the mail receiving.  The domain info would be stored in the model so the webapps can separate their mail from each other.</p>
<p>Does this sound reasonable?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: ɯɐɥɐɹƃ ǝıʌǝʇs</title>
		<link>http://jasonseifer.com/2009/04/24/receving-email-with-rails/comment-page-1#comment-425</link>
		<dc:creator>ɯɐɥɐɹƃ ǝıʌǝʇs</dc:creator>
		<pubDate>Thu, 05 Nov 2009 21:43:45 +0000</pubDate>
		<guid isPermaLink="false">http://jasonseifer.com/?p=186#comment-425</guid>
		<description>Great article. Only I would use an unless statement, rather than if and a boolean negation operator. more ruby like and more readable IMHO.&lt;br&gt;&lt;br&gt;i.e., &lt;br&gt;&lt;br&gt;unless mail.to.nil?&lt;br&gt;  BEANSTALK = Beanstalk::Pool.new([&#039;127.0.0.1:11300&#039;])&lt;br&gt;  …&lt;br&gt;end</description>
		<content:encoded><![CDATA[<p>Great article. Only I would use an unless statement, rather than if and a boolean negation operator. more ruby like and more readable IMHO.</p>
<p>i.e., </p>
<p>unless mail.to.nil?<br />  BEANSTALK = Beanstalk::Pool.new([&#39;127.0.0.1:11300&#39;])<br />  …<br />end</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: phegaro</title>
		<link>http://jasonseifer.com/2009/04/24/receving-email-with-rails/comment-page-1#comment-428</link>
		<dc:creator>phegaro</dc:creator>
		<pubDate>Fri, 25 Sep 2009 23:37:24 +0000</pubDate>
		<guid isPermaLink="false">http://jasonseifer.com/?p=186#comment-428</guid>
		<description>I thought the mail_receiver.rb file will be lauched for each email received and then will stick the email in the queue. I realize that it does not do much but it is creating a ruby process and letting it exit for each email. Is that a high overhead on a system?</description>
		<content:encoded><![CDATA[<p>I thought the mail_receiver.rb file will be lauched for each email received and then will stick the email in the queue. I realize that it does not do much but it is creating a ruby process and letting it exit for each email. Is that a high overhead on a system?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jasonseifer</title>
		<link>http://jasonseifer.com/2009/04/24/receving-email-with-rails/comment-page-1#comment-427</link>
		<dc:creator>jasonseifer</dc:creator>
		<pubDate>Fri, 25 Sep 2009 16:43:57 +0000</pubDate>
		<guid isPermaLink="false">http://jasonseifer.com/?p=186#comment-427</guid>
		<description>Doing it this way specifically avoids spinning up a new process each time as you&#039;re running it as a daemon.  You wind up having one process running constantly that processes each one as they come in.</description>
		<content:encoded><![CDATA[<p>Doing it this way specifically avoids spinning up a new process each time as you&#39;re running it as a daemon.  You wind up having one process running constantly that processes each one as they come in.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: phegaro</title>
		<link>http://jasonseifer.com/2009/04/24/receving-email-with-rails/comment-page-1#comment-426</link>
		<dc:creator>phegaro</dc:creator>
		<pubDate>Fri, 25 Sep 2009 12:40:10 +0000</pubDate>
		<guid isPermaLink="false">http://jasonseifer.com/?p=186#comment-426</guid>
		<description>Some of the other information that i have read talks about how doing it this way means that a new ruby process is started and killed for each email that comes into the system. According to the math above that would mean that you have about 833 processes being created/deleted per minute on the server. Are you guys having issues with that model? &lt;br&gt;&lt;br&gt;It seems the polling model avoids this but not sure if the tradeoff for less processes is worth the loss in responsiveness and can we just poll more often to get rid of the issue? Like once ever minute?</description>
		<content:encoded><![CDATA[<p>Some of the other information that i have read talks about how doing it this way means that a new ruby process is started and killed for each email that comes into the system. According to the math above that would mean that you have about 833 processes being created/deleted per minute on the server. Are you guys having issues with that model? </p>
<p>It seems the polling model avoids this but not sure if the tradeoff for less processes is worth the loss in responsiveness and can we just poll more often to get rid of the issue? Like once ever minute?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: morgancurrie</title>
		<link>http://jasonseifer.com/2009/04/24/receving-email-with-rails/comment-page-1#comment-340</link>
		<dc:creator>morgancurrie</dc:creator>
		<pubDate>Fri, 24 Apr 2009 12:36:06 +0000</pubDate>
		<guid isPermaLink="false">http://jasonseifer.com/?p=186#comment-340</guid>
		<description>how do you guys deal with stripping the quoted of the reply?</description>
		<content:encoded><![CDATA[<p>how do you guys deal with stripping the quoted of the reply?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: technoweenie</title>
		<link>http://jasonseifer.com/2009/04/24/receving-email-with-rails/comment-page-1#comment-339</link>
		<dc:creator>technoweenie</dc:creator>
		<pubDate>Fri, 24 Apr 2009 12:33:55 +0000</pubDate>
		<guid isPermaLink="false">http://jasonseifer.com/?p=186#comment-339</guid>
		<description>Piping emails to a ruby process can present some scaling issues.  Each email is basically another ruby process that loads rubygems, tmail, mms2r, etc.  It&#039;s probably better to just have postfix dump emails to a maildir and have tmail read them in a little ruby daemon: &lt;a href=&quot;http://tmail.rubyforge.org/rdoc/classes/TMail/Maildir.html&quot; rel=&quot;nofollow&quot;&gt;http://tmail.rubyforge.org/rdoc/classes/TMail/M...&lt;/a&gt; .  I handled all of our email processing fine with ruby pipes for awhile.  But when I moved to our current host, they were quick to suggest using a maildir.&lt;br&gt;&lt;br&gt;I didn&#039;t know about mms2r, but I&#039;ll take a look at that.  I think I parse the mail parts manually with tmail right now, blah :)</description>
		<content:encoded><![CDATA[<p>Piping emails to a ruby process can present some scaling issues.  Each email is basically another ruby process that loads rubygems, tmail, mms2r, etc.  It&#39;s probably better to just have postfix dump emails to a maildir and have tmail read them in a little ruby daemon: <a href="http://tmail.rubyforge.org/rdoc/classes/TMail/Maildir.html" rel="nofollow">http://tmail.rubyforge.org/rdoc/classes/TMail/M&#8230;</a> .  I handled all of our email processing fine with ruby pipes for awhile.  But when I moved to our current host, they were quick to suggest using a maildir.</p>
<p>I didn&#39;t know about mms2r, but I&#39;ll take a look at that.  I think I parse the mail parts manually with tmail right now, blah :)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: giles bowkett</title>
		<link>http://jasonseifer.com/2009/04/24/receving-email-with-rails/comment-page-1#comment-338</link>
		<dc:creator>giles bowkett</dc:creator>
		<pubDate>Fri, 24 Apr 2009 12:14:59 +0000</pubDate>
		<guid isPermaLink="false">http://jasonseifer.com/?p=186#comment-338</guid>
		<description>hey jason - also check out Astrotrain on github. it receives e-mail and issues xmpp or http in response. blatant plug for my employer but it&#039;s what enables Tender to turn e-mails into support discussions. like how Tripit turns e-mails into itineraries automagically.</description>
		<content:encoded><![CDATA[<p>hey jason &#8211; also check out Astrotrain on github. it receives e-mail and issues xmpp or http in response. blatant plug for my employer but it&#39;s what enables Tender to turn e-mails into support discussions. like how Tripit turns e-mails into itineraries automagically.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

