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