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-master-process-not-running â–Ś

Operations Guides

Postfix master process not running: the whole MTA is down

When the Postfix master process is not running, the entire MTA is down. No mail is received on port 25. No delivery agents are spawned. The queue manager cannot run. Local submissions via sendmail queue up but go nowhere. Upstream senders either timeout, defer, or bounce.

Symptoms are uniform regardless of cause: postqueue -p returns a fatal error, SMTP connections to port 25 are refused, and no master process appears in the process table. The underlying cause varies: OOM kill, stale lock file from an unclean shutdown, port conflict, configuration error, or PID namespace confusion in a container.

Running systemctl restart postfix is the natural reflex, but it can fail silently if the root cause is a stale lock file, a port conflict, or a config error. This guide covers distinguishing a genuinely stopped master from stale-state confusion, finding the root cause, and restoring service without compounding the problem.

What this means

The Postfix master(8) daemon supervises the entire MTA. It reads master.cf for service definitions, holds the process table, and spawns daemons on demand: smtpd for reception, qmgr for queue management, pickup for local submissions, cleanup for message sanitization, smtp for outbound delivery, and local or virtual for mailbox delivery. Master never handles mail directly; it only manages subprocess lifecycles.

Postfix coordinates startup using two files:

  • master.pid in the queue directory (typically /var/spool/postfix/pid/master.pid), which stores the master PID and doubles as a lock file
  • master.lock in the data directory (typically /var/lib/postfix/master.lock), a second exclusive startup lock

When master starts, it writes master.pid and acquires master.lock: both files are locked with flock/fcntl (see master(8)). Neither file is ever deleted - the kernel releases the lock automatically when the process holding it exits, so a leftover file alone does not block the next start. What a crash leaves behind is a stale PID: if that PID gets recycled to an unrelated process, postfix stop/reload signal the wrong process and systemd PIDFile= tracking is confused, and a master.lock that master cannot open or lock (wrong ownership or permissions, or a live second instance) makes postfix start fail.

The critical diagnostic question is not just “is master running” but “what state is the system actually in.” A stale PID file pointing at a recycled PID, a master.lock left behind by a crash, or a container where PID 1 is something other than master can all create misleading signals.

flowchart TD
    A["No mail flowing"] --> B{"master in process table?"}
    B -->|Yes| C{"postqueue -p responds?"}
    C -->|Yes| D["Investigate queues or qmgr"]
    C -->|No| E["qmgr may be hung"]
    B -->|No| F{"master.pid valid?"}
    F -->|Stale PID| G["Stale PID file after crash"]
    F -->|Missing| H["Master genuinely stopped"]
    G --> I["Check logs, ports, config"]
    H --> I
    I --> J["Clear stale state if needed"]
    J --> K["postfix start"]

Common causes

CauseWhat it looks likeFirst thing to check
Master crashed (OOM, SIGKILL)No master process; PID file may exist with stale PIDdmesg for OOM killer activity
Stale master.pid after unclean shutdownStatus checks mislead: the PID in the file points to a dead or recycled processCompare PID file mtime with process start time
Lock file not openable or already lockedpostfix start fails with a lock error despite no visible masterls -la /var/lib/postfix/master.lock, check ownership and whether a second instance holds the lock
Port 25 already in useMaster exits immediately with bind address already in usess -tlnp on port 25
Configuration error from recent changeMaster fails to start; fatal errors in maillogpostfix check and maillog for fatal lines
Container PID namespace mismatchMaster appears as PID 1 but does not spawn children correctlyVerify postfix start-fg or master -i usage
Resource exhaustion (FDs, memory)Master or children cannot fork; too many open files errorsulimit -n and system memory

Quick checks

# Check if the master process is running
ps aux | grep '[p]ostfix/master'

# Read the PID file and verify the referenced process
PID=$(cat /var/spool/postfix/pid/master.pid 2>/dev/null)
echo "PID file says: $PID"
ps -p "$PID" -o pid,comm,lstart 2>/dev/null || echo "No such process"

# Test master liveness (exit 0 = running)
postfix status; echo "exit: $?"

# Verify queue manager responsiveness
time postqueue -p >/dev/null 2>&1 && echo "qmgr responsive" || echo "qmgr not responding"

# Check for ownership and permission problems
postfix check 2>&1

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

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

