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.


Attachment: pgpcRoL6YCU0H.pgp
Description: PGP signature

------------------------------------------------------------------------------
_______________________________________________
courier-users mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to