RCPT Addresses are added to mail headers
Brought to you by:
marcel_may,
waelc
When sending messages via SMTP in 1.3.1b, the addresses given in the "RCPT" command are incorrectly added as "To" E-Mail header fields. This shouldn't be done and relates to section 7.2 of RFC 2821.
The code implementing this behavior is in SmtpManager.Incoming#enque(MovingMessage) lines 128-132. These should just be deleted I guess.
This fixed the same problem I was having.
Moved to https://github.com/greenmail-mail-test/greenmail/issues/7 and should be fixed in GreenMail 1.4.0.