---
name: "mailexporter"
section: "1"
platform: "linux"
package: "prometheus-mailexporter"
version: "1.0+git20190716.c60d197-1+b23"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/mailexporter"
---

# mailexporter(1)

export metrics about mail server functionalty

## NAME

mailexporter - export metrics about mail server functionalty

## SYNOPSIS

mailexporter \[options\]

## OPTIONS

**-config.file** config-file to use (default "/etc/mailexporter.conf")

**-log.timestamps** Log with timestamps

**-v=\<level\>** verbosity; higher means more output (default 1)

**-web.listen-address** colon separated address and port mailexporter shall listen on (default ":9225")

**-web.telemetry-path** HTTP endpoint for serving metrics (default "/metrics")

## EXPORTED METRICS

- •

  *mail\_deliver\_success* indicates if last successfully sent mail was delivered in time (1 if so, 0 if not)

- •

  *mail\_send\_fails* indicates the number of failed attempts to send a probing mail via the specified SMTP-Server

- •

  *mail\_last\_send\_duration\_seconds* duration of last valid mail handover to external SMTP-server in seconds

- •

  *mail\_send\_durations\_seconds* histogram of gauge mail\_last\_send\_duration\_seconds

- •

  *mail\_last\_deliver\_duration\_seconds* time it took for the last received mail to be delivered (doesn't matter if timed out or not) in seconds

- •

  *mail\_deliver\_durations\_seconds* histogram of gauge last\_mail\_deliver\_duration

- •

  *mail\_last\_deliver\_time* last time a mail was successfully delivered to the system as a unix timestamp (in seconds)

- •

  *mail\_late\_mails* number of probing-mails being received after their respective timeout

## SEE ALSO

[mailexporter.conf(5)](/mailexporter.conf/5.md)
