<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Installing and configuring a mail system for Debian Sarge</title>
	<atom:link href="http://steveblock.com/2004/12/debian-sarge-mail-system/feed/" rel="self" type="application/rss+xml" />
	<link>http://steveblock.com/2004/12/debian-sarge-mail-system/</link>
	<description>the life of an occasionally bearded engineer</description>
	<lastBuildDate>Fri, 25 Jun 2010 21:15:58 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: Iulian</title>
		<link>http://steveblock.com/2004/12/debian-sarge-mail-system/comment-page-1/#comment-3105</link>
		<dc:creator>Iulian</dc:creator>
		<pubDate>Thu, 29 Jun 2006 02:35:47 +0000</pubDate>
		<guid isPermaLink="false">http://www.steveblock.com/2004/12/01/debian-sarge-mail-system/#comment-3105</guid>
		<description>After install I can&#039;t send and receive mail. 
I see the following error:
Jun 29 03:31:32 proline postfix/lmtp[9507]: F33727DD09: to=, relay=none, delay=1, status=deferred (connect to /var/run/cyrus/socket/lmtp[/var/run/cyrus/socket/lmtp]: No such file or directory)

When I try to send email to gmail,this is the error:
Jun 25 23:50:57 195 postfix/smtp[5560]: connect to mail-smtp-in.l.google.com[64.233.183.27]: Connection refused (port 25)