# Check for stale lock file in data directory
ls -la /var/lib/postfix/master.lock 2>/dev/null && echo "master.lock exists" || echo "no master.lock"

# Check kernel logs for OOM or signal kills targeting postfix
dmesg -T 2>/dev/null | grep -iE 'oom|killed.*postfix|postfix.*kill' | tail -20

# Check maillog for fatal or panic messages
# Path varies by distribution: /var/log/mail.log (Debian/Ubuntu) or /var/log/maillog (RHEL/CentOS)
grep -iE 'fatal|panic' /var/log/mail.log /var/log/maillog 2>/dev/null | tail -20

How to diagnose it

  1. Confirm the master is actually absent. Run ps aux | grep '[p]ostfix/master'. If a process named master owned by root or postfix exists, the problem may be a hung qmgr or a different issue, not a dead master. Proceed only if no master process exists.

  2. Check the PID file. Read /var/spool/postfix/pid/master.pid. If it exists, note the PID and verify it is alive and is actually master: ps -p <PID> -o comm=. If the process is something else (a recycled PID), the PID file is stale. If the file is missing, master either never started or was stopped cleanly.

  3. Compare timestamps. Check the PID file modification time: stat /var/spool/postfix/pid/master.pid. Compare against your expected last restart time. If the mtime is hours or days old, the file is almost certainly stale from a crash.

  4. Check the lock file. Look for master.lock in the data directory. If it exists and no master process is running, it is stale and will block restart.

  5. Review logs for the crash cause. Before restarting, check what killed master:

    • dmesg -T | grep -i oom for memory pressure
    • journalctl -u postfix --since "1 hour ago" for systemd-managed instances
    • grep -iE 'fatal|panic|warning' /var/log/mail.log (or /var/log/maillog on RHEL/CentOS) for Postfix-internal errors
  6. Check for port conflicts. If something else is listening on port 25, master will fail to bind and exit immediately: ss -tlnp | grep ':25 '. Common culprits include another Postfix instance, sendmail, or a container port forward.

  7. Verify configuration validity. Run postfix check. This catches ownership problems, permission errors, and missing directories. Also check postconf -n for unexpected values after a package update that may have changed defaults.

  8. Test the actual startup. Run postfix start and immediately check postfix status. If it fails, read the maillog for the specific error. Do not loop on restart attempts without understanding the failure. Rapid restart loops compound problems through repeated queue scans, DNS hammering, and log flooding.

Metrics and signals to monitor

SignalWhy it mattersWarning sign
Master process existenceBinary indicator of total outagePID file missing, or PID points to non-master process
postqueue -p response timeTests qmgr health beyond master existenceResponse time above 5 seconds indicates qmgr under stress
SMTP greeting on port 25Confirms end-to-end reception pathNo 220 greeting, or socket present but no response
Postfix process countDetects spawn storms, exhaustion, or crash loopsCount rising rapidly, or repeated starting messages in logs
Queue filesystem inode usageInode exhaustion prevents master from creating filesFree inodes below 5 percent
Disk space on queue partitionFull disk prevents PID file, lock file, and queue writesUsage above 90 percent
Kernel OOM eventsIdentifies memory pressure that killed masterOOM killer targeting master or child processes

Fixes

Master crashed from OOM or signal kill

If dmesg shows the OOM killer targeting master or its children, the system is under memory pressure. Restarting Postfix alone will not prevent recurrence.

  1. Free immediate memory if needed, then run postfix start.
  2. Investigate which process consumed memory. Large message processing, queue backlog, or a misconfigured default_process_limit can cause this.
  3. Check postconf | grep process_limit and reduce if the count is too high for available memory.
  4. Consider adding swap or increasing instance memory if this recurs.

Stale PID file

If the PID file references a dead or wrong process:

# Confirm no master process is running first
ps aux | grep '[p]ostfix/master'

# Remove the stale PID file
rm /var/spool/postfix/pid/master.pid

# Check for stale master.lock before starting (see next subsection)
postfix start

# Verify
postfix status

Stale master.lock

If postfix start fails with a lock error (fatal: open lock file /var/lib/postfix/master.lock: ...) but no master process exists, the file is usually unopenable (wrong ownership or permissions, for example after a package upgrade) rather than stale - a crashed master’s lock is released by the kernel automatically.

