<?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"
	>
<channel>
	<title>Comments on: Using postfix to block spam botnet traffic</title>
	<atom:link href="http://www.zen.org/2008/03/29/using-postfix-to-block-spam-botnet-traffic/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.zen.org/2008/03/29/using-postfix-to-block-spam-botnet-traffic/</link>
	<description>The thoughts, ideas, habits, and interests of a sub-culture.</description>
	<pubDate>Wed, 27 Aug 2008 23:16:36 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
		<item>
		<title>By: brendan</title>
		<link>http://www.zen.org/2008/03/29/using-postfix-to-block-spam-botnet-traffic/#comment-225362</link>
		<dc:creator>brendan</dc:creator>
		<pubDate>Fri, 16 May 2008 10:47:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.zen.org/2008/03/29/using-postfix-to-block-spam-botnet-traffic/#comment-225362</guid>
		<description>I think you could add 
   check_recipient_access pcre:/etc/postfix/maps/access_recipient.pcre
and in that file, put
   /^henryxxx@/   ACCEPT
   /^henry.*@/   REJECT
or something similar, letting the regular expression block all possible sequences after 'henry' except for 'xxx', which is accepted initially.</description>
		<content:encoded><![CDATA[<p>I think you could add<br />
   check_recipient_access pcre:/etc/postfix/maps/access_recipient.pcre<br />
and in that file, put<br />
   /^henryxxx@/   ACCEPT<br />
   /^henry.*@/   REJECT<br />
or something similar, letting the regular expression block all possible sequences after &#8216;henry&#8217; except for &#8216;xxx&#8217;, which is accepted initially.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul Rotenberg</title>
		<link>http://www.zen.org/2008/03/29/using-postfix-to-block-spam-botnet-traffic/#comment-224042</link>
		<dc:creator>Paul Rotenberg</dc:creator>
		<pubDate>Wed, 14 May 2008 18:51:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.zen.org/2008/03/29/using-postfix-to-block-spam-botnet-traffic/#comment-224042</guid>
		<description>I am reading this and having trouble filtering the information I need, but I suspect it is here. I have a domain running dual servers, inbound (FreeBSD, Postfix, Amavisd, ClamAV) and outbound (Qmail on Freebsd). Mail is delivered to inbound, cleaned and passed to user mailboxes on outbound. Users pick up mail from outbound. My problem is that someone decided we hae an account henryxxx@domain.com and we get thousands of spam messages to variants on henry@. henry is almost always the beginning of the recipient address. We do not have a Henry in the system. Can I add a filter to incoming (Postfix) to reject any email addressed to henryx@domain.com where x is any number of random characters? I do not want to bounce or do any processing on them, just get rid of them as quickly and simply as possible.</description>
		<content:encoded><![CDATA[<p>I am reading this and having trouble filtering the information I need, but I suspect it is here. I have a domain running dual servers, inbound (FreeBSD, Postfix, Amavisd, ClamAV) and outbound (Qmail on Freebsd). Mail is delivered to inbound, cleaned and passed to user mailboxes on outbound. Users pick up mail from outbound. My problem is that someone decided we hae an account <a href="mailto:henryxxx@domain.com">henryxxx@domain.com</a> and we get thousands of spam messages to variants on henry@. henry is almost always the beginning of the recipient address. We do not have a Henry in the system. Can I add a filter to incoming (Postfix) to reject any email addressed to <a href="mailto:henryx@domain.com">henryx@domain.com</a> where x is any number of random characters? I do not want to bounce or do any processing on them, just get rid of them as quickly and simply as possible.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Scott</title>
		<link>http://www.zen.org/2008/03/29/using-postfix-to-block-spam-botnet-traffic/#comment-212691</link>
		<dc:creator>Scott</dc:creator>
		<pubDate>Sat, 03 May 2008 02:51:58 +0000</pubDate>
		<guid isPermaLink="false">http://www.zen.org/2008/03/29/using-postfix-to-block-spam-botnet-traffic/#comment-212691</guid>
		<description>Just wanted to thank you for this.  I only needed a very very simplified version (adding a few of the addresses to access to be rejected) and this worked perfectly for me.</description>
		<content:encoded><![CDATA[<p>Just wanted to thank you for this.  I only needed a very very simplified version (adding a few of the addresses to access to be rejected) and this worked perfectly for me.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bspinner</title>
		<link>http://www.zen.org/2008/03/29/using-postfix-to-block-spam-botnet-traffic/#comment-201275</link>
		<dc:creator>bspinner</dc:creator>
		<pubDate>Tue, 22 Apr 2008 14:12:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.zen.org/2008/03/29/using-postfix-to-block-spam-botnet-traffic/#comment-201275</guid>
		<description>I am not 100% sure but I think many HowTos are mixing some postfix directives in wrong context.
For example reject_non_fqdn_sender is listed in smtpd_sender_restrictions (in man postconf(5)) and not in smtpd_recipient_restrictions (as stated in your and many others HowTos)

I think the following is more appropriate:

&lt;code&gt;smtpd_helo_restrictions =
        permit_mynetworks,
        permit_sasl_authenticated,
#       warn_if_reject,
        reject_non_fqdn_helo_hostname,
        reject_invalid_helo_hostname,
        permit
smtpd_sender_restrictions =
        check_sender_access hash:/etc/postfix/access
        permit_mynetworks,
        permit_sasl_authenticated,
        reject_non_fqdn_sender,
        reject_unknown_sender_domain,
        permit
smtpd_recipient_restrictions =
        permit_mynetworks,
        permit_sasl_authenticated,
        reject_non_fqdn_recipient,
        reject_unauth_destination,
        reject_unauth_pipelining,
        reject_unknown_recipient_domain,
        permit
&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>I am not 100% sure but I think many HowTos are mixing some postfix directives in wrong context.<br />
For example reject_non_fqdn_sender is listed in smtpd_sender_restrictions (in man postconf(5)) and not in smtpd_recipient_restrictions (as stated in your and many others HowTos)</p>
<p>I think the following is more appropriate:</p>
<p><code>smtpd_helo_restrictions =<br />
        permit_mynetworks,<br />
        permit_sasl_authenticated,<br />
#       warn_if_reject,<br />
        reject_non_fqdn_helo_hostname,<br />
        reject_invalid_helo_hostname,<br />
        permit<br />
smtpd_sender_restrictions =<br />
        check_sender_access hash:/etc/postfix/access<br />
        permit_mynetworks,<br />
        permit_sasl_authenticated,<br />
        reject_non_fqdn_sender,<br />
        reject_unknown_sender_domain,<br />
        permit<br />
smtpd_recipient_restrictions =<br />
        permit_mynetworks,<br />
        permit_sasl_authenticated,<br />
        reject_non_fqdn_recipient,<br />
        reject_unauth_destination,<br />
        reject_unauth_pipelining,<br />
        reject_unknown_recipient_domain,<br />
        permit<br />
</code></p>
]]></content:encoded>
	</item>
</channel>
</rss>