What is wrong ?</description>
		<content:encoded><![CDATA[<p>After install I can&#8217;t send and receive mail.<br />
I see the following error:<br />
Jun 29 03:31:32 proline postfix/lmtp[9507]: F33727DD09: to=, relay=none, delay=1, status=deferred (connect to /var/run/cyrus/socket/lmtp[/var/run/cyrus/socket/lmtp]: No such file or directory)</p>
<p>When I try to send email to gmail,this is the error:<br />
Jun 25 23:50:57 195 postfix/smtp[5560]: connect to mail-smtp-in.l.google.com[64.233.183.27]: Connection refused (port 25)</p>
<p>What is wrong ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jan</title>
		<link>http://steveblock.com/2004/12/debian-sarge-mail-system/comment-page-1/#comment-2643</link>
		<dc:creator>jan</dc:creator>
		<pubDate>Tue, 25 Apr 2006 03:34:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.steveblock.com/2004/12/01/debian-sarge-mail-system/#comment-2643</guid>
		<description>i don&#039;t have a non production machine either that&#039;s why i can&#039;t play with the configuration, anyways thanks for the info. i&#039;ve bookmarked your blogsite and will visit it often in case you decided to post a new howto (&quot;,)

more power to you steve and God Bless.</description>
		<content:encoded><![CDATA[<p>i don&#8217;t have a non production machine either that&#8217;s why i can&#8217;t play with the configuration, anyways thanks for the info. i&#8217;ve bookmarked your blogsite and will visit it often in case you decided to post a new howto (&#8220;,)</p>
<p>more power to you steve and God Bless.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: steve</title>
		<link>http://steveblock.com/2004/12/debian-sarge-mail-system/comment-page-1/#comment-2607</link>
		<dc:creator>steve</dc:creator>
		<pubDate>Mon, 24 Apr 2006 14:40:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.steveblock.com/2004/12/01/debian-sarge-mail-system/#comment-2607</guid>
		<description>Jan, I did manage to kludge on mysql lookups to the existing system using libpam-mysql to meet expanded needs, but I did a terrible job of documenting the process. I generally didn&#039;t make any changes to postfix, but instead changed smtp and imap in /etc/pam.d according to the configuration instructions for pam-mysql shown in /usr/share/doc/libpam-mysql/Readme

Users in mysql are in a simple table with the following fields: id, login, hashed_passwd. I used the encrypt() function in mysql, which simply calls the system encrypt. By default encrypt() uses a 2 character salt and generates a DES hash, but if you give an MD5 style salt it will generate an MD5 password hash instead. If you use the builtin md5() function mysql can handle it fine but pam will not.

I know that postfix can use mysql for a whole host of lookups but I haven&#039;t ever actually configured any of those things. Maybe I&#039;ll try it sometime in the future but I don&#039;t have a non-production machine to play with at the moment.</description>
		<content:encoded><![CDATA[<p>Jan, I did manage to kludge on mysql lookups to the existing system using libpam-mysql to meet expanded needs, but I did a terrible job of documenting the process. I generally didn&#8217;t make any changes to postfix, but instead changed smtp and imap in /etc/pam.d according to the configuration instructions for pam-mysql shown in /usr/share/doc/libpam-mysql/Readme</p>
<p>Users in mysql are in a simple table with the following fields: id, login, hashed_passwd. I used the encrypt() function in mysql, which simply calls the system encrypt. By default encrypt() uses a 2 character salt and generates a DES hash, but if you give an MD5 style salt it will generate an MD5 password hash instead. If you use the builtin md5() function mysql can handle it fine but pam will not.</p>
<p>I know that postfix can use mysql for a whole host of lookups but I haven&#8217;t ever actually configured any of those things. Maybe I&#8217;ll try it sometime in the future but I don&#8217;t have a non-production machine to play with at the moment.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jan</title>
		<link>http://steveblock.com/2004/12/debian-sarge-mail-system/comment-page-1/#comment-2602</link>
		<dc:creator>jan</dc:creator>
		<pubDate>Mon, 24 Apr 2006 06:14:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.steveblock.com/2004/12/01/debian-sarge-mail-system/#comment-2602</guid>
		<description>hey steve,

great article!

if it isn&#039;t too much to ask, can you include a mysql lookup instead of systems users.

TIA</description>
		<content:encoded><![CDATA[<p>hey steve,</p>
<p>great article!</p>
<p>if it isn&#8217;t too much to ask, can you include a mysql lookup instead of systems users.</p>
<p>TIA</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gorion</title>
		<link>http://steveblock.com/2004/12/debian-sarge-mail-system/comment-page-1/#comment-511</link>
		<dc:creator>gorion</dc:creator>
		<pubDate>Mon, 26 Sep 2005 15:29:07 +0000</pubDate>
		<guid isPermaLink="false">http://www.steveblock.com/2004/12/01/debian-sarge-mail-system/#comment-511</guid>
		<description>Very nice, I&#039;m impressed and satisfied. Although I woudn&#039;t mix so much with certs as you did. Woudn&#039;t it be easier to make these things using simple three step combo commands with openssl? Anyways, very good work. Greets, Paul.</description>
		<content:encoded><![CDATA[<p>Very nice, I&#8217;m impressed and satisfied. Although I woudn&#8217;t mix so much with certs as you did. Woudn&#8217;t it be easier to make these things using simple three step combo commands with openssl? Anyways, very good work. Greets, Paul.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Steve</title>
		<link>http://steveblock.com/2004/12/debian-sarge-mail-system/comment-page-1/#comment-416</link>
		<dc:creator>Steve</dc:creator>
		<pubDate>Tue, 28 Jun 2005 20:16:22 +0000</pubDate>
		<guid isPermaLink="false">http://www.steveblock.com/2004/12/01/debian-sarge-mail-system/#comment-416</guid>
		<description>Mike,

I&#039;ve figured out what I feel is a much easier way to deal with this issue.
I created a bind mount between /var/run/saslauthd and
/var/spool/postfix/var/run/saslauthd by adding the following line to
/etc/fstab and creating the /var/spool/postfix/var/run/saslauthd
directory:

/var/run/saslauthd /var/spool/postfix/var/run/saslauthd none rw,bind 0 0

I&#039;m pretty sure I left everything else about saslauthd alone at that
point. The end result is that the saslauthd directory is located at
/var/run/sasluthd, the default configuration, and that location is
mounted inside the postfix chroot as well.

This is the method I would recommend, rather than mucking about with the
symbolic links.

If you&#039;d still like to do it the way I first figured out, you&#039;ll have to
do a little bit of editing in the init script for saslauthd.

Look at the much-easier-to-read version of this guide, at
http://wiki.ev-15.com/debian:mail_system#sasl
and read starting at &quot;Finish SASL Configuration&quot;

You&#039;ll see where I mention adding a PARAMS= line to the file, changing
PWDIR and PIDFILE, and adding a couple lines to force removal of the
/var/run/saslauthd directory and creation of the symbolic link.

You&#039;ll also see &quot;Update #2&quot; where I recommend the bind mount method. I
just added this today, though I should have added it a while ago.

Let me know how things go.</description>
		<content:encoded><![CDATA[<p>Mike,</p>
<p>I&#8217;ve figured out what I feel is a much easier way to deal with this issue.<br />
I created a bind mount between /var/run/saslauthd and<br />
/var/spool/postfix/var/run/saslauthd by adding the following line to<br />
/etc/fstab and creating the /var/spool/postfix/var/run/saslauthd<br />
directory:</p>
<p>/var/run/saslauthd /var/spool/postfix/var/run/saslauthd none rw,bind 0 0</p>
<p>I&#8217;m pretty sure I left everything else about saslauthd alone at that<br />
point. The end result is that the saslauthd directory is located at<br />
/var/run/sasluthd, the default configuration, and that location is<br />
mounted inside the postfix chroot as well.</p>
<p>This is the method I would recommend, rather than mucking about with the<br />
symbolic links.</p>
<p>If you&#8217;d still like to do it the way I first figured out, you&#8217;ll have to<br />
do a little bit of editing in the init script for saslauthd.</p>
<p>Look at the much-easier-to-read version of this guide, at<br />
<a href="http://wiki.ev-15.com/debian:mail_system#sasl" rel="nofollow">http://wiki.ev-15.com/debian:mail_system#sasl</a><br />
and read starting at &#8220;Finish SASL Configuration&#8221;</p>
<p>You&#8217;ll see where I mention adding a PARAMS= line to the file, changing<br />
PWDIR and PIDFILE, and adding a couple lines to force removal of the<br />
/var/run/saslauthd directory and creation of the symbolic link.</p>
<p>You&#8217;ll also see &#8220;Update #2&#8243; where I recommend the bind mount method. I<br />
just added this today, though I should have added it a while ago.</p>
<p>Let me know how things go.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mike</title>
		<link>http://steveblock.com/2004/12/debian-sarge-mail-system/comment-page-1/#comment-415</link>
		<dc:creator>Mike</dc:creator>
		<pubDate>Tue, 28 Jun 2005 18:44:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.steveblock.com/2004/12/01/debian-sarge-mail-system/#comment-415</guid>
		<description>This is exactly what I&#039;ve been looking for, but I&#039;m having a problem.  Right after this config change:

server# rmdir /var/run/saslauthd
server# ln -s /var/spool/postfix/var/run/saslauthd /var/run/saslauthd

When I try to restart the sasl daemon, I get the following error:

mkdir: cannot create directory `/var/run/saslauthd&#039;: File exists

Any help with this would be GREATLY appreciated.</description>
		<content:encoded><![CDATA[<p>This is exactly what I&#8217;ve been looking for, but I&#8217;m having a problem.  Right after this config change:</p>
<p>server# rmdir /var/run/saslauthd<br />
server# ln -s /var/spool/postfix/var/run/saslauthd /var/run/saslauthd</p>
<p>When I try to restart the sasl daemon, I get the following error:</p>
<p>mkdir: cannot create directory `/var/run/saslauthd&#8217;: File exists</p>
<p>Any help with this would be GREATLY appreciated.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ismet Kursunoglu, MD</title>
		<link>http://steveblock.com/2004/12/debian-sarge-mail-system/comment-page-1/#comment-241</link>
		<dc:creator>Ismet Kursunoglu, MD</dc:creator>
		<pubDate>Wed, 23 Feb 2005 18:53:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.steveblock.com/2004/12/01/debian-sarge-mail-system/#comment-241</guid>
		<description>Great tutorial, thank you.  I want to do this but use Openldap (slapd) for user mangement/login via sasl.  I have tried using some of the config help from 

http://hannibal.solstice.nl/version-2.0/on_debian/hannibal-3.0_on-debian-sarge_2004-04-02.html.orig
but am now pretty confused on how to properly tie in the ldap portion. They also use Amavis and the clamav filters. Of course their examples include lots of other functionality that I am not going to be using. 

I plan on adding lots of users and don&#039;t want to create local user accounts.  I had looked in MySQL with Courier, but gave up after so many days.

I like the idea of starting out with Ldap given it&#039;s powerful adaptability and scale. 

Any ideas or pointers?  Could I interest you in taking the plunge with an additional tutorial that covers some thing like this - i.e. running on Sarge.

thanks again. </description>
		<content:encoded><![CDATA[<p>Great tutorial, thank you.  I want to do this but use Openldap (slapd) for user mangement/login via sasl.  I have tried using some of the config help from </p>
<p><a href="http://hannibal.solstice.nl/version-2.0/on_debian/hannibal-3.0_on-debian-sarge_2004-04-02.html.orig" rel="nofollow">http://hannibal.solstice.nl/version-2.0/on_debian/hannibal-3.0_on-debian-sarge_2004-04-02.html.orig</a><br />
but am now pretty confused on how to properly tie in the ldap portion. They also use Amavis and the clamav filters. Of course their examples include lots of other functionality that I am not going to be using. </p>
<p>I plan on adding lots of users and don&#8217;t want to create local user accounts.  I had looked in MySQL with Courier, but gave up after so many days.</p>
<p>I like the idea of starting out with Ldap given it&#8217;s powerful adaptability and scale. </p>
<p>Any ideas or pointers?  Could I interest you in taking the plunge with an additional tutorial that covers some thing like this &#8211; i.e. running on Sarge.</p>
<p>thanks again.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: granx</title>
		<link>http://steveblock.com/2004/12/debian-sarge-mail-system/comment-page-1/#comment-129</link>
		<dc:creator>granx</dc:creator>
		<pubDate>Sat, 11 Dec 2004 21:33:09 +0000</pubDate>
		<guid isPermaLink="false">http://www.steveblock.com/2004/12/01/debian-sarge-mail-system/#comment-129</guid>
		<description>STEVE: awesome lesson, I might bum from you or just use this tutorial for my own.  I think you should remember, for the future, that people assume you are making up for inadequacies when you write a really long blog.</description>
		<content:encoded><![CDATA[<p>STEVE: awesome lesson, I might bum from you or just use this tutorial for my own.  I think you should remember, for the future, that people assume you are making up for inadequacies when you write a really long blog.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Liz</title>
		<link>http://steveblock.com/2004/12/debian-sarge-mail-system/comment-page-1/#comment-123</link>
		<dc:creator>Liz</dc:creator>
		<pubDate>Fri, 03 Dec 2004 03:10:36 +0000</pubDate>
		<guid isPermaLink="false">http://www.steveblock.com/2004/12/01/debian-sarge-mail-system/#comment-123</guid>
		<description>cliffs notes plz?</description>
		<content:encoded><![CDATA[<p>cliffs notes plz?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
