1. Ports
  2. Port 20025

Port 20025 is unassigned by IANA—no official service claims this number. But in practice, it has a clear identity in the world of mail servers.

What This Port Does

Port 20025 is commonly used as an alternative reinjection port for amavisd-new in Postfix mail filtering systems.12

In standard configurations, Amavis uses port 10024 to receive mail from Postfix for virus and spam scanning, then reinjects clean mail back to Postfix on port 10025.3 Port 20025 serves the same reinjection function, but in more complex setups.

When Port 20025 Appears

You'll find port 20025 in these scenarios:

Multiple Content Filters: When deploying more than one content filter in sequence, port 20025 can serve as the reinjection point for a second filter while port 10025 handles the first.4

Non-Standard Configurations: Some administrators prefer port 20025 to avoid conflicts with existing services or to implement custom filtering architectures.

Alternative Listening Ports: Both $notify_method and $forward_method in Amavis can be configured to use port 20025 instead of the standard 10025.5

The Registered Ports Range

Port 20025 belongs to the registered ports range (1024-49151). These ports are registered with IANA for specific services, but registration doesn't prevent unofficial use. Many ports in this range serve multiple purposes—official assignments coexist with widespread informal uses.

Unlike well-known ports (0-1023) which require root privileges to bind on Unix systems, registered ports can be used by regular user processes. This makes them practical for application-specific services like mail filters.

How to Check What's Listening

On Linux/macOS:

sudo lsof -i :20025
# or
sudo netstat -tulpn | grep 20025

On Windows:

netstat -ano | findstr :20025

If you see Amavis or Postfix listening here, you're looking at a mail filtering reinjection point.

Why Unassigned Ports Matter

The Internet's port system includes 65,535 possible port numbers. Only a fraction have official assignments. The rest exist as usable space—room for custom applications, internal services, and protocols that don't need IANA registration.

Port 20025 represents this flexible layer. Someone needed a second reinjection port for mail filtering, picked 20025 (the logical successor to 10024/10025), and it works. No RFC required. No formal blessing needed.

This is infrastructure built on practical decisions rather than committee approvals. The port numbers that matter aren't always the ones in the official registry—they're the ones actually carrying traffic.

Port 10024: Standard Amavis listening port (Postfix sends mail here for filtering) Port 10025: Standard Amavis reinjection port (filtered mail returns to Postfix here) Port 25: SMTP (where mail enters the system) Port 587: Mail submission (authenticated mail sending)

Frequently Asked Questions

このページは役に立ちましたか?

😔
🤨
😃
Port 20025: Alternative Amavis Reinjection — The Second Filter's Door • Connected