About one month ago I reported a strange behaviour when sending any mail to
@whatever. It seems that those mails gets lost instead of sending to catchall or
bounce.
I debugged it and wrote that the problem should be one line in qmail-lspawn.c
(please also see my mail below) referred to qmail-ldap-1.03-20010501.
qmail-lspawn.c in function spawn():
772 if (!r[0]) _exit(0); /* <> */
I did not find any comments to this till now.
IMHO this line is the reason for my problem. What's the sense of it? My problem
can be fixed if I just comment out this line.
Is it Bug (Andre, Claudio)?
Regards
Daniel
---------------------- Forwarded by Daniel Erd�s/naw/DE on 05.07.2001 11:35
---------------------------
"Daniel Erd�s" <[EMAIL PROTECTED]> on 30.05.2001 12:36:00
To: [EMAIL PROTECTED]
cc: Ekkehard G�mbel/naw/DE@naw(bcc: qmail-ldap)
Subject: Re: Bug when sending to @domain.tld?
Andre Oppermann wrote:
>> >The bug has to be somewhere else.
>>
>> I think there are two bugs: one bug is in qmail-smtpd.c because it should
reject
>> mails that have no adress name before the '@'. The second bug is in
qmail-send
>
>Nope, it must accapt empty mails.
I don't understand why it should accept mails that do not have any rcpt. Is this
a RFC requirement?
>> (qmail-send.c?) because it reports that the mail has been delivered
successfully
>> although that's wrong.
>
>If there is a bug it would be that this email should not get lost but
>should be delivered to either catch-all@ or bounced.
Ok, maybe I found something in qmail-lspawn.c in function spawn():
771 r[at] = 0;
772 if (!r[0]) _exit(0); /* <> */
773
774 if (chdir(auto_qmail) == -1) _exit(QLX_USAGE);
775
776 /* do the address lookup */
777 rv = qldap_get(&ra, s, fdmess);
I think the problem is in line 772. When the rcpt is empty qmail-lspawn exits.
The ldap lookup to see if there is any user (then it would send to catchall or
bounce) is just afterwards in line 777.
Daniel