debian/rules: Use `git' potty wrapper.
[qmail] / qmail-smtpd.c
index 82ac46a..88f4ea6 100644 (file)
@@ -53,7 +53,7 @@ void straynewline() { out("451 See http://pobox.com/~djb/docs/smtplf.html.\r\n")
 
 void err_bmf() { out("553 sorry, your envelope sender is in my badmailfrom list (#5.7.1)\r\n"); }
 void err_nogateway() { out("553 sorry, that domain isn't in my list of allowed rcpthosts (#5.7.1)\r\n"); }
-void err_badaddr() { out("553 unknown mailbox (#5.1.1)\r\n"); }
+void err_badaddr() { out("550 unknown mailbox (#5.1.1)\r\n"); }
 void err_unimpl() { out("502 unimplemented (#5.5.1)\r\n"); }
 void err_syntax() { out("555 syntax error (#5.5.4)\r\n"); }
 void err_wantmail() { out("503 MAIL first (#5.5.1)\r\n"); }
@@ -300,7 +300,7 @@ void smtp_rcpt(arg) char *arg; {
     if (!addrallowed()) { err_nogateway(); return; }
   if (ac_fd != -1) {
     int rc;
-    if (addrcheck(ac_fd, addr.s, &rc) < 0) {
+    if (addrcheck(ac_fd, addr.s, mailfrom.s, &rc) < 0) {
       if (errno == error_nomem)
        die_nomem();
       else