logo       

Calling users' .mailfilter from global maildroprc: msg#00051

mail.maildrop

Subject: Calling users' .mailfilter from global maildroprc

FreeBSD 4.4-RELEASE
qmail 1.03
vpopmail 5.4.0rc1
SqWebmail 3.3.5
maildrop 1.5.2

What I'm attempting to do is call a users' .mailflter from the domain-wide .qmail-default file of vpopmail. This is working correctly except for one thing: SqWebmail sets up the .mailfilter file's Maildir paths relative to the user's home directory. Since the .mailfilter is being called from the user's parent directory, maildrip tries to deliver the email to vpopmail/domain/domain.com/Maildir/--rather than vpopmail/domain/domain.com/user/Maildir.

Here's my .qmail-default:

| /usr/local/bin/maildrop .qmail-default-mailfilter

Here's my .qmail-default-mailfilter:

VHOME=`/usr/local/vpopmail/bin/vuserinfo -d $EXT@$HOST`
MAILFILTER="$VHOME/.mailfilter"
VPOP="| /usr/local/vpopmail/bin/vdelivermail '' bounce-no-mailbox"
logfile "/usr/local/vpopmail/domains/.maildroplog"
log "EXT is $EXT"
log "HOST is $HOST"
log "VHOME is $VHOME"
log "VPOP is $VPOP"
log "MAILFILTER is $MAILFILTER"

if ( $SIZE > 0 )
{
include "$MAILFILTER"
}

to "$VPOP"

Can anyone offer suggestions, or pointers to docs, for making this work?



-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise