OCF_HEARTBEAT_POSTFI(7)

🌸 ocf_heartbeat_postfix(7) 🌸

okay so bestie, welcome to the OCF resource agents corner of the manual β€” this one's called ocf_heartbeat_postfix and it's giving mail server main character energy. Buckle up, we're learning how to make Postfix highly available, and honestly? It's lowkey iconic. πŸ’Œ


✨ NAME ✨

ocf_heartbeat_postfix β€” manages a highly available Postfix mail server instance. periodt. πŸ‘‘

✨ SYNOPSIS ✨

postfix [start | stop | monitor | meta-data | validate-all]

✨ DESCRIPTION ✨

So basically, this script manages Postfix as an OCF resource inside a high-availability setup. That's the whole vibe check β€” it's the little agent that keeps your mail server behaving in a cluster. πŸ¦‹

πŸŽ€ SUPPORTED PARAMETERS πŸŽ€

These are the knobs you get to turn, bestie. Use them wisely:

  • binary β€” full path to the Postfix binary. Like, for example, "/usr/sbin/postfix". (optional, string, default "/usr/sbin/postfix")
  • config_dir β€” full path to a Postfix configuration directory. For example, "/etc/postfix". (unique, optional, string, no default β€” so yeah, nothing's filled in for you here πŸ™ˆ)
  • parameters β€” the Postfix daemon can be called with extra parameters, and if you've got any you just drop them right here. (optional, string, no default)

πŸ’… SUPPORTED ACTIONS πŸ’…

This resource agent supports these actions (a.k.a. operations). Slay:

  • start β€” starts the resource. Suggested minimum timeout: 20s.
  • stop β€” stops the resource. Suggested minimum timeout: 20s.
  • reload β€” suggested minimum timeout: 20s.
  • monitor β€” performs a detailed status check. Suggested minimum timeout: 20s. Suggested interval: 60s.
  • validate-all β€” performs a validation of the resource configuration. Suggested minimum timeout: 20s.
  • meta-data β€” retrieves resource agent metadata (internal use only, so like... don't touch unless you know what you're doing fr fr). Suggested minimum timeout: 5s.

🌈 EXAMPLE CRM SHELL 🌈

Here's how you'd configure a postfix resource using the crm(8) shell β€” copy it exactly, no cap:

primitive p_postfix ocf:heartbeat:postfix \
  op monitor depth="0" timeout="20s" interval="60s"

⭐ EXAMPLE PCS ⭐

And here's the same situation using pcs(8):

pcs resource create p_postfix ocf:heartbeat:postfix \
  op monitor OCF_CHECK_LEVEL="0" timeout="20s" interval="60s"

πŸ¦‹ SEE ALSO πŸ¦‹

πŸ’œ AUTHOR πŸ’œ

ClusterLabs contributors (see the resource agent source for information about individual authors). shoutout to the collective, iykyk 🫢


ngl bestie, if you ever need the lore on who wrote what, the source is right there β€” go peek πŸ‘€

okay that's the whole page!! πŸ’– This gem is from resource-agents version UNKNOWN, dated 10/01/2026 β€” and that's the manual page wrap, mwah πŸ’…βœ¨

πŸ“¦ where this page comes from