Bookmarks

MSA — mail submission agent

A mail server service that accepts messages from mail clients after a login and passes them to the MTA. It listens on ports 587 and 465.

Also: submission service, port 587, message submission

checked 18 Nov

All terms

An MSA is the entry point for users: this is where a mail client hands over a message to be sent. Unlike port 25, where messages arrive from other servers without a login, authentication is required here.

Ports and encryption

PortNameHow encryption is enabled
587submission (RFC 6409)the client connects unencrypted and switches to TLS with the STARTTLS command
465submissions (RFC 8314)TLS starts right after the connection (implicit TLS)
25smtp (RFC 5321)for transfer between servers, not for users

RFC 6409 (November 2011) separates message submission from transfer between servers: submission normally uses port 587 and can have its own security requirements and policies, while transfer stays on port 25. RFC 8314 (January 2018) prefers implicit TLS on port 465 and, for a transition period, recommends supporting both: 465 and STARTTLS on 587.

What an MSA does

It checks that the user has logged in (most often with SASL) and lets them send in their own name. It adds missing headers: Date, Message-ID. It refuses a message with a 550 reply if it is clearly not acceptable, and then passes it to the MTA. Many networks block outgoing port 25 and let user mail through only via submission.

ini
# Postfix master.cf: submission on port 587submission inet n - n - - smtpd  -o smtpd_tls_security_level=encrypt  -o smtpd_sasl_auth_enable=yes

Sources

the term is written from these pages

Verified 18 Nov

Not to be confused with

what it is mixed up with and how it differs

  • MTAmail transfer agent

    An MTA accepts messages from other servers on port 25 and passes them on; it does not need a login.

  • open relay

    An open relay accepts mail from anyone, while an MSA admits only users who have logged in.

In depth in the references

where the topic is covered in detail