From: mjsherman [mailto:[EMAIL PROTECTED] > > Bowie Bailey wrote: > > From: mjsherman [mailto:[EMAIL PROTECTED] > > > > > > 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 ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click _______________________________________________ courier-users mailing list [email protected] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
