5 messages in net.sourceforge.lists.courier-usersRE: [courier-users] Courier Help
FromSent OnAttachments
mjshermanApr 22, 2005 1:21 pm 
Bowie BaileyApr 22, 2005 1:26 pm 
Bowie BaileyApr 22, 2005 1:46 pm 
mjshermanApr 22, 2005 1:50 pm 
Bowie BaileyApr 22, 2005 2:07 pm 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:RE: [courier-users] Courier HelpActions...
From:Bowie Bailey (Bowi@BUC.com)
Date:Apr 22, 2005 1:46:05 pm
List:net.sourceforge.lists.courier-users

From: mjsherman [mailto:mjsh@chartermi.net]

Bowie Bailey wrote:

From: mjsherman [mailto:mjsh@chartermi.net]

Sorry for being the new guy, but I didn't see any forums anyplace for this kinda stuff. I'm running Gentoo, learning to setup an email server. I got courier installed and running for the most part (using MySQL auth) SMTP delivers mail to the right locations (virual user boxes), however, it makes .maildir as a file, not a directory... Which causes problems later.

Heres an example: I make dir: /home/mail/domain/user if I mkdir ./.maildir the SMTP fails to deliver however, if I don't create the maildir, courier creates it for me (not a directory), a file called .maildir with -rw------- perms.

You need to create the maildir with the maildirmake command.

maildirmake .maildir

Courier will deliver to maildirs if they exist. Otherwise, it will create an mbox.

Well theres the problem =P Is there any way to have courier auto-make a maildir instead of mbox? (seems like an appropriate feature)

Please keep list replies on the list...

Unfortunately, Courier will not autocreate maildirs.

If you are using Maildrop, you can add a check in the maildroprc or .mailfilter to create the directory if it is not there. Quite a few people don't like this idea since that check has to run for every email delivered. If you've got a high-volume server, these checks can add up to a significant slowdown.

A better idea would be to add a maildir structure to /etc/skel or find some other way to have the maildir automatically created when you add the user.

You can also use a delivery line like this:

to "./.maildir/"

This will not create the directory, but it will cause delivery to fail and keep the messages in the queue rather than creating an mbox. That way, when you notice the mail backing up, you can create the maildir and the messages will be delivered on the next attempt.

Bowie