Within the Internet email system, a message transfer agent (MTA),[1] or mail transfer agent,[2] or mail relay is software that transfers electronic mail messages from one computer to another using the Simple Mail Transfer Protocol.[3] In some contexts the alternative names mail server, mail exchanger, and MX host can be used to describe an MTA.
Messages exchanged across networks are passed between mail servers, including any attached data files (such as images, multimedia or documents). These servers also often keep mailboxes for email. Access to this email by end users is typically either via webmail or an email client.