The last remaining issue is that courierdeliver is storing messages in mbox format in a file called $HOME/Maildir. From the source I found out that if the maildir doesn't exist the code path causes it to deliver in mbox format to the specified mailbox path (in this case ./Maildir). I first tried creating a Maildir directory but that didn't work. From qmail documents I determined that a Maildir needs a tmp, new and cur subdirectory, and once I created these it started working as expected. Is there any way to automate this? Or should this manual step be taken for each account being added?
Hello John,
I guess the easiest way would be to create this Maildir in /etc/skel, which normally is the template for the HOME-dir of new users.
(maildirmake /etc/skel/Maildir).
Another way would be delivering with maildrop, having a /etc/courier/maildroprc:
------------
DEFAULT=Maildir
SPAMFLD=$DEFAULT.Spam
SHELL=/bin/ash
# create some needed directories
`test -d "$DEFAULT"`
if( $RETURNCODE == 1 )
{
`maildirmake "$DEFAULT"`
}
`test -d "$SPAMFLD"`
if( $RETURNCODE == 1 )
{
`maildirmake "$SPAMFLD"`
}
-------------
I am using /bin/ash here, as it will start much faster and use less memory than a bash, me thinks the *BSD-sh is more ash than bash ;-).
Regards Mirko
------------------------------------------------------- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click _______________________________________________ courier-users mailing list [EMAIL PROTECTED] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
