From: Jason "Hindu" Kushmaul [mailto:[EMAIL PROTECTED]
>
> I find it hard to believe that courier pop3/imap supports the
> maildir format, but the esmtp does not, so I'm sure I've messed
> something up but I've exhausted my resources. Google was a good
> friend, got me pretty far with this setup, but this one is killing
> me.
>
> I have Courier 0.42.2 from courier-mta.org which I have compiled
> the source, setup mysql tables with one domain and one user in
> them. I can authenticate and receive mail via pop3 fine right now
> no problem.
>
> I can also send outbound email fine, by using smtp auth + mysql.
>
> My only problem, is that when I send Inbound mail to this user,
> from some completly different email address and domain (using a
> different mailserver), the message gets all the way through, except
> esmtpd (or courierd actually isn't it?) places the message in
> '/usr/local/virtual/<userdir>/Maildir', which is just a file. When
> I move this "Maildir" file into the
> /usr/local/virtual/<userdir>/new directory, my pop client downloads
> it and it is removed from the new directory.
Courier and Maildrop will deliver to a maildir, but they won't create
one. If the maildir doesn't exist, Courier creates an mbox instead.
> /usr/lib/courier/etc/courierd
>
> DEFAULTDELIVERY=./Maildir
>
> mysql> select username,maildir,home from mailbox;
>
+------------------------------+--------------------------------------------
------+--------------------------------------------------+
> | username | maildir
| home |
>
+------------------------------+--------------------------------------------
------+--------------------------------------------------+
> | [EMAIL PROTECTED] | /usr/local/virtual/[EMAIL PROTECTED]/
| /usr/local/virtual/[EMAIL PROTECTED]/ |
>
+------------------------------+--------------------------------------------
------+--------------------------------------------------+
It looks like the problem is that you have set DEFAULTDELIVERY to be
'$HOME/Maildir', but in your mailbox DB, you set the maildir to be
'$HOME'. IMO, having the homedir double as the maildir just causes
confusion.
Change the maildir field in the DB to be
'/usr/local/virtual/[EMAIL PROTECTED]/Maildir'.
Then logon as the user who owns your virtual accounts and do this to
create the maildir:
cd /usr/local/virtual/[EMAIL PROTECTED]
maildirmake Maildir
You will need to copy any existing mail from './new', './cur',
'./.Trash', and any other maildir directories into the corresponding
directory under './Maildir'.
This should get the mail to be delivered to the proper place. With
this setup, your virtual user's home directories look like real user
directories and Courier finds the maildir where it expects it.
Alternately, if you really want to keep the setup you have, you can
try doing this:
DEFAULTDELIVERY=.
or perhaps this:
DEFAULTDELIVERY=$HOME
(untested)
Bowie
-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
_______________________________________________
courier-users mailing list
[EMAIL PROTECTED]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users