1 message in net.sourceforge.lists.courier-maildrop[maildropl] qmail+courier-imap+maildr...
FromSent OnAttachments
Frank BenksteinFeb 24, 2004 5:54 pm 
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] qmail+courier-imap+maildrop+virtual-domainsActions...
From:Frank Benkstein (benk@math.tu-dresden.de)
Date:Feb 24, 2004 5:54:43 pm
List:net.sourceforge.lists.courier-maildrop

Hi,

I got a question about maildrop, but first I have to explain my current setup. As stated in the subject I'm using qmail and courier-imap. Now I want to manage my virtual domains thru the courier authentification data. The .qmail-default in one domain simply looks like:

<snip> |/usr/bin/maildrop || exit 77 </snip>

The corresponding .mailfilter contains:

<snip> import RECIPIENT

#rewrite formerly rewritten recipient adresses RECIPIENT1=`echo ${RECIPIENT} | egrep -o -e "^[^(\@)]*" | egrep -o "[^-]*$"` RECIPIENT2=`echo ${RECIPIENT} | egrep -o -e "^[^(\@)]*" | egrep -o "^[^-]*"`

RECIPIENT="${RECIPIENT1}@${RECIPIENT2}"

MAILDIR=`/usr/local/sbin/courieruserinfo -m ${RECIPIENT} | egrep -o -e "[^(maildir=)].*"`

if (length($MAILDIR) > 0) { if( `test -d ${MAILDIR} && echo 1 || echo 0` == "1" ) { to $MAILDIR } else { echo "Maildir does not exist: $MAILDIR" EXITCODE=77 exit } } else { echo "No user here by that name, sorry." EXITCODE=77 exit } </snip>

I'm a newbie at using maildrop but it works so far. My problem is now:

Why does the user thru whose user id the mail is delivered need a shell? Couldn't maildrop start those commands without one or make it optional?

I want all those virtual domain users simply have no or ssh only shells.

Is there a better solution doing what I want?

courieruserinfo is from [1] and I'm using courierpasswd for smtp auth.

Bye and TIA

Frank Benkstein.

PS: Sorry for bad English.

[1]: http://www.arda.homeunix.net/store/