<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"
    xmlns:dc="http://purl.org/dc/elements/1.1/"
     xmlns:admin="http://webns.net/mvcb/"
     xmlns:content="http://purl.org/rss/1.0/modules/content/"
     xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
	<channel> 

	<title>Comments on: Help me punt email before it wastes postgreys time.</title>
	<link>http://ask.metafilter.com/77601/Help-me-punt-email-before-it-wastes-postgreys-time/</link>
	<description>Comments on Ask MetaFilter post Help me punt email before it wastes postgreys time.</description>
	<pubDate>Sat, 01 Dec 2007 17:59:19 -0800</pubDate>
	<lastBuildDate>Sat, 01 Dec 2007 17:59:19 -0800</lastBuildDate>
	<language>en-us</language>
	<docs>http://blogs.law.harvard.edu/tech/rss</docs>
	<ttl>60</ttl>

	<item>
		<title>Question: Help me punt email before it wastes postgreys time.</title>
		<link>http://ask.metafilter.com/77601/Help-me-punt-email-before-it-wastes-postgreys-time</link>	
		<description>Spammy spammers sending crap to my mail server are wasting time and resources. I&apos;m using postfix &amp;amp; postgrey (greylisting) on this new server, but.... &lt;br /&gt;&lt;br /&gt; See the log section here:&lt;br&gt;
