允许未认证的mailpost
# cd mail2bbs
# diff qmailpost.c qmailpost.c.031109
136,138d135
< char userid[512];
< char passwd[512];
<
156a154,155
> char userid[IDLEN+1];
> char passwd[STRLEN];
158,159c157
< userid[0]=0;
< passwd[0]=0;
---
>
277a276
> /*get_author_from_address(sender, author, sizeof(author));*/
281,284c280,284
< /* auth failure, fallback to old method */
< get_author_from_address(sender, author, sizeof(author));
< strncpy(newmessage.owner, author, IDLEN+1);
< } else strncpy(newmessage.owner, user->userid, IDLEN+1);
---
> unlink(fname);
> return -1;
> }
>
> strncpy(newmessage.owner, user->userid, IDLEN+1);
305,306d304
< if ((!user)&&(userid[0])) fprintf(fout, "%s\n", userid);
< if ((!user)&&(passwd[0])) fprintf(fout, "%s\n", passwd);
--
FROM yesterday