# Confirm no master process is running
ps aux | grep '[p]ostfix/master'

# Check ownership: must be the postfix user, not root
ls -la /var/lib/postfix/master.lock /var/spool/postfix/pid/master.pid

# If ownership is wrong and no master is running, fix or remove the file
rm /var/lib/postfix/master.lock

# Start master
postfix start

Warning: only remove master.lock when you have confirmed no master process is running. If another instance is legitimately using the lock, removing it can cause two masters to start simultaneously, leading to queue corruption.

Port already in use

If master fails to bind with an address-in-use error:

# Identify what holds the port
ss -tlnp | grep ':25 '

If it is another Postfix instance, stop it first with postfix stop (use -c for the correct instance if multi-instance). If it is sendmail or another MTA, stop that service. If it is a container port forward, adjust your container configuration.

Configuration error

If postfix check or the maillog shows fatal configuration errors:

  1. Identify the specific error in the logs.
  2. Fix the configuration in main.cf or master.cf.
  3. Run postfix check again to confirm.
  4. Run postfix start.

Common post-update issues include changed compatibility_level defaults, new TLS requirements, or missing map databases. On systems that have removed Berkeley DB support, Postfix 3.11 and later provides postfix non-bdb to migrate to lmdb or cdb (see postfix-nbdb(1)).

Container PID namespace confusion

Inside a container, the master process may run as PID 1, which changes signal handling and process group behavior. Postfix 3.3 and later provides master -i (init mode) for this scenario. Postfix 3.3 and later also provides postfix start-fg, which keeps master in the foreground and enables init mode when PID equals 1.

If you are running an older Postfix in a container without init mode, the master may not handle SIGTERM correctly, leading to unclean shutdowns. Either upgrade to 3.3 or later and use postfix start-fg, or use an init wrapper such as tini or dumb-init as PID 1 with master as a child.

Also verify logging. Postfix defaults to syslog, which requires either a syslog daemon inside the container or the host /dev/log socket mounted. Postfix 3.4 and later supports maillog_file = /dev/stdout for direct stdout logging; no separate flag is needed - start Postfix with postfix start-fg (master -s and master -i also keep stdout).

Prevention

  • Monitor inode usage on the queue filesystem. Inode exhaustion causes cascading failures that can crash the master. Alert below 5 percent free inodes.
  • Set appropriate ulimits. The default file descriptor limit (often 1024) is insufficient for production Postfix. Configure systemd overrides or /etc/security/limits.conf for the postfix user.
  • Use systemd PIDFile directive carefully. If your unit file specifies PIDFile=, systemd tracks the main process by that PID. A recycled PID pointing at an unrelated process can cause collateral damage on stop.
  • Test shutdown and startup procedures regularly. Many teams discover stale lock file problems only during real incidents. Practice postfix stop && sleep 2 && postfix start to confirm clean shutdown works.
  • Monitor for crash loops. Multiple “starting.*version” log entries in a short window indicate master is crashing and restarting. Investigate before the queue fills.
  • Keep Postfix patched. Security vulnerabilities in SMTP parsing or other mail-handling components can crash smtp and smtpd child processes repeatedly, creating system instability that looks like a master problem. For example, CVE-2026-43964 (fixed in 3.8.16, 3.9.10, 3.10.9) allows a buffer over-read crash via an enhanced status code that lacks text after the third number.

How Netdata helps

  • Process liveness at per-second resolution. Netdata detects the absence of the master process within seconds and correlates it with system-level events like memory pressure or OOM kills.
  • Queue depth metrics. The Postfix collector tracks queue sizes across incoming, active, deferred, maildrop, hold, and corrupt. A sudden freeze across all queues signals that master has stopped, even before an external probe fails.
  • Disk and inode monitoring. Netdata surfaces inode exhaustion and disk space as separate signals adjacent to process liveness, shortening root cause analysis for common crash triggers.
  • Anomaly detection. Netdata ML-based anomaly detection flags unusual patterns in process counts, queue growth rates, and system resource usage that can precede a master crash.
  • Correlation across the stack. When the master is down, correlate Postfix process state with DNS resolver health, disk I/O, network connectivity, and memory usage in the same time window.

No related troubleshooting guides are available yet. See the Postfix operations hub for the broader monitoring framework, signal taxonomy, and failure pattern catalogue.