Please, note, that RFC821 is obsolete, RFC5321 is a replacement http://tools.ietf.org/html/rfc5321#section-4.5.2