Port 2525 (Alternative SMTP)
Key facts
- Port
- 2525
- Protocols
- TCP
- Range
- Registered port, 1024-49151
- IANA service name
- ms-v-worlds
- Unofficial use
- The use described on this page is not the IANA assignment for this port. Source (opens in a new tab) Checked on 30.11.2026
IANA assigns ports in this range to services on request, under RFC 6335.
About port 2525
Port 2525 is used as an alternative SMTP port for sending mail through email sending services, when the regular mail ports are blocked on the sender's network. It isn't an official SMTP port: IANA registers port 2525 for a different service (ms-v-worlds), and using it for mail is a convention some sending providers have adopted.
On port 2525, the connection works the same way as on port 587: the client connects over TCP, switches to encryption with the STARTTLS command, and authenticates with a username and password before sending.
What port 2525 is used for
- Sending from websites and applications: a website or application sends messages, such as order confirmations and password resets, through an external sending service.
- Getting around blocked mail ports: some internet and cloud providers block or limit port 25, and sometimes other ports as well. Sending providers such as Mailgun and SendGrid also let you connect on port 2525.
- Internal mail server: system administrators sometimes set a mail server to also listen on port 2525, for devices or applications that can't reach port 587.
When port 587 is open, it's the recommended choice, because it's the official port for sending mail with authentication.
Port 2525 in the firewall
A server that sends mail through a sending service only needs an outgoing connection on port 2525. A typical firewall allows outgoing connections, so usually no rule is needed. When the default policy also blocks outgoing connections, allow the port explicitly:
- UFW:
ufw allow out 2525/tcp - firewalld: outgoing connections are allowed by default, and no extra rule is needed.
Open port 2525 to incoming connections only on a mail server explicitly set to listen on it.
Risks and security
Port 2525 itself isn't riskier than other mail ports. The main risk lies in the login details for the sending service: anyone who gets hold of them can send spam in your domain's name and damage its reputation.
- Use encryption (STARTTLS) on every connection, and choose a setting in the application that requires encryption.
- Keep the username and password or the API key out of your code and code repositories, and replace them right away if you suspect a leak.
- Set up SPF, DKIM, and DMARC records for the domain that include the sending service, so messages reach the inbox rather than the spam folder.
- On a mail server that listens on port 2525, require authentication before sending, so the server isn't used as an open relay, that is, a server that relays mail from any sender.
Commands to check and configure
-
nc -zv smtp.example.com 2525Checks from the server whether port 2525 of the sending service is reachable.
-
openssl s_client -connect smtp.example.com:2525 -starttls smtpConnects to port 2525, switches to encryption with STARTTLS, and shows the sending server's certificate.
-
nc -zv smtp.example.com 587Checks whether port 587 of the sending service is reachable, for comparison with port 2525.
-
ss -tn '( dport = :2525 )'Shows active connections from the server to port 2525.
-
ufw allow out 2525/tcpAllows outgoing connections to port 2525, when UFW's default policy blocks outgoing connections.
-
ufw status verboseShows UFW's default policy for incoming and outgoing connections, and the existing rules.
Port 2525 in the IANA registry
| Port | Protocol | Service | IANA registry description |
|---|---|---|---|
| 2525 | TCP | ms-v-worlds | MS V-Worlds |
| 2525 | UDP | ms-v-worlds | MS V-Worlds |
Data source: IANA Service Name and Transport Protocol Port Number Registry (opens in a new tab)
Port 2525 FAQ
Is port 2525 an official SMTP port?
When should I use port 2525 instead of port 587?
When the network you send from blocks port 587 and the other mail ports, and the sending service supports port 2525. When port 587 is open, it's better to use it.
Is mail sent on port 2525 encrypted?
Yes, when the application is set to use STARTTLS. The connection starts unencrypted, and switches to encryption before the login details and the message are sent. Make sure TLS or STARTTLS encryption is selected in the application's settings.
How do I improve the chance that messages from my website reach the inbox?
Send through a sending service with authentication, and set up SPF, DKIM, and DMARC records for the domain that include the service. The email deliverability page covers the topic in full.