4 messages in net.sourceforge.lists.courier-users[courier-users] maildrop question
FromSent OnAttachments
Andrey AnaninMay 23, 2007 12:58 am 
Milan ObuchMay 23, 2007 1:45 am 
moussMay 26, 2007 12:48 pm 
fjar Uno al díaMay 30, 2007 1:01 am 
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:[courier-users] maildrop questionActions...
From:Andrey Ananin (ana@onego.ru)
Date:May 23, 2007 12:58:30 am
List:net.sourceforge.lists.courier-users

Hello everyone,

I have one question about maildroprc.

I've installed courier 0.54.0 on FreeBSD 6.2 from ports and successfully configured it for accepting mails.

The problem is that if home directory for user doesn't exist I receive the bounce message ""511 maildrop: Unable to change to home directory."

But I want to automatically create folder and Maildir for user if it doesn't exist.

I hear that it is possible to do it with the maildroprc file, so I created this file in /usr/local/etc/courier/ with the following content:

import HOME

`test -d $HOME`

if( $RETURNCODE != 0 )

{

`mkdir $HOME`

`chown mailnull:mail $HOME`

`/usr/local/bin/maildirmake $HOME/Maildir`

}

to "$HOME"

May be I'm doing something wrong?

And it seems that this file is totally ignored by maildrop because even I add `echo test>/root/test.txt` at the beginning of this file I can't see test.txt file after sending the message.

Thanks.