The only agent that thinks for itself

Autonomous Monitoring with self-learning AI built-in, operating independently across your entire stack.

Unlimited Metrics & Logs
Machine learning & MCP
5% CPU, 150MB RAM
3GB disk, >1 year retention
800+ integrations, zero config
Dashboards, alerts out of the box
> Discover Netdata Agents

Centralized metrics streaming and storage

Aggregate metrics from multiple agents into centralized Parent nodes for unified monitoring across your infrastructure.

Stream from unlimited agents
Long-term data retention
High availability clustering
Data replication & backup
Scalable architecture
Enterprise-grade security
> Learn about Parents

Fully managed cloud platform

Access your monitoring data from anywhere with our SaaS platform. No infrastructure to manage, automatic updates, and global availability.

Zero infrastructure management
99.9% uptime SLA
Global data centers
Automatic updates & patches
Enterprise SSO & RBAC
SOC2 & ISO certified
> Explore Netdata Cloud

Deploy Netdata Cloud in your infrastructure

Run the full Netdata Cloud platform on-premises for complete data sovereignty and compliance with your security policies.

Complete data sovereignty
Air-gapped deployment
Custom compliance controls
Private network integration
Dedicated support team
Kubernetes & Docker support
> Learn about Cloud On-Premises

Powerful, intuitive monitoring interface

Modern, responsive UI built for real-time troubleshooting with customizable dashboards and advanced visualization capabilities.

Real-time chart updates
Customizable dashboards
Dark & light themes
Advanced filtering & search
Responsive on all devices
Collaboration features
> Explore Netdata UI

Monitor on the go

Native iOS and Android apps bring full monitoring capabilities to your mobile device with real-time alerts and notifications.

iOS & Android apps
Push notifications
Touch-optimized interface
Offline data access
Biometric authentication
Widget support
> Download apps

The future of infrastructure observability

See our strategic direction across AI-native observability, full-stack signals, operational intelligence, and enterprise platform maturity.

AI-native observability
Full-stack signal coverage
Operational intelligence
Enterprise platform maturity
Agent releases every 6 weeks
Cloud continuous delivery
> Explore Product Roadmap

Best energy efficiency

True real-time per-second

100% automated zero config

Centralized observability

Multi-year retention

High availability built-in

Zero maintenance

Always up-to-date

Enterprise security

Complete data control

Air-gap ready

Compliance certified

Millisecond responsiveness

Infinite zoom & pan

Works on any device

Native performance

Instant alerts

Monitor anywhere

AI-native observability

Continuous delivery

Open source foundation

80% Faster Incident Resolution

AI-powered troubleshooting from detection, to root cause and blast radius identification, to reporting.

True Real-Time and Simple, even at Scale

Linearly and infinitely scalable full-stack observability, that can be deployed even mid-crisis.

90% Cost Reduction, Full Fidelity

Instead of centralizing the data, Netdata distributes the code, eliminating pipelines and complexity.

See and Map Your Entire Network

Live topology, flow analytics, and SNMP device and trap monitoring — unified with your full-stack observability.

Control Without Surrender

SOC 2 Type 2 certified with every metric kept on your infrastructure.

Integrations

800+ collectors and notification channels, auto-discovered and ready out of the box.

800+ data collectors
Auto-discovery & zero config
Cloud, infra, app protocols
Notifications out of the box
> Explore integrations
Real Results
46% Cost Reduction

Reduced monitoring costs by 46% while cutting staff overhead by 67%.

— Leonardo Antunez, Codyas

Zero Pipeline

No data shipping. No central storage costs. Query at the edge.

From Our Users
"Out-of-the-Box"

So many out-of-the-box features! I mostly don't have to develop anything.

— Simon Beginn, LANCOM Systems

No Query Language

Point-and-click troubleshooting. No PromQL, no LogQL, no learning curve.

Enterprise Ready
67% Less Staff, 46% Cost Cut

Enterprise efficiency without enterprise complexity—real ROI from day one.

— Leonardo Antunez, Codyas

SOC 2 Type 2 Certified

Zero data egress. Only metadata reaches the cloud. Your metrics stay on your infrastructure.

Full Coverage
800+ Collectors

