* domain.c: use qsort() to sort MX records by preference. Why have a
[citadel.git] / citadel / serv_smtp.c
index 44164aefa23a1b7d08b471b10d1e52817e369fe8..6f8fa715868664d3fbd53f69e4e218e8447d18c3 100644 (file)
@@ -366,10 +366,13 @@ void smtp_mail(char *argbuf) {
        striplt(SMTP->from);
        stripallbut(SMTP->from, '<', '>');
 
+       /* We used to reject empty sender names, until it was brought to our
+        * attention that RFC1123 5.2.9 requires that this be allowed.
        if (strlen(SMTP->from) == 0) {
                cprintf("501 5.1.7 Empty sender name is not permitted\r\n");
                return;
        }
+        */
 
        /* If this SMTP connection is from a logged-in user, force the 'from'
         * to be the user's Internet e-mail address as Citadel knows it.