* Added "instant expunge" and "allow spoofing" site config options.
[citadel.git] / citadel / serv_smtp.c
index 91e8ed50ad9b1083aeba9bec33b493884dbd0caf..bb996538ad0374b00fea482a47ae31e6acac4829 100644 (file)
@@ -562,9 +562,9 @@ void smtp_mail(char *argbuf) {
        }
 
        /* Otherwise, make sure outsiders aren't trying to forge mail from
-        * this system.
+        * this system (unless, of course, c_allow_spoofing is enabled)
         */
-       else {
+       else if (config.c_allow_spoofing == 0) {
                process_rfc822_addr(SMTP->from, user, node, name);
                if (CtdlHostAlias(node) != hostalias_nomatch) {
                        cprintf("550 5.1.8 "