Auto-discovered and configured. No manual setup required.

Any Notification Channel

Slack, PagerDuty, Teams, email, webhooks—all built-in.

Built for the People Who Get Paged

Because 3am alerts deserve instant answers, not hour-long hunts.

Every Industry Has Rules. We Master Them.

See how healthcare, finance, and government teams cut monitoring costs 90% while staying audit-ready.

Monitor Any Technology. Configure Nothing.

Install the agent. It already knows your stack.
From Our Users
"A Rare Unicorn"

Netdata gives more than you invest in it. A rare unicorn that obeys the Pareto rule.

— Eduard Porquet Mateu, TMB Barcelona

99% Downtime Reduction

Reduced website downtime by 99% and cloud bill by 30% using Netdata alerts.

— Falkland Islands Government

Real Savings
30% Cloud Cost Reduction

Optimized resource allocation based on Netdata alerts cut cloud spending by 30%.

— Falkland Islands Government

46% Cost Cut

Reduced monitoring staff by 67% while cutting operational costs by 46%.

— Codyas

Real Coverage
"Plugin for Everything"

Netdata has agent capacity or a plugin for everything, including Windows and Kubernetes.

— Eduard Porquet Mateu, TMB Barcelona

"Out-of-the-Box"

So many out-of-the-box features! I mostly don't have to develop anything.

— Simon Beginn, LANCOM Systems

Real Speed
Troubleshooting in 30 Seconds

From 2-3 minutes to 30 seconds—instant visibility into any node issue.

— Matthew Artist, Nodecraft

20% Downtime Reduction

20% less downtime and 40% budget optimization from out-of-the-box monitoring.

— Simon Beginn, LANCOM Systems

Pay per Node. Unlimited Everything Else.

One price per node. Unlimited metrics, logs, users, and retention. No per-GB surprises.

Free tier—forever
No metric limits or caps
Retention you control
Cancel anytime
> See pricing plans

What's Your Monitoring Really Costing You?

Most teams overpay by 40-60%. Let's find out why.

Expose hidden metric charges
Calculate tool consolidation
Customers report 30-67% savings
Results in under 60 seconds
> See what you're really paying

Your Infrastructure Is Unique. Let's Talk.

Because monitoring 10 nodes is different from monitoring 10,000.

On-prem & air-gapped deployment
Volume pricing & agreements
Architecture review for your scale
Compliance & security support
> Start a conversation

Monitoring That Sells Itself

Deploy in minutes. Impress clients in hours. Earn recurring revenue for years.

30-second live demos close deals
Zero config = zero support burden
Competitive margins & deal protection
Response in 48 hours
> Apply to partner

Per-Second Metrics at Homelab Prices

Same engine, same dashboards, same ML. Just priced for tinkerers.

Community: Free forever · 5 nodes · non-commercial
Homelab: $90/yr · unlimited nodes · fair usage
> Get the Homelab Plan

$1,000 Per Referral. Unlimited Referrals.

Your colleagues get 10% off. You get 10% commission. Everyone wins.

10% of subscriptions, up to $1,000 each
Track earnings inside Netdata Cloud
PayPal/Venmo payouts in 3-4 weeks
No caps, no complexity
> Get your referral link
Cost Proof
40% Budget Optimization

"Netdata's significant positive impact" — LANCOM Systems

Calculate Your Savings

Compare vs Datadog, Grafana, Dynatrace

Savings Proof
46% Cost Reduction

"Cut costs by 46%, staff by 67%" — Codyas

30% Cloud Bill Savings

"Reduced cloud bill by 30%" — Falkland Islands Gov

Enterprise Proof
"Better Than Combined Alternatives"

"Better observability with Netdata than combining other tools." — TMB Barcelona

Real Engineers, <24h Response

DPA, SLAs, on-prem, volume pricing

Why Partners Win
Demo Live Infrastructure

One command, 30 seconds, real data—no sandbox needed

Zero Tickets, High Margins

Auto-config + per-node pricing = predictable profit

Homelab Ready
Free Video Course

8-episode Netdata tutorial by LearnLinux.tv

76k+ GitHub Stars

3rd most starred monitoring project

