<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: Virtual mailboxes with courier-imap and postfix</title>
	<atom:link href="http://dannorth.net/2007/09/09/virtual-mailboxes-with-courier-imap-and-postfix/feed/" rel="self" type="application/rss+xml" />
	<link>http://dannorth.net/2007/09/09/virtual-mailboxes-with-courier-imap-and-postfix/</link>
	<description>embracing uncertainty</description>
	<lastBuildDate>Thu, 02 Feb 2012 20:47:07 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: kcpusa</title>
		<link>http://dannorth.net/2007/09/09/virtual-mailboxes-with-courier-imap-and-postfix/#comment-9666</link>
		<dc:creator><![CDATA[kcpusa]]></dc:creator>
		<pubDate>Sat, 19 Nov 2011 16:47:21 +0000</pubDate>
		<guid isPermaLink="false">http://dannorth.net/2007/09/virtual-mailboxes-with-courier-imap-and-postfix#comment-9666</guid>
		<description><![CDATA[Squirrelmail works quite well, login into your account using your email instead of just user name. I don&#039;t think you need special configuration for squirrelmail except indicate which MTA (such as dovecot) you are using in squirrel configuration in pre-defined settings.]]></description>
		<content:encoded><![CDATA[<p>Squirrelmail works quite well, login into your account using your email instead of just user name. I don&#8217;t think you need special configuration for squirrelmail except indicate which MTA (such as dovecot) you are using in squirrel configuration in pre-defined settings.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mate</title>
		<link>http://dannorth.net/2007/09/09/virtual-mailboxes-with-courier-imap-and-postfix/#comment-9665</link>
		<dc:creator><![CDATA[mate]]></dc:creator>
		<pubDate>Sat, 19 Nov 2011 14:18:02 +0000</pubDate>
		<guid isPermaLink="false">http://dannorth.net/2007/09/virtual-mailboxes-with-courier-imap-and-postfix#comment-9665</guid>
		<description><![CDATA[OK, it works well.
But if I want to install some kind of webmail, I need SMTP login on the server.
How can I make it with virtual postfix users?]]></description>
		<content:encoded><![CDATA[<p>OK, it works well.<br />
But if I want to install some kind of webmail, I need SMTP login on the server.<br />
How can I make it with virtual postfix users?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kcpusa</title>
		<link>http://dannorth.net/2007/09/09/virtual-mailboxes-with-courier-imap-and-postfix/#comment-9645</link>
		<dc:creator><![CDATA[kcpusa]]></dc:creator>
		<pubDate>Wed, 02 Nov 2011 21:51:05 +0000</pubDate>
		<guid isPermaLink="false">http://dannorth.net/2007/09/virtual-mailboxes-with-courier-imap-and-postfix#comment-9645</guid>
		<description><![CDATA[I finally got my virtual mailboxes running. I can access my mails both through pop3 and IMAP. I am using squirrelmail to get my IMAP mails. I found a very detailed and very easy to implement article for virtual mailboxes using dovecot: https://help.ubuntu.com/community/PostfixVirtualMailBoxClamSmtpHowto, this includes shell scripts for adding and deleting  users . Just one pointer, make sure you configure squirrelmail to reflect that you are using Dovecot in pre-defined settings for specific IMAP servers.]]></description>
		<content:encoded><![CDATA[<p>I finally got my virtual mailboxes running. I can access my mails both through pop3 and IMAP. I am using squirrelmail to get my IMAP mails. I found a very detailed and very easy to implement article for virtual mailboxes using dovecot: <a href="https://help.ubuntu.com/community/PostfixVirtualMailBoxClamSmtpHowto" rel="nofollow">https://help.ubuntu.com/community/PostfixVirtualMailBoxClamSmtpHowto</a>, this includes shell scripts for adding and deleting  users . Just one pointer, make sure you configure squirrelmail to reflect that you are using Dovecot in pre-defined settings for specific IMAP servers.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dan North</title>
		<link>http://dannorth.net/2007/09/09/virtual-mailboxes-with-courier-imap-and-postfix/#comment-9637</link>
		<dc:creator><![CDATA[Dan North]]></dc:creator>
		<pubDate>Thu, 27 Oct 2011 13:15:21 +0000</pubDate>
		<guid isPermaLink="false">http://dannorth.net/2007/09/virtual-mailboxes-with-courier-imap-and-postfix#comment-9637</guid>
		<description><![CDATA[I seem to remember using &lt;a href=&quot;http://wiki2.dovecot.org/HowTo/VirtualUserFlatFilesPostfix&quot; rel=&quot;nofollow&quot;&gt;the Dovecot wiki&lt;/a&gt; to set it all up, and I don&#039;t think it was too painful. Turn up all the logging and check the log files (also, running dovecot in the foreground rather than as a daemon might give you some clues).

For the last couple of years I&#039;ve had all my mail hosting on Google hosted domains, so it&#039;s been a while since I&#039;ve looked at this.]]></description>
		<content:encoded><![CDATA[<p>I seem to remember using <a href="http://wiki2.dovecot.org/HowTo/VirtualUserFlatFilesPostfix" rel="nofollow">the Dovecot wiki</a> to set it all up, and I don&#8217;t think it was too painful. Turn up all the logging and check the log files (also, running dovecot in the foreground rather than as a daemon might give you some clues).</p>
<p>For the last couple of years I&#8217;ve had all my mail hosting on Google hosted domains, so it&#8217;s been a while since I&#8217;ve looked at this.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kcpusa</title>
		<link>http://dannorth.net/2007/09/09/virtual-mailboxes-with-courier-imap-and-postfix/#comment-9634</link>
		<dc:creator><![CDATA[kcpusa]]></dc:creator>
		<pubDate>Wed, 26 Oct 2011 21:36:42 +0000</pubDate>
		<guid isPermaLink="false">http://dannorth.net/2007/09/virtual-mailboxes-with-courier-imap-and-postfix#comment-9634</guid>
		<description><![CDATA[I changed my mta from courier to Dovecot. I am not sure how I would implement userdb, userdbpw and makeuserdb in Dovecot. I tried using command line but it does not seem to work. Any help? Thanks]]></description>
		<content:encoded><![CDATA[<p>I changed my mta from courier to Dovecot. I am not sure how I would implement userdb, userdbpw and makeuserdb in Dovecot. I tried using command line but it does not seem to work. Any help? Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dan North</title>
		<link>http://dannorth.net/2007/09/09/virtual-mailboxes-with-courier-imap-and-postfix/#comment-9633</link>
		<dc:creator><![CDATA[Dan North]]></dc:creator>
		<pubDate>Tue, 25 Oct 2011 21:40:05 +0000</pubDate>
		<guid isPermaLink="false">http://dannorth.net/2007/09/virtual-mailboxes-with-courier-imap-and-postfix#comment-9633</guid>
		<description><![CDATA[It does work with both virtual aliases and virtual mailboxes, but you can&#039;t mix them &lt;em&gt;within the same domain&lt;/em&gt;. A domain must be either a virtual alias domain or a virtual mailbox domain.

Soon after I wrote this I took &lt;a href=&quot;#comment-7886&quot; rel=&quot;nofollow&quot;&gt;Steve Purcell&#039;s advice&lt;/a&gt; and shifted to &lt;a href=&quot;http://dovecot.org/&quot; rel=&quot;nofollow&quot;&gt;Dovecot&lt;/a&gt; both as an IMAP server and for Postfix authentication. It made things a lot simpler and I was able to use the same password file for both Postfix (SMTP) and Dovecot (IMAP) authentication.]]></description>
		<content:encoded><![CDATA[<p>It does work with both virtual aliases and virtual mailboxes, but you can&#8217;t mix them <em>within the same domain</em>. A domain must be either a virtual alias domain or a virtual mailbox domain.</p>
<p>Soon after I wrote this I took <a href="#comment-7886" rel="nofollow">Steve Purcell&#8217;s advice</a> and shifted to <a href="http://dovecot.org/" rel="nofollow">Dovecot</a> both as an IMAP server and for Postfix authentication. It made things a lot simpler and I was able to use the same password file for both Postfix (SMTP) and Dovecot (IMAP) authentication.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kcpusa</title>
		<link>http://dannorth.net/2007/09/09/virtual-mailboxes-with-courier-imap-and-postfix/#comment-9632</link>
		<dc:creator><![CDATA[kcpusa]]></dc:creator>
		<pubDate>Tue, 25 Oct 2011 18:44:37 +0000</pubDate>
		<guid isPermaLink="false">http://dannorth.net/2007/09/virtual-mailboxes-with-courier-imap-and-postfix#comment-9632</guid>
		<description><![CDATA[Great post!! Comments by matteo helped too. Everything seems to work well. Just one comment to newer users like myself: do not use virtual alias domains and virtual mailbox domains configurations together in main.cf - it is either or!!

My mails are being delivered to virtual mailboxes however I am perplexed as to how to access them. I tried using squirrelmail but I can only access mails for my hosted domain and not for my virtual mailboxes. Any suggestions??]]></description>
		<content:encoded><![CDATA[<p>Great post!! Comments by matteo helped too. Everything seems to work well. Just one comment to newer users like myself: do not use virtual alias domains and virtual mailbox domains configurations together in main.cf &#8211; it is either or!!</p>
<p>My mails are being delivered to virtual mailboxes however I am perplexed as to how to access them. I tried using squirrelmail but I can only access mails for my hosted domain and not for my virtual mailboxes. Any suggestions??</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: matteo</title>
		<link>http://dannorth.net/2007/09/09/virtual-mailboxes-with-courier-imap-and-postfix/#comment-9350</link>
		<dc:creator><![CDATA[matteo]]></dc:creator>
		<pubDate>Thu, 10 Feb 2011 00:39:48 +0000</pubDate>
		<guid isPermaLink="false">http://dannorth.net/2007/09/virtual-mailboxes-with-courier-imap-and-postfix#comment-9350</guid>
		<description><![CDATA[OH SHIT! Here is the error:

  # userdb fred set uid=vmail gid=vmail home=/home/vhosts/example.com/fred mail=/home/vhosts/example.com/fred

You have to use the NUMERIC uid and gid, not the user and group&#039;s name. It seems funny to me that nobody has mentioned this: does everybody understand as obvious that when you write &quot;uid=vmail&quot; you mean have to replace &quot;vmail&quot; with the numeric uid of user vmail?]]></description>
		<content:encoded><![CDATA[<p>OH SHIT! Here is the error:</p>
<p>  # userdb fred set uid=vmail gid=vmail home=/home/vhosts/example.com/fred mail=/home/vhosts/example.com/fred</p>
<p>You have to use the NUMERIC uid and gid, not the user and group&#8217;s name. It seems funny to me that nobody has mentioned this: does everybody understand as obvious that when you write &#8220;uid=vmail&#8221; you mean have to replace &#8220;vmail&#8221; with the numeric uid of user vmail?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: matteo</title>
		<link>http://dannorth.net/2007/09/09/virtual-mailboxes-with-courier-imap-and-postfix/#comment-9348</link>
		<dc:creator><![CDATA[matteo]]></dc:creator>
		<pubDate>Thu, 10 Feb 2011 00:32:20 +0000</pubDate>
		<guid isPermaLink="false">http://dannorth.net/2007/09/virtual-mailboxes-with-courier-imap-and-postfix#comment-9348</guid>
		<description><![CDATA[I&#039;ve followed all the steps. The only difference is I have the mail dirs in /var/spool/virtual/example.com/user1 (user2, etc)  because I had followed another tutorial for setting up postfix.

However everything else is the same. Postfix works fine and actually delivers mail as expected (I have checked the files). However I can&#039;t get courier to work. When I log into the imap server I get this error:

* BYE [ALERT] Fatal error: Account&#039;s mailbox directory is not owned by the correct uid or gid: 
Connection closed by foreign host.

The mail directory do belong to the user vmail of group vmail which are the uid y gid that are set in the userdb file....

Any idea?

thanks
m.]]></description>
		<content:encoded><![CDATA[<p>I&#8217;ve followed all the steps. The only difference is I have the mail dirs in /var/spool/virtual/example.com/user1 (user2, etc)  because I had followed another tutorial for setting up postfix.</p>
<p>However everything else is the same. Postfix works fine and actually delivers mail as expected (I have checked the files). However I can&#8217;t get courier to work. When I log into the imap server I get this error:</p>
<p>* BYE [ALERT] Fatal error: Account&#8217;s mailbox directory is not owned by the correct uid or gid:<br />
Connection closed by foreign host.</p>
<p>The mail directory do belong to the user vmail of group vmail which are the uid y gid that are set in the userdb file&#8230;.</p>
<p>Any idea?</p>
<p>thanks<br />
m.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: matteo</title>
		<link>http://dannorth.net/2007/09/09/virtual-mailboxes-with-courier-imap-and-postfix/#comment-9347</link>
		<dc:creator><![CDATA[matteo]]></dc:creator>
		<pubDate>Wed, 09 Feb 2011 23:06:30 +0000</pubDate>
		<guid isPermaLink="false">http://dannorth.net/2007/09/virtual-mailboxes-with-courier-imap-and-postfix#comment-9347</guid>
		<description><![CDATA[Ok I figured out the latter.
The problem was I was doing:

  sudo userdbpw -md5 &#124; userdb fred set systempw 

But this way the pipe is &quot;outside of the sudo&quot;. So I got it to work by doing this:

  sudo su
  userdbpw -md5 &#124; userdb fred set systempw]]></description>
		<content:encoded><![CDATA[<p>Ok I figured out the latter.<br />
The problem was I was doing:</p>
<p>  sudo userdbpw -md5 | userdb fred set systempw </p>
<p>But this way the pipe is &#8220;outside of the sudo&#8221;. So I got it to work by doing this:</p>
<p>  sudo su<br />
  userdbpw -md5 | userdb fred set systempw</p>
]]></content:encoded>
	</item>
</channel>
</rss>

