2008/12/28 Tim Lyth <[email protected]>: > Juan, > > As per a previous message from you, you are using a MySQL backend. > There should be an option to specify the home directory for each account. > This in turn should be able to be returned by authlib and therefore save you > from having to build it up yourself. > > HTH, > > Cheers, > Tim Lyth > > Juan Miscaro wrote: > > 2008/12/28 Sam Varshavchik <[email protected]>: > > > Juan Miscaro writes: > > > > I am using maildrop 2.0.4 (which uses authlib by default) on OpenBSD > 4.4. Now I have the following maildroprc file: > > ---------------- > logfile "/var/log/maildrop" > > /^Delivered-To:\s*.+/ > RECIPIENT=getaddr ${MATCH} > > USER="" > DOMAIN="" > if ( ${RECIPIENT} =~ /(.*)@([...@].*)/ ) > { > USER=${MATCH1} > DOMAIN=${MATCH2} > } > else > { > #no domain part > USER=${RECIPIENT} > } > > MAILDIR="/var/spool/virtual_mailboxes/$DOMAIN/$USER/Maildir" > > if (/^X-Spam-Status: Yes/) > { > to $MAILDIR/.Spam/ > } > ---------------- > > Now since maildrop is already informed about where the mail goes (via > authlib) should it not be possible to have a simpler rc file by not > having to build up the mailbox/maildir destination? > > > Only if the courier-authlib configuration explicitly returns the location of > the account's mailbox. > > > Thanks Sam for your response but I need more details! > > How can I make the courier-authlib configuration explicitly return the > location of > the account's mailbox? > > /juan
Well my authmysqlrc file is using MYSQL_HOME_FIELD '/var/spool/virtual_mailboxes' MYSQL_MAILDIR_FIELD virtual_mailbox to determine the maildir but these variables remains undefined from within maildroprc. HOME however does get assigned the value of MYSQL_HOME_FIELD MAILDIR also remains undefined. I've tested all this with echo statements in maildroprc. /juan ------------------------------------------------------------------------------ _______________________________________________ courier-users mailing list [email protected] Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users
