X
X

Select Your Currency

₺ Turkish lira $ US Dollar
Skip to content
New Affiliate program: refer customers, earn 20%

ViHyper

What Is SMTP? How It Works, Ports and Settings

  • Secure checkout
  • Company invoice
  • Technical support
4 min read ViHyper Team
Table of contents
  1. How Does SMTP Work?
  2. SMTP vs IMAP vs POP3
  3. SMTP Ports: 25, 465 and 587
  4. How to Configure SMTP
  5. SMTP for WordPress and Websites
  6. Common SMTP Errors
  7. Keeping Your Email Out of Spam: SPF, DKIM and DMARC
  8. What Is a Mail Relay (SMTP Relay)?
  9. ViHyper Business Email and Mail Relay
  10. Frequently Asked Questions
  11. Can I use an SMTP server for free?
  12. Can I send bulk email with SMTP?
  13. Should I use 587 or 465?
  14. I changed my SMTP password and now I can't send email. Why?

SMTP (Simple Mail Transfer Protocol) is the internet protocol used to send email and pass it between servers. When you send an email from Outlook, or your website's contact form sends you a notification, the message is delivered to the recipient's mail server via SMTP.

In this article we explain how SMTP works, SMTP server and port settings, common sending errors and what to do so your emails don't end up in the spam folder.

How Does SMTP Work?

  1. Your email client (Outlook, Thunderbird or a web application) hands the message to its own outgoing mail (SMTP) server using a user name and password.
  2. The sending server looks up the MX record of the recipient's domain in DNS and finds the recipient's server.
  3. The message is passed to the recipient's server via SMTP. The receiving server checks whether the sender is authorised with SPF, DKIM and DMARC.
  4. Accepted email is placed in the recipient's mailbox; the recipient reads it with IMAP or POP3.
Affiliate ProgramFound this useful? Share it and earn.Get 20% commission on orders from customers you refer. Joining is free.Details

SMTP vs IMAP vs POP3

ProtocolRoleCommon ports
SMTPSending email and relaying it between servers587, 465, 25
IMAPReading email from several devices while keeping it on the server993 (SSL)
POP3Reading email by downloading it to a device995 (SSL)

SMTP Ports: 25, 465 and 587

  • 587 (STARTTLS): the recommended submission port for email clients and applications. The connection is encrypted with STARTTLS and authenticated.
  • 465 (SSL/TLS): a submission port where the connection is encrypted from the start; supported by many providers.
  • 25: used for server-to-server relay. To prevent spam, many ISPs and cloud providers block users from sending out on port 25.

How to Configure SMTP

Email clients and applications usually ask for the following:

FieldExample value
SMTP server (host)mail.yourdomain.com
Port587 (STARTTLS) or 465 (SSL/TLS)
AuthenticationOn
User nameFull email address (info@yourdomain.com)
PasswordYour email account's password

Get the correct server name and port from your email provider's panel or support documentation.

SMTP for WordPress and Websites

By default, websites send email with the server's PHP mail function. Form notifications sent this way have weak authentication, so they often land in spam or never arrive. The fix is to configure the site with an SMTP plugin so it sends through a real email account's SMTP details.

Common SMTP Errors

  • 535 Authentication failed: the user name or password is wrong; make sure the user name is the full email address.
  • Connection timed out: the port may be blocked; try 587 or 465.
  • 550 Relaying denied / Sender not allowed: the server doesn't allow sending without authentication or on behalf of an unauthorised address.
  • 554 / rejected as spam: the sending IP address may be blacklisted or SPF/DKIM records may be missing.

Keeping Your Email Out of Spam: SPF, DKIM and DMARC

  • SPF: lists in DNS which servers are allowed to send email on behalf of your domain.
  • DKIM: adds a digital signature to outgoing email so the recipient can verify the message wasn't altered on the way.
  • DMARC: defines what to do with email that fails the SPF and DKIM checks (monitor, quarantine, reject) and lets you receive reports.

Large mailbox providers expect these records to be configured correctly, especially for domains that send in bulk.

What Is a Mail Relay (SMTP Relay)?

A mail relay lets you send your email through an SMTP gateway dedicated to sending instead of through your own server. Your web server's IP address isn't affected by bulk sending and deliverability is easier to manage. It suits sites that send invoices, orders and notifications, and companies that run their own mail server.

ViHyper Business Email and Mail Relay

  • Business email plans offer addresses on your own domain, unlimited accounts, antivirus and anti-spam filters, and IMAP, POP3, SMTP and webmail access.
  • Mail relay plans let you send over SMTP (TLS) with your own server and software. Your SPF, DKIM and DMARC records are configured during setup. Plans are based on monthly sending volume and may only be used to send to permission-based (opt-in) lists.

For the general benefits of business email, see our article What is business email.

Frequently Asked Questions

Can I use an SMTP server for free?

The SMTP servers of free accounts such as Gmail and Outlook can be used for personal purposes, but they have daily sending limits and aren't suitable for sending from your business domain.

Can I send bulk email with SMTP?

Technically yes, but only to recipients who have given permission (opt-in). Unsolicited bulk email leads to legal problems and to your IP address being blacklisted.

Should I use 587 or 465?

Both are secure if your provider supports them. 587 (STARTTLS) is usually recommended; use 465 if your application only supports SSL.

I changed my SMTP password and now I can't send email. Why?

You also need to update the old password saved in your email clients and in your website's SMTP plugin.

Pick the right infrastructureUse professional email on your own domain. Plans from 127,93 ₺.
Business email plans

Top