Casey Allen Shobe wrote:
Hi all, I have a rather important and hopefully rather easy to address question:
I use both dspam and maildrop in conjunction with qmail+vpopmail.
dspam is set up like so: # cat /var/vpopmail/domains/osss.net/.qmail-cshobe | /usr/bin/dspam --user [EMAIL PROTECTED] --deliver=innocent,spam --mode=teft
DSpam then calls `maildrop -d vpopmail` as the local delivery agent, and in the maildroprc file, I have the following:
As you can see, both use the $HOST and $EXT environment variables set by qmail. This makes everything work fine and well, most of the time.
The problem is that I have username aliases, as well as domain aliases.
So sometimes $EXT is 'casey' and $HOST is 'aixos.net', but the delivery address is still [EMAIL PROTECTED]
I need to find a way to get variables set for the actual delivery address, because this scenario will break both maildrop (which I've hacked around by adding symlinks in /var/vpopmail) and dspam (which treats every distinct --user argument as a separate user account.
How can this be done? Many thanks in advance for any advice.
VHOME=`/home/vpopmail/bin/vuserinfo -d [EMAIL PROTECTED]