<?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>What&#039;s All This Brouhaha? &#187; Mailman</title>
	<atom:link href="https://whats.all.this.brouhaha.com/category/computing/software/mailman/feed/" rel="self" type="application/rss+xml" />
	<link>https://whats.all.this.brouhaha.com</link>
	<description>miscellaneous musings and random rantings</description>
	<lastBuildDate>Fri, 01 Nov 2019 06:31:54 +0000</lastBuildDate>
	<language>en-US</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.9</generator>
	<item>
		<title>Configuring MTAs &#8211; Postfix vs. Sendmail, Qmail</title>
		<link>https://whats.all.this.brouhaha.com/2006/03/30/configuring-mtas-postfix-vs-sendmail-qmail/</link>
		<comments>https://whats.all.this.brouhaha.com/2006/03/30/configuring-mtas-postfix-vs-sendmail-qmail/#comments</comments>
		<pubDate>Thu, 30 Mar 2006 07:28:09 +0000</pubDate>
		<dc:creator><![CDATA[Eric]]></dc:creator>
				<category><![CDATA[Mailman]]></category>
		<category><![CDATA[Postfix]]></category>
		<category><![CDATA[SELinux]]></category>

		<guid isPermaLink="false">http://whats.all.this.brouhaha.com/?p=237</guid>
		<description><![CDATA[A friend who shall remain nameless wrote: I&#8217;m a bit nervous about it because everytime I tried Postfix at home, I couldn&#8217;t get it to work for one reason or another. Sendmail is ugly but it has always worked for &#8230; <a href="https://whats.all.this.brouhaha.com/2006/03/30/configuring-mtas-postfix-vs-sendmail-qmail/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>A friend who shall remain nameless wrote:</p>
<blockquote><p>I&#8217;m a bit nervous about it because everytime I tried Postfix at home, I couldn&#8217;t get it to work for one reason or another.  Sendmail is ugly but it has always worked for me.</p></blockquote>
<p>I replied:</p>
<blockquote><p>That&#8217;s bizarre.  For me, Postfix has always &#8220;just worked&#8221;, while I&#8217;ve *never* been able to get Sendmail to do anything useful, despite many hours of study of the Necronomicon (aka &#8220;Bat Book&#8221;).  Maybe I wasn&#8217;t pronouncing the arcane incantations correctly.  I&#8217;m probably lucky that I didn&#8217;t accidentally summon a demon (when what I wanted was a daemon).</p></blockquote>
<p>I tried setting up Sendmail when I was first building my own mail server back in 1995.  I fought it for weeks.  I finally got sick of the frustration and found Qmail, which has worked pretty well for me.  The only thing that was wrong with Qmail at the time was the stupid license.<br />
However, in the last few years I&#8217;ve become dissatisfied because the author no longer maintains Qmail.  Other people publish patches, but because of the stupid license it isn&#8217;t possible to distribute binaries of the patched versions.</p>
<p>On the other hand, Postfix does almost everything I need, has plugins fo the few things I want to add (like greylisting), and has a reasonable license. I&#8217;ve switched some of my email processing from Qmail to Postfix, and expect to complete the transition within the next few months.  The only reason that I wasn&#8217;t able to do the transition quickly is that I&#8217;d become somewhat dependent on unusual features of Qmail relating to local delivery control.</p>
<p>Currently I have to turn SELinux &#8220;enforcing&#8221; off on my server machine in order to  allow Postfix to hand off email to Mailman.  I hope to find a solution to this soon.</p>
]]></content:encoded>
			<wfw:commentRss>https://whats.all.this.brouhaha.com/2006/03/30/configuring-mtas-postfix-vs-sendmail-qmail/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>SELinux, Postfix, and Mailman</title>
		<link>https://whats.all.this.brouhaha.com/2006/03/01/selinux-postfix-and-mailman/</link>
		<comments>https://whats.all.this.brouhaha.com/2006/03/01/selinux-postfix-and-mailman/#comments</comments>
		<pubDate>Thu, 02 Mar 2006 04:12:23 +0000</pubDate>
		<dc:creator><![CDATA[Eric]]></dc:creator>
				<category><![CDATA[Fedora]]></category>
		<category><![CDATA[Mailman]]></category>
		<category><![CDATA[Postfix]]></category>
		<category><![CDATA[SELinux]]></category>

		<guid isPermaLink="false">http://whats.all.this.brouhaha.com/?p=221</guid>
		<description><![CDATA[Some time back I set up a new server machine running Fedora Core 4 x86_64, with Postfix as the MTA, and with the Mailman mailing list manager. I have a very slightly nonstandard Postfix setup, with recipient_delimiter set to a &#8230; <a href="https://whats.all.this.brouhaha.com/2006/03/01/selinux-postfix-and-mailman/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
				<content:encoded><![CDATA[<p>Some time back I set up a new server machine running <a title="Fedora Core" href="http://fedora.redhat.com/">Fedora Core</a> 4 x86_64, with <a title="Postfix" href="http://www.postfix.org/">Postfix</a> as the MTA, and with the <a title="Mailman" href="http://www.list.org/">Mailman</a> mailing list manager.  I have a very slightly nonstandard Postfix setup, with recipient_delimiter set to a hyphen character (&#8220;-&#8221;) instead of the default plus character (&#8220;+&#8221;), in order to ease the transition from <a title="Qmail" href="http://www.qmail.org/">Qmail</a> to Postfix.  At first it seemed pretty easy to get this all working.  But then it broke, for no apparent reason.<span id="more-221"></span></p>
<p>When I first noticed that the mailing lists had stopped working, it took me a while to track it down to a problem with <a title="SELinux" href="http://www.nsa.gov/selinux/">SELinux</a> security contexts.   I&#8217;m running with the Fedora &#8220;targeted&#8221; policy.  What I eventually discovered was that all of the files in /usr/lib/mailman had somehow gotten the wrong context.  They must have had the right context at one time, since the lists worked for a while, and I&#8217;m not sure what might have changed them.  The /sbin/restorecon program makes it easy to fix this sort of problem.  After I did that, I sent out a test message, which I received back from the list, so I thought everything was copacetic.</p>
<p>Today I noticed that it wasn&#8217;t working right again.  After a bit more time grovelling through log messages and such, I found several problems.</p>
<p>The security context for the postfix-to-mailman-2.1.py script, which I&#8217;d installed in /usr/lib/mailman/bin, was system_u:object_r:bin_t, but from the audit log it appears that the Postfix pipe transport program runs as system_u:system_r:postfix_pipe_t, and was failing to invoke the program.  I tried to do a &#8220;chcon -r<br />
system_r -t postfix_pipe_t postfix-to-mailman-2.1.py&#8221; as root, but it reports &#8220;permission denied&#8221;.</p>
<p>I eventually figured out that the chcon would succeed if I turned off enforcing, did the chcon, then turned it back on.</p>
<p>Unfortunately even after doing that, the Postfix pipe transport program is still not allowed to execute the script.  I&#8217;m not sure what&#8217;s going on, so I&#8217;ll have to ask on the Fedora SELinux mailing list.</p>
<p>More surprising is that due to the different recipient_delimiter value, the script was failing for any of the mailing lists that have a hypen in their name, because the line in /etc/master.cf that defines the mailman transport was only passing in the {user} variable, which has anything that looks like a suffix stripped off.  I changed the mailman transport line to also pass in {extension}, and changed the script to accept that and if non-null append it (with a hyphen) to the user.<br />
Now it all seems to be working except that I have to run it with enforcing off until I find out how to set the right security context for the script.</p>
]]></content:encoded>
			<wfw:commentRss>https://whats.all.this.brouhaha.com/2006/03/01/selinux-postfix-and-mailman/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
