Idézem/Quoting Sam Varshavchik <mr...@courier-mta.com>: > Alexei Batyr' writes: > >> Sam Varshavchik writes: >> >>> SZÉPE Viktor writes: >>> >>>> Hello! >>>> >>>> Could you help me where is the syntax error in this address? >>>> >>>> Jun 6 21:39:09 szerver4 courieresmtpd: >>>> error,relay=::ffff:195.228.245.161,from=<optimail-%9566%- >>>> %22342...@optimail.hu>: 517 Syntax >>>> error. >>>> >>>> AFAIK this is a very high volume newsletter. >>> >>> Unfortunately, this "high volume newsletter" violates RFC 2822 with its >>> email address. >>> >>>> From section 3.4.1 of RFC 2822: >>> >>> addr-spec = local-part "@" domain >>> >>> local-part = dot-atom / quoted-string / obs-local-part >>> >>> In this case, the "dot-atom" form of local-part applies. >>> >>> Section 3.2.4 spcifies dot-atom as follows: >>> >>> atext = ALPHA / DIGIT / ; Any character except controls, >>> "!" / "#" / ; SP, and specials. >>> "$" / "%" / ; Used for atoms >>> "&" / "'" / >>> "*" / "+" / >>> "-" / "/" / >>> "=" / "?" / >>> "^" / "_" / >>> "`" / "{" / >>> "|" / "}" / >>> "~" >>> >>> atom = [CFWS] 1*atext [CFWS] >>> >>> dot-atom = [CFWS] dot-atom-text [CFWS] >>> >>> dot-atom-text = 1*atext *("." 1*atext) >>> >>> In other words, the "%" character is a prohibited character in email >>> addresses. >>> >> Hmm, AFAICS "%" explicitly indicated in 3.2.4 as _allowed_ character. I >> couldn't find in recent logs incoming mail with "%" in address, but this >> log line proves that courier outgoing smtp module considers such address as >> valid: >> courieresmtp: id=1A5BA195.0000000056F2911C. >> 00003204,from=<eve...@pcweek.ru>,addr=<r.voron...@gs1ru.org>: 250 Requested >> mail action okay, completed > > I read this, initially, as excluding the listed characters, focusing > on the "except controls, SP, and specials" comment, interpreting > "specials" as referencing the given list. But on another read, I > must admit that those characters are allowed. > > The actual error here is that % appears next to @, tripping the > check that special characters may not be consecutive. There are > reasons for that; namely historic, legacy, address rewriting rules > (the makepercenthack man page has the details). Don't see any reason > not to get rid of them, but this won't be a quick fix. > > Generally, using special characters, like that, in email addresses > is not a very good idea.
Thank you for caring about my percent signs. Could you develop an option for Courier that enables "$" and "%" in email addresses? Of course default=disabled. Thank you! SZÉPE Viktor -- +36-20-4242498 s...@szepe.net skype: szepe.viktor Budapest, III. kerület ------------------------------------------------------------------------------ What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic patterns at an interface-level. Reveals which users, apps, and protocols are consuming the most bandwidth. Provides multi-vendor support for NetFlow, J-Flow, sFlow and other flows. Make informed decisions using capacity planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e _______________________________________________ courier-users mailing list courier-users@lists.sourceforge.net Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users