본문 바로가기

James Server v3/SMTP

수신자 메일 계정 마지막이 마침표 (.) 로 끝날 경우, 553 5.1.3 Syntax error in recipient address

[RFC-5321]


4.1.2.  Command Argument Syntax


 Local-part     = Dot-string / Quoted-string
                  ; MAY be case-sensitive


   Dot-string     = Atom *("."  Atom)

 

[RFC-5322]


 3.2.3.  Atom


   Several productions in structured header field bodies are simply
   strings of certain basic characters.  Such productions are called
   atoms.

   Some of the structured header field bodies also allow the period
   character (".", ASCII value 46) within runs of atext.  An additional
   "dot-atom" token is defined for those purposes.

      Note: The "specials" token does not appear anywhere else in this
      specification.  It is simply the visible (i.e., non-control, non-
      white space) characters that do not appear in atext.  It is
      provided only because it is useful for implementers who use tools
      that lexically analyze messages.  Each of the characters in
      specials can be used to indicate a tokenization point in lexical
      analysis.


Resnick                     Standards Track                    [Page 12]

 
RFC 5322                Internet Message Format             October 2008


   atext           =   ALPHA / DIGIT /    ; Printable US-ASCII
                       "!" / "#" /        ;  characters not including
                       "$" / "%" /        ;  specials.  Used for atoms.
                       "&" / "'" /
                       "*" / "+" /
                       "-" / "/" /
                       "=" / "?" /
                       "^" / "_" /
                       "`" / "{" /
                       "|" / "}" /
                       "~"

   atom            =   [CFWS] 1*atext [CFWS]

   dot-atom-text   =   1*atext *("." 1*atext)

   dot-atom        =   [CFWS] dot-atom-text [CFWS]

   specials        =   "(" / ")" /        ; Special characters that do
                       "<" / ">" /        ;  not appear in atext
                       "[" / "]" /
                       ":" / ";" /
                       "@" / "\" /
                       "," / "." /
                       DQUOTE

   Both atom and dot-atom are interpreted as a single unit, comprising
   the string of characters that make it up.  Semantically, the optional
   comments and FWS surrounding the rest of the characters are not part
   of the atom; the atom is only the run of atext characters in an atom,
   or the atext and "." characters in a dot-atom.

 

 


 

SPEC 에는 끝에 . 넣지 말라고 해도 넣어서 만들어주는 타 메일서버 회사들이 존재하여 풀어줘야 한다.

 

두 프로젝트의 MailAddress 를 커스터 마이징 한다.

 

1. protocols-smtp-1.6.2 를 naonsoft-james-server-smtp 에 포함한다.

 

http://svn.apache.org/repos/asf/james/protocols/trunk/smtp/

 

2. apache-mailet-2.4