<?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>Brain Goo &#187; Email Servers</title>
	<atom:link href="http://www.popmartian.com/tipsntricks/category/email-servers/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.popmartian.com/tipsntricks</link>
	<description>Carpe Crap 'em</description>
	<lastBuildDate>Thu, 20 May 2010 17:52:39 +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>How to update qmail relay rules</title>
		<link>http://www.popmartian.com/tipsntricks/2008/08/20/how-to-update-qmail-relay-rules/</link>
		<comments>http://www.popmartian.com/tipsntricks/2008/08/20/how-to-update-qmail-relay-rules/#comments</comments>
		<pubDate>Wed, 20 Aug 2008 15:31:05 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Email Servers]]></category>
		<category><![CDATA[How Tos]]></category>
		<category><![CDATA[qmail]]></category>

		<guid isPermaLink="false">http://www.popmartian.com/tipsntricks/?p=27</guid>
		<description><![CDATA[D. J. Bernstein&#8217;s Qmail, now in the public domain, is a powerful yet clumsy SMTP messaging system.  One of the most common problems is updating the rules for allowing SMTP relay, or denying the same.
If you qmail-smtpd under tcpserver, the following will update relay allow and relay forbid rules.
Create a file called /etc/tcp.smtp and [...]]]></description>
			<content:encoded><![CDATA[<p>D. J. Bernstein&#8217;s Qmail, now in the public domain, is a powerful yet clumsy SMTP messaging system.  One of the most common problems is updating the rules for allowing SMTP relay, or denying the same.</p>
<p>If you qmail-smtpd under tcpserver, the following will update relay allow and relay forbid rules.</p>
<p>Create a file called /etc/tcp.smtp and put in it:</p>
<p><code>127.:allow,RELAYCLIENT=""<br />
1.1.1.1:allow,RELAYCLIENT=""<br />
2.2.:allow,RELAYCLIENT=""<br />
2.2.2.5:deny</code></p>
<p>Qmail uses simple pattern matching so only classful subnets are allowed.  Sorry, no CIDR notation.</p>
<p>The example above will allow/deny:</p>
<ul>
<li>Allow relaying from 127.* your localhost subnet of 127.0.0.0/8</li>
<li>Allow the /32 address of 1.1.1.1</li>
<li>Allow 2.2.* the /16 subnet of 2.2.0.0/16</li>
<li>Specifically forbid 2.2.2.5</li>
</ul>
<p>In order to implement these rules you need to update the server tcp.smpt.cbd file and restart Qmail.</p>
<p>First, back up /etc/tcp.smtp, then run the command:<br />
<code>tcprules /etc/tcp.smtp.cdb /etc/tcp.smtp.tmp &lt; /etc/tcp.smtp</code></p>
<p>If the rules don&#8217;t update, make sure <code>-x /etc/tcp.smtp.cdb</code> is after tcpserver in your start script, then restart Qmail.</p>
<blockquote><p>Did you find this post useful or have questions or comments?  Please let me know!</p></blockquote>
<img src="http://www.popmartian.com/tipsntricks/?ak_action=api_record_view&id=27&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.popmartian.com/tipsntricks/2008/08/20/how-to-update-qmail-relay-rules/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>RBLs with Exim4 (debian friendly)</title>
		<link>http://www.popmartian.com/tipsntricks/2008/01/11/rbls-with-exim4-debian-friendly/</link>
		<comments>http://www.popmartian.com/tipsntricks/2008/01/11/rbls-with-exim4-debian-friendly/#comments</comments>
		<pubDate>Fri, 11 Jan 2008 22:44:14 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Email Servers]]></category>
		<category><![CDATA[Exim]]></category>
		<category><![CDATA[How Tos]]></category>
		<category><![CDATA[Mail Post]]></category>
		<category><![CDATA[RBL]]></category>
		<category><![CDATA[SMTP]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[spam]]></category>

		<guid isPermaLink="false">http://www.popmartian.com/tipsntricks/2008/01/11/rbls-with-exim4-debian-friendly/</guid>
		<description><![CDATA[Denying connections based on RBLs is a snap with Exim4.  Most confusion is related to ACLs and where the definition sits.
The fastest way to deny based on RBL is to add it to whatever ACL you specify in acl_smtp_rcpt
However, you MUST put the declaration AFTER any relay allow definitions.  ACLs are based on [...]]]></description>
			<content:encoded><![CDATA[<p>Denying connections based on RBLs is a snap with Exim4.  Most confusion is related to ACLs and where the definition sits.</p>
<p>The fastest way to deny based on RBL is to add it to whatever ACL you specify in acl_smtp_rcpt</p>
<p>However, you <strong>MUST</strong> put the declaration AFTER any relay allow definitions.  ACLs are based on first-match which means they run in order and stop when they hit a match.  Implicit allow.</p>
<p>Here is my ACL declared as acl_check_rcpt</p>
<p><code></p>
<pre>
acl_check_rcpt:
  accept  hosts = :
  deny    local_parts   = ^.*[@%!/|] : ^\\.
  accept  local_parts   = postmaster
          domains       = +local_domains
  require verify        = sender
  accept  domains       = +local_domains
          endpass
          message       = unknown user
          verify        = recipient
  accept  domains       = +relay_to_domains
          endpass
          message       = unrouteable address
          verify        = recipient
  accept  hosts         = +relay_from_hosts
  accept  authenticated = *
  deny    dnslists = zen.spamhaus.org
          message = Message rejected because $sender_fullhost is blacklisted at $dnslist_domain see $dnslist_text
  deny    message       = relay not permitted
</pre>
<p></code></p>
<p>The RBL definition is toward the bottom, after we allow everyone in that we want in.  This lets people relay via SMTP-AUTH or explicit allow before checking the RBL.  If they aren&#8217;t allowed via anything we allow, then we check the RBL and die with a nice message.</p>
<p>Adverts:<br />
<a href="http://www.amazon.com/gp/product/0954452909?ie=UTF8&#038;tag=popma-20&#038;linkCode=as2&#038;camp=1789&#038;creative=9325&#038;creativeASIN=0954452909">The Exim SMTP Mail Server</a><img src="http://www.assoc-amazon.com/e/ir?t=popma-20&#038;l=as2&#038;o=1&#038;a=0954452909" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /><br />
<a href="http://www.amazon.com/gp/product/0596000987?ie=UTF8&#038;tag=popma-20&#038;linkCode=as2&#038;camp=1789&#038;creative=9325&#038;creativeASIN=0596000987">Exim: The Mail Transfer Agent</a><img src="http://www.assoc-amazon.com/e/ir?t=popma-20&#038;l=as2&#038;o=1&#038;a=0596000987" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /><br />
<a href="http://www.amazon.com/gp/product/0954452976?ie=UTF8&#038;tag=popma-20&#038;linkCode=as2&#038;camp=1789&#038;creative=9325&#038;creativeASIN=0954452976">The Exim SMTP Mail Server: Official Guide for Release 4</a><img src="http://www.assoc-amazon.com/e/ir?t=popma-20&#038;l=as2&#038;o=1&#038;a=0954452976" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /><br />
<a href="http://www.amazon.com/gp/product/0131478230?ie=UTF8&#038;tag=popma-20&#038;linkCode=as2&#038;camp=1789&#038;creative=9325&#038;creativeASIN=0131478230">A Practical Guide to Linux(R) Commands, Editors, and Shell Programming</a><img src="http://www.assoc-amazon.com/e/ir?t=popma-20&#038;l=as2&#038;o=1&#038;a=0131478230" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /><br />
<a href="http://www.amazon.com/gp/product/0596005652?ie=UTF8&#038;tag=popma-20&#038;linkCode=as2&#038;camp=1789&#038;creative=9325&#038;creativeASIN=0596005652">Understanding the Linux Kernel</a><img src="http://www.assoc-amazon.com/e/ir?t=popma-20&#038;l=as2&#038;o=1&#038;a=0596005652" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /><br />
<a href="http://www.amazon.com/gp/product/0596527209?ie=UTF8&#038;tag=popma-20&#038;linkCode=as2&#038;camp=1789&#038;creative=9325&#038;creativeASIN=0596527209">Ubuntu Hacks: Tips &#038; Tools for Exploring, Using, and Tuning Linux (Hacks)</a><img src="http://www.assoc-amazon.com/e/ir?t=popma-20&#038;l=as2&#038;o=1&#038;a=0596527209" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /><br />
<a href="http://www.amazon.com/gp/product/0596006284?ie=UTF8&#038;tag=popma-20&#038;linkCode=as2&#038;camp=1789&#038;creative=9325&#038;creativeASIN=0596006284">Linux Pocket Guide</a><img src="http://www.assoc-amazon.com/e/ir?t=popma-20&#038;l=as2&#038;o=1&#038;a=0596006284" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /></p>
<img src="http://www.popmartian.com/tipsntricks/?ak_action=api_record_view&id=20&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.popmartian.com/tipsntricks/2008/01/11/rbls-with-exim4-debian-friendly/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SMTP &amp; POP3 Email for Virtual Users on Debian Sarge</title>
		<link>http://www.popmartian.com/tipsntricks/2007/07/31/smtp-pop3-email-for-virtual-users-on-debian-sarge/</link>
		<comments>http://www.popmartian.com/tipsntricks/2007/07/31/smtp-pop3-email-for-virtual-users-on-debian-sarge/#comments</comments>
		<pubDate>Tue, 31 Jul 2007 19:20:52 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Debian]]></category>
		<category><![CDATA[Email Servers]]></category>
		<category><![CDATA[Exim]]></category>
		<category><![CDATA[POP3]]></category>
		<category><![CDATA[SMTP]]></category>
		<category><![CDATA[bookmarks]]></category>
		<category><![CDATA[offsiteHowTo]]></category>

		<guid isPermaLink="false">http://www.popmartian.com/tipsntricks/2007/07/31/smtp-pop3-email-for-virtual-users-on-debian-sarge/</guid>
		<description><![CDATA[How to set up virtual email domains and users with POP access on Debian Sarge
http://www.randomsequence.com/articles/smtp-pop3-email-for-virtual-users-on-debian-sarge/
Adverts:
The Exim SMTP Mail Server
Exim: The Mail Transfer Agent
The Exim SMTP Mail Server: Official Guide for Release 4
]]></description>
			<content:encoded><![CDATA[<p>How to set up virtual email domains and users with POP access on Debian Sarge</p>
<p><a href="http://www.randomsequence.com/articles/smtp-pop3-email-for-virtual-users-on-debian-sarge/">http://www.randomsequence.com/articles/smtp-pop3-email-for-virtual-users-on-debian-sarge/</a></p>
<p>Adverts:<br />
<a href="http://www.amazon.com/gp/product/0954452909?ie=UTF8&#038;tag=popma-20&#038;linkCode=as2&#038;camp=1789&#038;creative=9325&#038;creativeASIN=0954452909">The Exim SMTP Mail Server</a><img src="http://www.assoc-amazon.com/e/ir?t=popma-20&#038;l=as2&#038;o=1&#038;a=0954452909" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /><br />
<a href="http://www.amazon.com/gp/product/0596000987?ie=UTF8&#038;tag=popma-20&#038;linkCode=as2&#038;camp=1789&#038;creative=9325&#038;creativeASIN=0596000987">Exim: The Mail Transfer Agent</a><img src="http://www.assoc-amazon.com/e/ir?t=popma-20&#038;l=as2&#038;o=1&#038;a=0596000987" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /><br />
<a href="http://www.amazon.com/gp/product/0954452976?ie=UTF8&#038;tag=popma-20&#038;linkCode=as2&#038;camp=1789&#038;creative=9325&#038;creativeASIN=0954452976">The Exim SMTP Mail Server: Official Guide for Release 4</a><img src="http://www.assoc-amazon.com/e/ir?t=popma-20&#038;l=as2&#038;o=1&#038;a=0954452976" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /></p>
<img src="http://www.popmartian.com/tipsntricks/?ak_action=api_record_view&id=14&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.popmartian.com/tipsntricks/2007/07/31/smtp-pop3-email-for-virtual-users-on-debian-sarge/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Postfix Virtual Domain Hosting</title>
		<link>http://www.popmartian.com/tipsntricks/2007/07/31/postfix-virtual-domain-hosting/</link>
		<comments>http://www.popmartian.com/tipsntricks/2007/07/31/postfix-virtual-domain-hosting/#comments</comments>
		<pubDate>Tue, 31 Jul 2007 19:13:05 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Email Servers]]></category>
		<category><![CDATA[SMTP]]></category>
		<category><![CDATA[bookmarks]]></category>
		<category><![CDATA[offsiteHowTo]]></category>
		<category><![CDATA[postfix]]></category>

		<guid isPermaLink="false">http://www.popmartian.com/tipsntricks/2007/07/31/postfix-virtual-domain-hosting/</guid>
		<description><![CDATA[How to set up virtual domain hosting in Postfix.
http://www.postfix.org/VIRTUAL_README.html
]]></description>
			<content:encoded><![CDATA[<p>How to set up virtual domain hosting in Postfix.</p>
<p><a href="http://www.postfix.org/VIRTUAL_README.html">http://www.postfix.org/VIRTUAL_README.html</a></p>
<img src="http://www.popmartian.com/tipsntricks/?ak_action=api_record_view&id=13&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.popmartian.com/tipsntricks/2007/07/31/postfix-virtual-domain-hosting/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Qmail lacking features, view config</title>
		<link>http://www.popmartian.com/tipsntricks/2007/05/17/qmail-lacking-features-view-config/</link>
		<comments>http://www.popmartian.com/tipsntricks/2007/05/17/qmail-lacking-features-view-config/#comments</comments>
		<pubDate>Thu, 17 May 2007 18:10:07 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Email Servers]]></category>
		<category><![CDATA[SMTP]]></category>
		<category><![CDATA[qmail]]></category>

		<guid isPermaLink="false">http://www.popmartian.com/tipsntricks/2007/05/17/qmail-lacking-features-view-config/</guid>
		<description><![CDATA[/var/qmail/bin/qmail-showctl will show you the running config.
Qmail does not allow you to restrict max recipients or max messages per session.  I saw reference to a plugin to handle these controls, but do not know the name of it.
You can restrict max message size in /va/qmail/control/databytes
Example:
$ cat /var/qmail/control/databytes
10485760
That&#8217;s a 10MB limit
Adverts:
The qmail Handbook
qmail
Running qmail
]]></description>
			<content:encoded><![CDATA[<p>/var/qmail/bin/qmail-showctl will show you the running config.</p>
<p>Qmail does not allow you to restrict max recipients or max messages per session.  I saw reference to a plugin to handle these controls, but do not know the name of it.</p>
<p>You can restrict max message size in /va/qmail/control/databytes</p>
<p>Example:</p>
<p>$ cat /var/qmail/control/databytes<br />
10485760</p>
<p>That&#8217;s a 10MB limit</p>
<p>Adverts:<br />
<a href="http://www.amazon.com/gp/product/1893115402?ie=UTF8&#038;tag=popma-20&#038;linkCode=as2&#038;camp=1789&#038;creative=9325&#038;creativeASIN=1893115402">The qmail Handbook</a><img src="http://www.assoc-amazon.com/e/ir?t=popma-20&#038;l=as2&#038;o=1&#038;a=1893115402" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /><br />
<a href="http://www.amazon.com/gp/product/1565926285?ie=UTF8&#038;tag=popma-20&#038;linkCode=as2&#038;camp=1789&#038;creative=9325&#038;creativeASIN=1565926285">qmail</a><img src="http://www.assoc-amazon.com/e/ir?t=popma-20&#038;l=as2&#038;o=1&#038;a=1565926285" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /><br />
<a href="http://www.amazon.com/gp/product/0672319454?ie=UTF8&#038;tag=popma-20&#038;linkCode=as2&#038;camp=1789&#038;creative=9325&#038;creativeASIN=0672319454">Running qmail</a><img src="http://www.assoc-amazon.com/e/ir?t=popma-20&#038;l=as2&#038;o=1&#038;a=0672319454" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /></p>
<img src="http://www.popmartian.com/tipsntricks/?ak_action=api_record_view&id=6&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.popmartian.com/tipsntricks/2007/05/17/qmail-lacking-features-view-config/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Qmail SMTP routes, single route</title>
		<link>http://www.popmartian.com/tipsntricks/2007/05/16/qmail-smtp-routes-single-route/</link>
		<comments>http://www.popmartian.com/tipsntricks/2007/05/16/qmail-smtp-routes-single-route/#comments</comments>
		<pubDate>Wed, 16 May 2007 19:29:44 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Email Servers]]></category>
		<category><![CDATA[SMTP]]></category>
		<category><![CDATA[qmail]]></category>

		<guid isPermaLink="false">http://www.popmartian.com/tipsntricks/2007/05/16/qmail-smtp-routes-single-route/</guid>
		<description><![CDATA[Qmail smtproutes can only handle one route per egress domain name.
Example:
example1.com:10.0.0.1
example1.com:10.0.0.2
Will send mail only to 10.0.0.1  The second entry will be ignored.
You are better off using round-robin DNS or submitting a patch to handle priority routing.
Adverts:
The qmail Handbook
qmail
Running qmail
]]></description>
			<content:encoded><![CDATA[<p>Qmail smtproutes can only handle one route per egress domain name.</p>
<p>Example:</p>
<p>example1.com:10.0.0.1<br />
example1.com:10.0.0.2</p>
<p>Will send mail only to 10.0.0.1  The second entry will be ignored.</p>
<p>You are better off using round-robin DNS or submitting a patch to handle priority routing.</p>
<p>Adverts:<br />
<a href="http://www.amazon.com/gp/product/1893115402?ie=UTF8&#038;tag=popma-20&#038;linkCode=as2&#038;camp=1789&#038;creative=9325&#038;creativeASIN=1893115402">The qmail Handbook</a><img src="http://www.assoc-amazon.com/e/ir?t=popma-20&#038;l=as2&#038;o=1&#038;a=1893115402" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /><br />
<a href="http://www.amazon.com/gp/product/1565926285?ie=UTF8&#038;tag=popma-20&#038;linkCode=as2&#038;camp=1789&#038;creative=9325&#038;creativeASIN=1565926285">qmail</a><img src="http://www.assoc-amazon.com/e/ir?t=popma-20&#038;l=as2&#038;o=1&#038;a=1565926285" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /><br />
<a href="http://www.amazon.com/gp/product/0672319454?ie=UTF8&#038;tag=popma-20&#038;linkCode=as2&#038;camp=1789&#038;creative=9325&#038;creativeASIN=0672319454">Running qmail</a><img src="http://www.assoc-amazon.com/e/ir?t=popma-20&#038;l=as2&#038;o=1&#038;a=0672319454" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" /></p>
<img src="http://www.popmartian.com/tipsntricks/?ak_action=api_record_view&id=4&type=feed" alt="" />]]></content:encoded>
			<wfw:commentRss>http://www.popmartian.com/tipsntricks/2007/05/16/qmail-smtp-routes-single-route/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