Worth Recommending
Product That Delivers

Customers report 40-67% cost cuts, 99% downtime reduction

Zero Risk to Your Rep

Free tier lets them try before they buy

AI Support Assistant, Available 24/7

Nedi has access to all official documentation, source code, and resources. Ask any question about Netdata—responds in your language.

Deployment & configuration
Troubleshooting & sizing
Alerts & notifications
Evidence-based answers
> Ask Nedi now

Never Fight Fires Alone

Docs, community, and expert help—pick your path to resolution.

Learn.netdata.cloud docs
Discord, Forums, GitHub
Premium support available
> Get answers now

60 Seconds to First Dashboard

One command to install. Zero config. 850+ integrations documented.

Linux, Windows, K8s, Docker
Auto-discovers your stack
> Read our documentation

76,000+ Engineers Strong

615+ contributors. 1.5M daily downloads. One mission: simplify observability.

Per-Second. 90% Cheaper. Data Stays Home.

Side-by-side comparisons: costs, real-time granularity, and data sovereignty for every major tool.

See why teams switch from Datadog, Prometheus, Grafana, and more.

> Browse all comparisons
Edge-Native Observability, Born Open Source
Per-second visibility, ML on every metric, and data that never leaves your infrastructure.
Founded in 2016
615+ contributors worldwide
Remote-first, engineering-driven
Open source first
> Read our story
Promises We Publish—and Prove
12 principles backed by open code, independent validation, and measurable outcomes.
Open source, peer-reviewed
Zero config, instant value
Data sovereignty by design
Aligned pricing, no surprises
> See all 12 principles
Edge-Native, AI-Ready, 100% Open
76k+ stars. Full ML, AI, and automation—GPLv3+, not premium add-ons.
76,000+ GitHub stars
GPLv3+ licensed forever
ML on every metric, included
Zero vendor lock-in
> Explore our open source
Build Real-Time Observability for the World
Remote-first team shipping per-second monitoring with ML on every metric.
Remote-first, fully distributed
Open source (76k+ stars)
Challenging technical problems
Your code on millions of systems
> See open roles
Meet the Team Behind Netdata
Conferences, meetups, and tradeshows where you can see Netdata in action and talk to the engineers who build it.
Live demos and deep dives
Book 1-on-1 meetings
Talks and panel sessions
Event recaps and photos
> See all events
Talk to a Netdata Human in <24 Hours
Sales, partnerships, press, or professional services—real engineers, fast answers.
Discuss your observability needs
Pricing and volume discounts
Partnership opportunities
Media and press inquiries
> Book a conversation
Your Data. Your Rules.
On-prem data, cloud control plane, transparent terms.
Trust & Scale
76,000+ GitHub Stars

One of the most popular open-source monitoring projects

SOC 2 Type 2 Certified

Enterprise-grade security and compliance

Data Sovereignty

Your metrics stay on your infrastructure

Validated
University of Amsterdam

"Most energy-efficient monitoring solution" — ICSOC 2023, peer-reviewed

ADASTEC (Autonomous Driving)

"Doesn't miss alerts—mission-critical trust for safety software"

Community Stats
615+ Contributors

Global community improving monitoring for everyone

1.5M+ Downloads/Day

Trusted by teams worldwide

GPLv3+ Licensed

Free forever, fully open source agent

Why Join?
Remote-First

Work from anywhere, async-friendly culture

Impact at Scale

Your work helps millions of systems

$ guides / postfix / postfix-smtp-port-not-listening ▌

Operations Guides

Postfix not listening on port 25 or 587: connection refused

“Connection refused” on port 25 or 587 means no process on the host is completing the TCP handshake on that port. This is distinct from a timeout, where something accepts the SYN but never responds. “Refused” means either no process is listening, or the kernel is actively rejecting the connection.

The most common real-world causes: the master process is down, Postfix is bound to loopback only, the smtpd process pool is exhausted, or a firewall is intercepting traffic before Postfix sees it. Less common but worth checking: inet_protocols mismatch on IPv6-disabled hosts, port conflicts with other MTAs, and postscreen handoff failures.

What this means

