Hi,

I have been pondering this problem for a few days now and can't seem to
find a solution. I am trying to implement per user spam/virus prefs
using maildrop as the delivery agent. It is all working apart from two
problems, aliases ad catchall.

Maildrop script (partial):

VPOP="| /home/vpopmail/bin/vdelivermail '' bounce-no-mailbox"
# Get home directory to deliver to
VHOME=`/home/vpopmail/bin/vuserinfo -d [EMAIL PROTECTED]

# If it wasn't a valid user, deliver again with vdelivermail 
# in case it is an alias
if ($RETURNCODE != 0)
{
        to "$VPOP"
}

The problem is that if I put 'to "! <catchall>"' in the if statement it
will bounce for aliases (because vuserinfo doesn't check if the email is
an alias). I could run valias -s <email> but the valias exit code is
always 0 even if it is an invalid alias.

So, does anyone know how to make catchalls and aliases work nicely with
maildrop?

Also, I think I found a bug in valias (w/ MySQL). If I run the following
commands this is what I get:

[EMAIL PROTECTED]:~# /home/vpopmail/bin/valias -s cat.net
[EMAIL PROTECTED]:~# /home/vpopmail/bin/valias -i [EMAIL PROTECTED]
[EMAIL PROTECTED]
[EMAIL PROTECTED]:~# /home/vpopmail/bin/valias -i [EMAIL PROTECTED]
[EMAIL PROTECTED]
Error: alias [EMAIL PROTECTED] -> [EMAIL PROTECTED] already exists.
[EMAIL PROTECTED]:~# /home/vpopmail/bin/valias -i [EMAIL PROTECTED]
[EMAIL PROTECTED]
Error: alias [EMAIL PROTECTED] -> [EMAIL PROTECTED] already exists.
[EMAIL PROTECTED]:~# /home/vpopmail/bin/valias -s cat.net
[EMAIL PROTECTED] -> [EMAIL PROTECTED]

valias won't let me add any more than 1 alias to the domain.... or so it
seems. The valias table shows:

mysql> select * from valias;
+-------+---------+--------------------+
| alias | domain  | valias_line        |
+-------+---------+--------------------+
| dog   | cat.net | [EMAIL PROTECTED] |
+-------+---------+--------------------+


Is this a bug or am I missing something?

Cheers,
Jonathan


Reply via email to