<?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; qmail</title>
	<atom:link href="http://www.popmartian.com/tipsntricks/category/qmail/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>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>
