dma: add comments for ESMTP support
authorSimon Schubert <corecode@dragonflybsd.org>
Tue, 21 Jul 2009 00:29:02 +0000 (02:29 +0200)
committerSimon Schubert <corecode@dragonflybsd.org>
Tue, 21 Jul 2009 22:13:16 +0000 (00:13 +0200)
libexec/dma/net.c

index 6521073..9be00f2 100644 (file)
@@ -393,6 +393,8 @@ deliver_remote(struct qitem *it, const char **errmsg)
                        goto out;
        }
 
+       /* XXX allow HELO fallback */
+       /* XXX record ESMTP keywords */
        send_remote_command(fd, "EHLO %s", hostname());
        if (read_remote(fd, 0, NULL) != 2) {
                syslog(LOG_WARNING, "remote delivery deferred: EHLO failed: %s", neterr);
@@ -445,9 +447,11 @@ deliver_remote(struct qitem *it, const char **errmsg)
                return (1); \
        }
 
+       /* XXX send ESMTP ENVID, RET (FULL/HDRS) and 8BITMIME */
        send_remote_command(fd, "MAIL FROM:<%s>", it->sender);
        READ_REMOTE_CHECK("MAIL FROM", 2);
 
+       /* XXX send ESMTP ORCPT */
        send_remote_command(fd, "RCPT TO:<%s>", it->addr);
        READ_REMOTE_CHECK("RCPT TO", 2);