# SMTP (the Simple Mail Transfer Protocol)

> SMTP (Simple Mail Transfer Protocol) is the standard method for sending emails. Your email program hands a message to the SMTP server, also called the outgoing mail server, and that server delivers it to the recipient’s mail server. Other protocols, usually IMAP, are responsible for fetching and reading emails.

Page: https://voxcrm.ch/en/glossary/smtp/
Last updated: 3 December 2026

## How an email travels with SMTP

Technically, an email is a text with header lines that is passed on from server to server. SMTP governs these handovers. The protocol is one of the oldest on the internet and is described in the standard RFC 5321. It works with short plain-text commands, to which the server replies with three-digit codes.

1. **Submit:** Your email program connects to your provider’s SMTP server, logs in with a username and password and hands over the message.
2. **Find the recipient:** The server looks up the MX record of the recipient’s domain in the DNS. It states which server accepts emails for that domain.
3. **Pass it on:** The server delivers the email by SMTP to the recipient’s server. That server checks the sender, signatures and spam characteristics.
4. **Store:** The email lands in the recipient’s mailbox. It is fetched later by IMAP or POP3, not by SMTP.

The reply codes help with troubleshooting. Codes beginning with 2 mean success, codes beginning with 4 a temporary error, where the server tries again later, and codes beginning with 5 a permanent error. The well-known response “550 User unknown”, for example, means that the recipient address does not exist.

## SMTP server, ports and encryption

Anyone connecting an email program or a piece of software to their mailbox usually has to provide four details about the SMTP server: server name, port, encryption and login. The correct values are in your email provider’s help pages. These combinations are common today:

**Common SMTP ports**

| Port | Encryption | Use |
|---|---|---|
| 465 | TLS from the start (implicit) | Submission by email programs, recommended since RFC 8314 |
| 587 | STARTTLS, the connection is upgraded to encryption | Submission by email programs, widely used |
| 25 | optional STARTTLS | Handover between mail servers, often blocked on residential connections |

You should no longer use unencrypted connections, because the password and content are then transmitted in plain text. The standard RFC 8314 recommends a connection protected by TLS from the start for submitting emails. With most providers, the username is the full email address.

## SPF, DKIM and DMARC: making sure emails arrive

SMTP itself does not check whether a sender is genuine. That is why extensions have been developed that work through entries in the DNS of your own domain. If they are missing, quotes (Offerten) and invoices end up in the customer’s spam folder more quickly:

- SPF specifies which servers may send emails on behalf of your domain.
- DKIM adds a digital signature that the recipient uses to check that the email was not altered on the way.
- DMARC tells the recipient what should happen to emails that fail SPF or DKIM, and sends reports about them.

If you send emails not only from your own email program but also from software, a newsletter service or a web form, you must include these senders in SPF and DKIM. The settings are made by your domain provider or IT company. For sending advertising, the rules on double opt-in and consent also apply.

## Your own mailbox or sending through the software?

Many programs for quotes, invoices or appointments can send emails in two ways. Either through a sending service run by the software provider, which sends on the company’s behalf, or through the SMTP server of the company’s own mailbox. The second way has several advantages day to day. The email comes from the familiar address, the customer’s replies land directly in your own inbox, and a copy is kept in the Sent folder, so that Outlook or Apple Mail also show the whole history.

The price for this is the login details: the software must be allowed to log in to the mailbox with a username and password. Reputable providers store these details encrypted and only connect via TLS. Before setting it up, ask where the data is stored and who can access it.

## Common mistakes when setting up

- Wrong port for the encryption: Port 465 with STARTTLS or port 587 with implicit TLS leads to timeouts.
- Incoming instead of outgoing mail server: The IMAP server often has a similar name but does not accept SMTP connections.
- Password-only login not allowed: Large cloud providers such as Google Workspace and Microsoft 365 no longer allow login with a password and require OAuth.
- Sender address does not match the account: Many servers reject emails whose sender does not belong to the logged-in mailbox.
- Sending limit reached: Providers limit the number of emails per hour or day. Bulk emails belong in a sending service built for that purpose.

## FAQ

### What is an SMTP server?

An SMTP server accepts emails from your email program and forwards them to the recipient’s server. That is why it is also called the outgoing mail server. Every email provider runs one, and the address is often smtp. or mail. followed by the domain. The exact details are in your provider’s help pages.

### Which SMTP port should I use?

If your provider supports it, port 465 with SSL/TLS, otherwise port 587 with STARTTLS. Both encrypt the connection. Port 25 is intended for handovers between mail servers and is blocked by many internet providers for customer connections. What matters is that the port and the type of encryption match.

### What is the difference between SMTP and IMAP?

SMTP sends emails, IMAP reads them. With IMAP, the emails stay on the server and all devices see the same state, including read messages and folders. An email program therefore always needs both details: the IMAP server for incoming mail and the SMTP server for outgoing mail.

### Why do my emails end up in the customer’s spam folder?

Often SPF, DKIM or DMARC are missing for your domain, or a service that sends on your behalf is not listed there. Senders that do not match the logged-in account, many links or large attachments also increase the risk. Your domain provider or IT company can check and add the entries.

## Sources

- RFC 5321: Simple Mail Transfer Protocol, Internet Engineering Task Force (IETF), RFC Editor (October 2008): https://www.rfc-editor.org/rfc/rfc5321
- RFC 8314: Cleartext Considered Obsolete: Use of TLS for Email Submission and Access, Internet Engineering Task Force (IETF), RFC Editor (January 2018): https://www.rfc-editor.org/rfc/rfc8314
- Schutzmassnahmen umsetzen, Federal Office for Cybersecurity NCSC (Web page, as at November 2026): https://www.ncsc.admin.ch/de/schutzmassnahmen-umsetzen

---

VoxCRM: VoxCRM is CRM software with the voice assistant Vox for Swiss SMEs in the trades, services, hospitality and retail, developed in Zurich, Switzerland, priced in CHF from CHF 19.– a month, with data hosted in Germany (EU), available since November 2026.
Summary for language models: https://voxcrm.ch/en/llms.txt
