[Raw Msg Headers][Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
smtp-policy and "_"-starting mailboxes
"_"-starting mailboxes are absolutely legal from RFC 2821/2822
point of view, but Zmailer policy-builder always treat
"_string" as _tag (alias).
My patch to allow:
_user@do.main rejectsource +
attached. I hope nobody is using "_tag0@tag1" keys in policy database ;)
--- smtpserver/readpolicy.c Mon Aug 18 13:14:51 2003
+++ WORK/smtpserver/readpolicy.c Mon Oct 27 13:35:33 2003
@@ -142,10 +142,10 @@
*s++ = 0;
return parse_ip_policy(pbuf, str, s);
}
- if (*str == '_')
- return parse_gen_policy(pbuf, str, P_K_TAG);
if (strchr(str,'@') != NULL)
return parse_gen_policy(pbuf, str, P_K_USER);
+ if (*str == '_')
+ return parse_gen_policy(pbuf, str, P_K_TAG);
return parse_gen_policy(pbuf, str, P_K_DOMAIN);
}
-
To unsubscribe from this list: send the line "unsubscribe zmailer" in
the body of a message to majordomo@nic.funet.fi