&lt;br&gt;
Nov 30 19:34:43 heap postfix/smtpd[27141]: NOQUEUE: reject: RCPT from unknown[201.240.117.167]: 450 4.7.1 &lt;7&gt;: Recipient address rejected: Greylisted for 18 seconds (see http://isg.ee.ethz.ch/tools/postgrey...pbp.net.html); from=&lt;illegalsn2&gt; to=&lt;7&gt; proto=ESMTP helo=&lt;client&gt;&lt;br&gt;
Nov 30 19:34:43 heap postfix/smtpd[27141]: NOQUEUE: reject: RCPT from unknown[201.240.117.167]: 450 4.7.1 &lt;7&gt;: Recipient address rejected: Greylisted for 18 seconds (see http://isg.ee.ethz.ch/tools/postgrey...pbp.net.html); from=&lt;illegalsn2&gt; to=&lt;7&gt; proto=ESMTP helo=&lt;client&gt;&lt;br&gt;
Nov 30 19:34:43 heap postfix/smtpd[27141]: NOQUEUE: reject: RCPT from unknown[201.240.117.167]: 450 4.7.1 &lt;7&gt;: Recipient address rejected: Greylisted for 18 seconds (see http://isg.ee.ethz.ch/tools/postgrey...pbp.net.html); from=&lt;illegalsn2&gt; to=&lt;7&gt; proto=ESMTP helo=&lt;client&gt;&lt;br&gt;
&lt;br&gt;
--&lt;br&gt;
Postfix is greylisting things for addresses that do not exist on my system. This is the first box that I&apos;ve used greylisting on. With the previous server, I had Postfix to use a relay_recipient_maps file and that file contained a list of valid email addresses. Anything else was rejected.&lt;br&gt;
&lt;br&gt;
While postfix is still rejecting the addresses that are invalid, Postgrey is also getting involved. I&apos;d like to have Postfix just reject the invalid addresses right off the bat before Postgrey gets involved.&lt;br&gt;
&lt;br&gt;
In main.cf:&lt;br&gt;
relay_recipient_maps = hash:/etc/postfix/valid_emails&lt;br&gt;
&lt;br&gt;
smtpd_recipient_restrictions = &lt;br&gt;
reject_unauth_pipelining, &lt;br&gt;
permit_mynetworks, &lt;br&gt;
permit_sasl_authenticated, &lt;br&gt;
reject_non_fqdn_recipient,&lt;br&gt;
reject_unauth_destination, &lt;br&gt;
check_policy_service inet:127.0.0.1:60000,&lt;br&gt;
check_recipient_access hash:/etc/postfix/recipient_checks,&lt;br&gt;
check_sender_access hash:/etc/postfix/sender_access,&lt;br&gt;
check_client_access hash:/etc/postfix/banned_servers,&lt;br&gt;
permit&lt;br&gt;
&lt;br&gt;
--&lt;br&gt;
&lt;br&gt;
I really don&apos;t want to sign up for the Postfix-users mailing list just to ask one question, and I have already searched Google for this issue to no avail. &lt;br&gt;
&lt;br&gt;
Anybody have Postfix-foo that can help me? I believe it might be a matter of re-ordering some of the content checks, but I&apos;m not too sure.&lt;br&gt;
__________________&lt;/7&gt;&lt;/illegalsn2&gt;&lt;/7&gt;&lt;/client&gt;&lt;/7&gt;&lt;/illegalsn2&gt;&lt;/7&gt;&lt;/client&gt;&lt;/7&gt;&lt;/illegalsn2&gt;&lt;/7&gt;&lt;/client&gt;</description>
		<guid isPermaLink="false">post:ask.metafilter.com,2007:site.77601</guid>
		<pubDate>Sat, 01 Dec 2007 17:50:30 -0800</pubDate>
		<dc:creator>drstein</dc:creator>
		
			<category>postfix</category>
		
			<category>greylisting</category>
		
	</item> <item>
		<title>By: grouse</title>
		<link>http://ask.metafilter.com/77601/Help-me-punt-email-before-it-wastes-postgreys-time#1152816</link>	
		<description>Can&apos;t answer your main question, but regarding this:&lt;br&gt;
&lt;br&gt;
&lt;em&gt;I really don&apos;t want to sign up for the Postfix-users mailing list just to ask one question&lt;/em&gt;&lt;br&gt;
&lt;br&gt;
Gmane is great for these situations.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2007:site.77601-1152816</guid>
		<pubDate>Sat, 01 Dec 2007 17:59:19 -0800</pubDate>
		<dc:creator>grouse</dc:creator>
	</item><item>
		<title>By: drstein</title>
		<link>http://ask.metafilter.com/77601/Help-me-punt-email-before-it-wastes-postgreys-time#1152848</link>	
		<description>Hah! I had completely forgotten about Gmane. It reminded me that I have a usenet account, and there&apos;s still an active postfix newsgroup. I&apos;ll try there too. :-)</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2007:site.77601-1152848</guid>
		<pubDate>Sat, 01 Dec 2007 18:17:23 -0800</pubDate>
		<dc:creator>drstein</dc:creator>
	</item><item>
		<title>By: tarheelcoxn</title>
		<link>http://ask.metafilter.com/77601/Help-me-punt-email-before-it-wastes-postgreys-time#1152857</link>	
		<description>Why would you want to cut postgrey out? The whole idea is that your greylisting daemon is cheap as far as system resources are concerned, no? Put another way, is this really your bottleneck?</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2007:site.77601-1152857</guid>
		<pubDate>Sat, 01 Dec 2007 18:26:26 -0800</pubDate>
		<dc:creator>tarheelcoxn</dc:creator>
	</item><item>
		<title>By: paulsc</title>
		<link>http://ask.metafilter.com/77601/Help-me-punt-email-before-it-wastes-postgreys-time#1152929</link>	
		<description>Consider setting up a &lt;a href=&quot;http://www.iks-jena.de/mitarb/lutz/usenet/teergrube.en.html&quot;&gt;teergrube&lt;/a&gt;. My experience is that high volume spammers will quickly quit bothering you :-)</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2007:site.77601-1152929</guid>
		<pubDate>Sat, 01 Dec 2007 19:51:31 -0800</pubDate>
		<dc:creator>paulsc</dc:creator>
	</item><item>
		<title>By: drstein</title>
		<link>http://ask.metafilter.com/77601/Help-me-punt-email-before-it-wastes-postgreys-time#1152992</link>	
		<description>&quot;Why would you want to cut postgrey out? The whole idea is that your greylisting daemon is cheap as far as system resources are concerned, no? Put another way, is this really your bottleneck?&quot;&lt;br&gt;
&lt;br&gt;
Yes, it is. Postgrey shouldn&apos;t be greylisting these addresses because these emails (that you see in the logs) are destined for addresses that do not exist on my system.&lt;br&gt;
&lt;br&gt;
Basically, Postgrey is processing crap that should be punted right at the initial SMTP conversation. I want to stop that from happening. If it&apos;s destined for an invalid address, it should not even get to postgrey at all.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2007:site.77601-1152992</guid>
		<pubDate>Sat, 01 Dec 2007 20:49:43 -0800</pubDate>
		<dc:creator>drstein</dc:creator>
	</item><item>
		<title>By: Malor</title>
		<link>http://ask.metafilter.com/77601/Help-me-punt-email-before-it-wastes-postgreys-time#1153021</link>	
		<description>Well, in checking the documentation, it looks like it must check relay_recipient_maps after it goes through the full SMTP verification process, meaning that you&apos;ll get a postgrey message on every one of them.   I don&apos;t see any way, in a quick perusal, to change the order of these checks. &lt;br&gt;
&lt;br&gt;
This is a bit odd, because normally recipient checks are done in the smtpd_recipient_restrictions section.  They&apos;re done in the order you list them, which is important to many sysadmins, including you.  It&apos;s very odd to me that they would add this other feature and do it with an entirely separate command that&apos;s not part of smtpd_recipient_restrictions.  Basically, it looks like they didn&apos;t think it through.  &lt;br&gt;
&lt;br&gt;
This might be worth subscribing to the list and asking about... this sure looks brain dead to me, which is unusual for Postfix.</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2007:site.77601-1153021</guid>
		<pubDate>Sat, 01 Dec 2007 21:35:54 -0800</pubDate>
		<dc:creator>Malor</dc:creator>
	</item><item>
		<title>By: drstein</title>
		<link>http://ask.metafilter.com/77601/Help-me-punt-email-before-it-wastes-postgreys-time#1162702</link>	
		<description>&lt;a href=&quot;http://lists.puremagic.com/pipermail/greylist-users/2005-March/000879.html&quot;&gt;This post&lt;/a&gt; had the answer.&lt;br&gt;
&lt;br&gt;
I finally found it. heh.&lt;br&gt;
&lt;br&gt;
&amp;gt; smtpd_recipient_restrictions =&lt;br&gt;
&amp;gt;         permit_mynetworks,&lt;br&gt;
&amp;gt;         permit_sasl_authenticated,&lt;br&gt;
&amp;gt;         check_sender_access,&lt;br&gt;
&amp;gt;         hash:/etc/postfix/sender_access,&lt;br&gt;
&amp;gt;         reject_unauth_destination,&lt;br&gt;
&lt;br&gt;
Add reject_unlisted_recipient here&lt;br&gt;
&lt;br&gt;
&amp;gt;         check_policy_service inet:127.0.0.1:60000,&lt;br&gt;
&amp;gt;         reject_rbl_client sbl-xbl.spamhaus.org,&lt;br&gt;
&amp;gt;         check_relay_domains</description>
		<guid isPermaLink="false">comment:ask.metafilter.com,2007:site.77601-1162702</guid>
		<pubDate>Mon, 10 Dec 2007 13:22:19 -0800</pubDate>
		<dc:creator>drstein</dc:creator>
	</item>
	</channel>
</rss>
