14 messages in net.sourceforge.lists.courier-maildropRe: [maildropl] "unknown user" if can...
FromSent OnAttachments
Chris MastersOct 14, 2003 8:02 am 
Chris MastersOct 14, 2003 9:06 am 
John LockeOct 14, 2003 9:35 am 
Martin List-PetersenOct 15, 2003 2:37 am 
Chris MastersOct 15, 2003 3:52 am 
John LockeOct 15, 2003 10:34 am 
Rob HuttonOct 15, 2003 11:02 am 
Chris MastersOct 16, 2003 5:03 am 
Arnaud PignardJan 28, 2004 9:07 pm 
Chris MastersJan 30, 2004 10:48 am 
Arnaud PignardJan 30, 2004 3:26 pm 
Robbie ScottJan 31, 2004 9:58 pm 
Devin RubiaFeb 2, 2004 7:06 am 
Chris MastersFeb 3, 2004 1:31 am 
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] "unknown user" if cannot connect to mysqlActions...
From:John Locke (ma@freelock.com)
Date:Oct 14, 2003 9:35:43 am
List:net.sourceforge.lists.courier-maildrop

Yikes! Thanks for the heads up...

You can add my vote to get this patched...

Chris Masters wrote:

OK, oops. I'm relying to my own mail here.

It seems that the function get_user_mysql in mdmysql.c only ever returns NULL if any problems are encountered.

Would it not be better to return an exit code if there is a:

1) database connection error - so that main.C can return EX_TEMPFAIL

2) general database error - that main.C can return EX_TEMPFAIL

3) connot find user error - so that main.C can return EX_NOUSER

If there is any uncertainty about the database (ldap or mysql) being up and correct tempfail rather than bounce!

Anyone?

Do I feel a patch coming on?

--- Chris Masters <roti@yahoo.com> wrote:

Hi All,

I use maildrop to deliver mails to virtual users located in MySQL.(from Postfix).

If maildrop cannot connect to the database it returns "unknown user" instead of a 451 (tempfail) error code:

Oct 14 14:35:48 lon-quar-01 postfix/pipe[2044]: [ID 197553 mail.info] A79E2D7388: to=<roti@wardrobes.co.uk>, relay=maildrop, delay=55, status=bounced (user unknown. Command output: Could not connect to database 192.168.0.30 Could not connect to database 192.168.0.31 Invalid user specified. )

Has anyone got a fix?

Is this a known problem?

Thanks, Chris