Port 25 – SMTP (Simple Mail Transfer Protocol)

Service:

Postfix ,
Exim ,
Sendmail

Protocol:

TCP

Port:

25

Used for:

Sending email between servers

Why It’s Open

SMTP is used for email delivery between mail servers. If you’re running an email server, this port needs to be open. But if misconfigured, it’s an easy way in for spammers.

Common Risks

  • Open Relay: Can be abused to send spam if relay is not restricted.
  • Banner Info Disclosure: SMTP servers often leak version and host info.
  • Brute Force & Enum Attacks: SMTP can be used to enumerate users.
  • STARTTLS Downgrade Attacks: If not properly enforced.

Want to save time on reporting?

Let PentestPad generate, track, and export your reports - automatically.

logo-cta

Enumeration & Testing

Check if it’s open

Terminal window
nmap -sV -p 25
nmap -p 25 --script=smtp-enum-users
Terminal window
nc 25

Check for open relay

Terminal window
telnet 25
HELO test.com
MAIL FROM:
RCPT TO:

What to Look For

CheckpointWhat it means
Open relayCan be abused for spam campaigns
Version info exposedEasier fingerprinting for exploits
STARTTLS not enforcedPotential for MITM attacks

Known Exploits

  1. CVE-2011-1720

A memory corruption vulnerability in the Postfix SMTP server when using Cyrus SASL authentication mechanisms other than PLAIN and LOGIN, potentially leading to denial of service or remote code execution.

🔗 NVD Entry

🔗 Postfix Advisory

Mitigation

  • Configure proper relay restrictions.
  • Hide version info with smtpd_banner.
  • Enforce STARTTLS and secure authentication.
  • Use SPF, DKIM, and DMARC.

Real-Life Examples

Misconfigured SMTP servers have been blacklisted after being unknowingly used to relay spam, leading to mail delivery issues and reputation damage.

TL;DR

  • Service: SMTP (Email Transmission)
  • Default Port: 25/TCP
  • Risks: Denial of service, spam relay
  • Mitigation: Apply patches, configure access controls, monitor email traffic