MAILGRAPH(8)

πŸ’Œ MAILGRAPH(8) β€” the group chat guide to mailgraph

okay bestie, sit down, hydrate, because we're about to talk about the daemon that turns your mail server's chaos into cute lil graphs. this is the System Manager's Manual page for mailgraph, section 8, and yes it's giving sysadmin main character energy. πŸŽ€


✨ NAME ✨

mailgraph β€” a daemon which produces graphs of SMTP traffic 🌈


✨ SYNOPSIS ✨

mailgraph [ options ]

that's it. that's the whole vibe. options go in, graphs come out. πŸ’…


✨ DESCRIPTION ✨

so mailgraph is a daemon β€” like, it just lives in the background doing its thing, no need to supervise it constantly, she's independent β€” and what she does is produce mail statistics in RRDtool format for Postfix and Sendmail. πŸ“Š

those stats get stored, and then she uses them to generate daily, weekly, monthly and yearly graphs of:

  • sent mails
  • received mails
  • rejected mails
  • bounced mails
  • viruses
  • spam mails

so basically the whole mail emotional journey, visualized. iconic, honestly. πŸ‘‘


✨ OPTIONS ✨

  • -h, --help β€” shows you the help and then dips. exit stage left. πŸšͺ
  • -v, --verbose β€” be verbose about what you do. she will tell you everything, no gatekeeping. πŸ—£οΈ
  • -V, --version β€” spits out version info and exits. quick lil flex. ✨
  • -c, --cat β€” makes the logfile only be read, not monitored. like, one pass and done, no lurking. πŸ“–
  • -l, --logfile file β€” monitor file as the logfile instead of /var/log/syslog. pick your own fave. πŸ—‚οΈ
  • -t, --logtype type β€” sets the logfile's type. default is syslog. 🏷️
  • -y, --year β€” the start year of the log file. default is the current year. πŸ—“οΈ
  • --host=HOST β€” only use entries for HOST (a regexp, so yes she does pattern matching, she's smart) in syslog. 🎯
  • -d, --daemon β€” starts in the background. she's going off to do her own thing now. 🫢
  • --daemon-pid=FILE β€” write the PID to FILE instead of /var/run/mailgraph.pid. πŸ“Œ
  • --daemon-rrd=DIR β€” write RRDs to DIR instead of /var/lib/mailgraph/. πŸ“
  • --daemon-log=FILE β€” write the verbose-log to FILE instead of /var/log/mailgraph.log. πŸ“
  • --ignore-localhost β€” ignore mail to/from localhost. (used for virus scanner, iykyk) 🦠
  • --ignore-host=HOST β€” ignore mail to/from HOST. (also used for virus scanner) πŸ™ˆ
  • --no-mail-rrd β€” do not update the mail rrd. skipping that one, bestie. β›”
  • --no-virus-rrd β€” do not update the virus rrd. 🦠🚫
  • --no-greylist-rrd β€” do not update the greylist rrd. 🌫️🚫
  • --rrd-name=NAME β€” use NAME.rrd, NAME_virus.rrd and NAME_greylist.rrd for the rrd files. name your children, basically. 🍼
  • --rbl-is-spam β€” count rbl rejects as spam. into the spam bucket they go. πŸ—‘οΈ
  • --virbl-is-virus β€” count virbl rejects as viruses. into the virus bucket they go. 🧫

✨ SEE ALSO ✨

go read those too, they're part of the lore. πŸ“š


✨ AUTHOR ✨

David Schweikert <dws@ee.ethz.ch> β€” the actual genius behind all of this. give her her flowers. πŸ’


ngl, every single flag above matters, so don't be out here guessing β€” she'll happily tell you everything with --verbose if you just ask. πŸ¦‹

and that's the whole page, bestie!! footer said MAILGRAPH(8) one more time just to remind you this is section 8 of the System Manager's Manual, so like… go forth and graph your mail traffic responsibly. mwah. πŸ’–βœ¨πŸŽ€