For Postfix, “connection refused” has two primary failure shapes:

  1. No socket at all: The master process is not running, or it failed to bind the configured port due to an interface mismatch, IPv6 issue, or port conflict.

  2. Socket present but not serving: Postfix or postscreen is listening, but all smtpd workers are consumed by slow clients or hung on DNS or milter lookups. New connections are refused because master cannot spawn another smtpd within the maxproc limit.

A third pattern that looks like “Postfix not listening” is a firewall or SYN-cookie layer intercepting traffic. The socket is present and Postfix is healthy, but external clients cannot reach it. Always test both locally and remotely.

flowchart TD
    A["Connection refused
on port 25 or 587"] --> B{"Socket present?"} B -->|"No"| C{"Master process running?"} B -->|"Yes"| D{"220 greeting received?"} C -->|"No"| E["Master down or
failed to bind"] C -->|"Yes"| F["Interface or protocol
mismatch"] D -->|"No"| G["smtpd exhausted
or hung"] D -->|"Yes"| H{"Works locally,
fails remotely?"} H -->|"Yes"| I["Firewall or
ISP block"] H -->|"No"| J["Postscreen handoff
or greeting mismatch"]

Common causes

CauseWhat it looks likeFirst thing to check
Master process not runningNo socket on port 25 or 587; postfix status reports not runningcat /var/spool/postfix/pid/master.pid and verify PID
inet_interfaces bound to loopbackSocket on 127.0.0.1:25 only; external connections refusedpostconf -h inet_interfaces
inet_protocols mismatch (IPv6 disabled)Postfix logs “cannot assign requested address”; no socket boundpostconf -h inet_protocols vs host IPv6 state
master.cf explicit IP bindingPostfix bound to 127.0.0.1 regardless of inet_interfaces = allpostconf -M smtp/inet
smtpd maxproc exhaustionSocket present but no 220 greeting; “to limit” in logsps aux | grep smtpd | grep -v grep | wc -l vs maxproc
Postscreen handoff failurePostscreen answers on 25 but smtpd pass failsTest both postscreen and direct smtpd paths
Firewall or SYN-cookie interceptionLocal connection works; remote fails or times outExternal nc -zv host 25 vs local
Port conflict (sendmail, Dovecot, Exim)Another process holds port 25 or 587ss -tlnp | grep -E ':(25|587) '

Quick checks

# Check master process liveness via PID file
cat /var/spool/postfix/pid/master.pid && ps -p $(cat /var/spool/postfix/pid/master.pid) -o pid,comm,start_time

# Check if Postfix thinks it is running
postfix status

# Validate configuration syntax before attempting restart
postfix check 2>&1

# Check listening sockets on SMTP ports
ss -tlnp | grep -E ':25 |:587 '

# Test the SMTP greeting locally (should return 220 with hostname)
echo QUIT | nc -w 5 localhost 25 | head -1

# Test submission port locally
echo QUIT | nc -w 5 localhost 587 | head -1

# Check inet_interfaces and inet_protocols configuration
postconf -h inet_interfaces
postconf -h inet_protocols

# Check master.cf service definitions
postconf -M smtp/inet
postconf -M submission/inet

# Count active smtpd processes (compare against maxproc)
ps aux | grep smtpd | grep -v grep | wc -l

# Look for maxproc exhaustion warnings
grep 'to limit' /var/log/mail.log | tail -10

How to diagnose it

  1. Verify the master process is alive. Check the PID file and confirm the process exists. If the PID file points to a stale or non-Postfix process, Postfix is in an inconsistent state.

    cat /var/spool/postfix/pid/master.pid
    ps -p $(cat /var/spool/postfix/pid/master.pid) -o pid,ppid,comm,start_time
    

    If master is not running, check why it stopped before restarting. Look for fatal or panic in the mail log. Verify there is no port conflict preventing startup.

    On systems using systemd, systemctl status postfix may show active (exited) even when the master process is not running. The actual process state is better checked via postfix status. On Debian/Ubuntu multi-instance packaging, the default instance unit is postfix@-.service; RHEL and Fedora ship a plain postfix.service with no instance suffix.

  2. Check whether any socket exists on the target port. This distinguishes “nothing listening” from “listening but not responding.”

    ss -tlnp | grep -E ':25 |:587 '
    

    If no socket appears, the issue is in Postfix startup or binding. If a socket appears but belongs to a different process (sendmail, Dovecot, Exim), you have a port conflict.

  3. If no socket exists, check inet_interfaces and inet_protocols. The upstream default for inet_interfaces is all, and Debian and Ubuntu keep it (their packaged main.cf explicitly sets inet_protocols = all; inet_interfaces is left at the default). If your host needs to receive mail from external clients, verify inet_interfaces is not restricted to loopback.

    postconf -h inet_interfaces
    postconf -h inet_protocols
    

    If inet_protocols = all but IPv6 is disabled on the host, Postfix may fail to bind with “cannot assign requested address.” Check the host’s IPv6 state:

    sysctl net.ipv6.conf.all.disable_ipv6
    

    If IPv6 is disabled, set inet_protocols = ipv4 and reload.

  4. If inet_interfaces and inet_protocols look correct, check master.cf for explicit IP bindings. An explicit IP in the service definition overrides inet_interfaces. The smtp service line should start with smtp inet, not 127.0.0.1:smtp inet.

    postconf -M smtp/inet
    postconf -M submission/inet
    
  5. If the socket is present but you get no 220 greeting, check smtpd process exhaustion. When all smtpd workers are consumed by slow clients (hung on DNS reverse lookups, milter timeouts, or content filter delays), new connections sit in the kernel queue but never get handled.

    # Count smtpd processes
    ps aux | grep smtpd | grep -v grep | wc -l
    
    # Check the configured process limit
    postconf -h default_process_limit
    
    # Look for "to limit" warnings in logs
    grep 'to limit' /var/log/mail.log | tail -20
    

    The default default_process_limit is 100. When the smtpd service maxproc in master.cf is -, it inherits default_process_limit. If your smtpd count is at or near 100 with no free workers, you need either more capacity, postscreen to shed zombie traffic, or investigation into what is holding smtpd processes.

  6. If postscreen is enabled, test both paths. Postscreen answers on port 25 and passes compliant connections to smtpd internally. If postscreen is listening but the smtpd handoff fails, clients see connection drops or no greeting.

    ps aux | grep postscreen | grep -v grep
    grep postscreen /var/log/mail.log | tail -20
    
  7. Test locally versus remotely to identify firewall interception. A socket that works on localhost but fails from an external host points to a firewall, cloud security group, or ISP block.

    # Local test
    echo QUIT | nc -w 5 localhost 25 | head -1
    
    # Remote test (run from another host)
    nc -zv -w 5 <mail-server-ip> 25
    

    Many cloud providers and residential ISPs block outbound port 25. This is not a Postfix issue, but it is the most common false positive for “Postfix not listening.”

  8. Verify the 220 greeting contains the configured hostname. A malformed greeting indicates a myhostname or configuration problem.

    # Check configured hostname
    postconf -h myhostname
    
    # Compare against actual greeting
    echo QUIT | nc -w 5 localhost 25 | head -1
    

    The greeting should contain the configured myhostname. If it does not, fix myhostname in main.cf and reload.

Metrics and signals to monitor

SignalWhy it mattersWarning sign
Master process livenessNo master means no mail at allPID file missing or points to wrong process
SMTP port listeningBinary availability checkSocket disappears from ss output
220 greeting response timeSocket present but smtpd exhaustedGreeting takes more than 2 seconds
smtpd process count vs maxprocIndicates worker pool saturationCount at or near default_process_limit
“to limit” log frequencyMaster cannot spawn new workersAny occurrence for smtpd or qmgr
Connection establishment latencyFirewall or network degradationExternal connections consistently slow or refused
Postscreen statistics (if enabled)Zombie traffic overwhelming smtpdHigh reject volume with concurrent smtpd saturation
Queue depth (active, deferred)Backlog from smtpd unavailabilityGrowing deferred queue with flat delivery rate

Fixes

Master process not running

First run postfix check to catch configuration errors that would prevent startup. Then start Postfix:

postfix start
# or
systemctl start postfix

If Postfix starts but immediately exits, check the mail log for fatal or panic messages. Common startup failures include syntax errors in main.cf or master.cf, permission problems on queue directories, and stale lock files. Remove stale PID files manually only after confirming no master process exists.

inet_interfaces bound to loopback

postconf -e 'inet_interfaces = all'
postfix reload

Note: after postfix reload, the master re-reads its configuration and running processes are allowed to terminate as soon as convenient; in-flight connections are not killed immediately.

After reloading, verify the socket is now on the external interface:

ss -tlnp | grep ':25 '

inet_protocols mismatch

If IPv6 is disabled on the host:

postconf -e 'inet_protocols = ipv4'
postfix reload

If IPv6 is enabled and you want dual-stack, leave inet_protocols = all but ensure the host actually has IPv6 connectivity. A partially configured IPv6 stack causes the same bind failure.

master.cf explicit IP binding

Edit /etc/postfix/master.cf and change the smtp service line from:

127.0.0.1:smtp inet n - y - - smtpd

to:

smtp inet n - y - - smtpd

Then reload. The explicit IP prefix overrides inet_interfaces, so removing it lets Postfix respect the inet_interfaces = all setting.

smtpd maxproc exhaustion

If smtpd processes are consistently at the limit, there are two levers:

  1. Increase the process limit (short-term relief):

    postconf -e 'default_process_limit = 200'
    postfix reload
    

    This affects all services, not just smtpd. Monitor memory and file descriptor usage after raising it. Alternatively, set maxproc only for the smtpd service in master.cf to avoid impacting other services.

  2. Enable postscreen (structural fix). Postscreen blocks known zombie clients before they consume an smtpd process. If you have high connection volume from scanning or dictionary-attack traffic, postscreen dramatically reduces smtpd pressure.

    Review the postscreen documentation for your version before enabling, as some configuration parameter names changed between Postfix releases.

Port conflict

Identify the conflicting process and either stop it or reconfigure it to listen on a different port:

ss -tlnp | grep -E ':(25|587) '

Common conflicts: Dovecot’s submission service on 587, a leftover sendmail or Exim process, or a container binding the same port.

Firewall or external block

If the socket works locally but not remotely, check in order:

  1. Host firewall: iptables -L -n or nft list ruleset
  2. Cloud security group or network ACL
  3. ISP or upstream provider port 25 blocking (common for residential and some cloud providers)

Port 25 blocking by ISPs is an infrastructure constraint, not a Postfix problem. If you need clients to reach you on a blocked port, use port 587 (submission) for authenticated clients or route through a relay.

Prevention

  • Monitor master process liveness continuously, not just via systemd unit status. Compare the PID file timestamp against the process start time to detect stale PID files after crashes.
  • Alert on SMTP port unavailability externally, not just locally. An external check catches firewall and network issues that a localhost check misses.
  • Track smtpd process count against maxproc. Approaching the limit is a leading indicator before connections start being refused.
  • Alert on any “to limit” log message for smtpd, qmgr, or cleanup. These are info-level and easy to miss without explicit alerting.
  • Review inet_interfaces and inet_protocols after every Postfix package update. Distribution updates can reset configuration to packaged defaults.
  • Evaluate postscreen for any internet-facing mail server. It is the most effective way to prevent smtpd pool exhaustion from zombie traffic.
  • Document the log file path for your distribution. Debian and Ubuntu use /var/log/mail.log; RHEL-family systems use /var/log/maillog. Monitoring and manual commands must target the correct file.

How Netdata helps

Netdata collects per-second metrics and correlates listener health with mail queue state and system signals, which narrows the failure mode quickly:

  • SMTP port liveness checked every second pinpoints when the socket disappears, correlating with deployments or process crashes.
  • Master process monitoring detects PID file staleness and process disappearance, distinguishing a crash from a clean shutdown.
  • smtpd process count tracked against default_process_limit reveals pool saturation before connections are refused.
  • Log pattern detection surfaces “to limit” warnings that are otherwise buried at info level in mail logs.
  • Queue depth metrics (active, deferred, incoming) correlate listener unavailability with queue growth, confirming whether smtpd exhaustion is the cause or a downstream symptom.
  • Connection establishment latency from external vantage points distinguishes firewall interception from Postfix-level failures.