report a bug |  advanced search |  statistics |  developer log in/out
Bug #57 SMTP client (mlmmj-send) not RFC compliant
Submitted: 2014-06-01 13:00 UTC Modified: 2016-05-10 02:09 UTC
From: m at rtijn dot net Assigned: maintainer at mlmmj dot org
Status: Closed
Mlmmj Version: 1.2.18.0 OS: Debian Linux
MTA: Exim MTA Version: 4.80
 [2014-06-01 13:00 UTC] m at rtijn dot net
Description:
------------
The SMTP client sends SMTP commands that are not in compliance with RFC 5321.

See mail-functions.c, functions write_mail_from() and write_rcpt_to().

During the SMTP dialogue, mlmmj-send issues 'MAIL FROM: <%s>' and 'RCPT TO: <%s>', with a single whitespace between the colon and the sender/recipient address. Whitespace in that position is not allowed according to RFC 5321, section 3.3. I quote:

"Since it has been a common source of errors, it is worth noting that spaces are not permitted on either side of the colon following FROM in the MAIL command or TO in the RCPT command."

Please remove the whitespace.

Test script:
---------------
Nothing in particular, just send a message to any mailing list and watch mlmmj-send's SMTP output.

Expected result:
----------------
MAIL FROM:<%s>
RCPT TO:<%s>

Actual result:
--------------
MAIL FROM: <%s>
RCPT TO: <%s>