2 messages in net.sourceforge.lists.courier-maildropRe: [maildropl] Ignore "unknown user"...
FromSent OnAttachments
email builderMay 21, 2005 2:15 pm 
email builderMay 21, 2005 2:27 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:Re: [maildropl] Ignore "unknown user" for one domain?Actions...
From:email builder (emai@yahoo.com)
Date:May 21, 2005 2:27:22 pm
List:net.sourceforge.lists.courier-maildrop

--- email builder <emai@yahoo.com> wrote:

Hello,

I am a happy Maildrop admin, but recently have developed the need to do something a little out of the ordinary.

I have a "special" domain for which I want to accept any and all email just long enough to filter it in the global maildroprc file (where it will be resent elsewhere). I do NOT have this domain set up in my auth backend (MySQL), since it is NOT a valid/real domain on the machine where Maildrop runs.

Naturally, mails to this "special" domain get bounced with:

relay=maildrop, delay=3, status=bounced (user unknown. Command output: Invalid user specified. )

My question is if I am missing some simple config item somewhere that will let me tell Maildrop to accept any and all mails for some domain without needing to do any auth lookup (since that will fail). Or is there any special (catchall?) syntax I can use for the account name in the backend (MySQL in my case, but should not be relevant) so the lookup will not fail?

Ah - perhaps this in maildropmysql.conf...??

where_clause ""

I am thinking:

where_clause " OR (domain='$DOMAIN' AND username='SPECIAL_CATCHALL') "

But there are a few big questions here:

1) where_clause supposedly has to start with "AND". Is this true? will "OR" fail? If so, can I do this: " AND 1=1 OR (domain='$DOMAIN' AND username='SPECIAL_CATCHALL') "

2) I have no idea if $DOMAIN is a legitimate substitution. Does Maildrop expose variables like that in this context?

3) I think this will work (but feels somewhat hacked) with a single entry in my user account database: Field Value username SPECIAL_CATCHALL domain special.domain.tld <all other fields> junk - not used