2 messages in net.sourceforge.lists.courier-maildrop[maildropl] Maildroprc to create mail...
FromSent OnAttachments
Renato Otranto Jr.Oct 17, 2006 12:02 pm 
Devin RubiaOct 18, 2006 6:25 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:[maildropl] Maildroprc to create maildirsActions...
From:Renato Otranto Jr. (rena@rac.com.br)
Date:Oct 17, 2006 12:02:16 pm
List:net.sourceforge.lists.courier-maildrop

Hello,

I'm using postfix + maildrop autheticating against an AD server. My maildrop version is 2.0.2.

I need to create the new maildirs automatically, so, I wrote the following /etc/maildroprc file:

--------------------------------------------------------------- MAIL = "$HOME" QUOTA="$MAILDIRQUOTA"'S'

`echo "$HOME --> $QUOTA" >> /tmp/result`

`test -d $MAIL` if( $RETURNCODE == 1) { `mkdir -m 0700 -p $MAIL` `maildirmake $MAIL/Maildir` }

`test -e $MAIL/Maildir/maildirsize` if ($RETURNCODE == 1) { `maildirmake -q $QUOTA $MAIL/Maildir` }

---------------------------------------------------------------

After some tests, I observed that if the maildir exists, the maildroprc file is read normally, but if the maildir don't exists yet, the maildroprc file is not read. I could observe this, with the 'echo' command at the begin of file.

If the maildir exists, but it don´t have quota setted up (with maildirsize file) after the maildir has been created manually, the maildroprc is able to set the maildir quota file.

Anybody knows why my maildroprc file is not read if the maildir don´t exists?

Thanks for helps.