Closed
Description
It looks like the MAIL parsing in strict mode expects the only argument to be the FROM argument, but the SMTP spec allows for optional mail-parameters
that are associated with service extensions. See https://tools.ietf.org/html/rfc5321#section-3.3.
It might be safe to ignore these parameters, but right now the server returns a 501 because it expects the argument to end with a >
.
Example command from the client:
MAIL FROM:<example@example.com> AUTH=<username>
Response from go-smtp:
501 Was expecting MAIL arg syntax of FROM:<address>
It seems like KMail includes these additional parameters (see https://www.reddit.com/r/ProtonMail/comments/evadaz/need_help_setting_up_outgoing_with_kmail/), as well as emailrelay.