Grafana dashboard: Postfix SMTP Email + OpenDKIM
Description: Browse, analyze logs in Elasticsearch for Postfix mail relay and OpenDKIM

# Postfix SMTP Email + OpenDKIM Dashboard
Dashboard to visualize data from Postfix and OpenDKIM

# Features
* Supports Postfix log messages
* Supports OpenDKIM log messages
* Mail flow diagram of counts and average timings
* Postfix aggregate log report
* SASL Authentication errors
* Includes documention:
  * Email relay troubleshooting guide
  * Dashboard usage guide
  * ESMTP response code reference guide
  * Mail process flow guide

# Bugs, suggestions and feedback.
Bug reports, suggestions and feedback to [GitHub](https://github.com/bhozar/grafana-dashboards/tree/master/postfixsmtpemail_opendkim) please!

# Logstash config
Filters and grok files are provided on [GitHub](https://github.com/bhozar/grafana-dashboards/tree/master/postfixsmtpemail_opendkim/logstash).

# Prometheus config
Required for the graph displaying results from the port 25/587 probes. Requires [Prometheus blackbox_exporter](https://github.com/prometheus/blackbox_exporter).
```
  - job_name: 'smtp_status_tls'
    metrics_path: /probe
    params:
      module: [smtp_starttls]
    static_configs:
      - targets: [
		'your.mail.server.com'		
	        ]
    relabel_configs:
      # Ensure port is 25, pass as URL parameter
      - source_labels: [__address__]
        regex: (.*)(:.*)?
        replacement: ${1}:587
        target_label: __param_target
      # Make instance label the target
      - source_labels: [__param_target]
        target_label: instance
      # Actually talk to the blackbox exporter though
      - target_label: __address__
        replacement: 127.0.0.1:9115

  - job_name: 'smtp_status'
    metrics_path: /probe
    params:
      module: [smtp_banner]
    static_configs:
      - targets: [
                'your.mail.server.com'
                ]
    relabel_configs:
      # Ensure port is 25, pass as URL parameter
      - source_labels: [__address__]
        regex: (.*)(:.*)?
        replacement: ${1}:25
        target_label: __param_target
      # Make instance label the target
      - source_labels: [__param_target]
        target_label: instance
      # Actually talk to the blackbox exporter though
      - target_label: __address__
        replacement: 127.0.0.1:9115
``` 

# Blackbox_exporter blackbox.yml config
```
  smtp_starttls:
    prober: tcp
    timeout: 20s
    tcp:
      preferred_ip_protocol: ip4
      tls_config:
        insecure_skip_verify: true
      query_response:
        - expect: "^220 ([^ ]+) ESMTP (.+)$"
        - send: "EHLO prober"
        - expect: "^250-(.*)"
        - send: "STARTTLS"
        - expect: "^220"
        - starttls: true
        - send: "EHLO prober"
        - expect: "^250-"
        - send: "QUIT"
  smtp_banner:
    prober: tcp
    timeout: 20s
    tcp:
      preferred_ip_protocol: ip4
      query_response:
        - expect: "^220 ([^ ]+) ESMTP (.+)$"
        - send: "EHLO prober"
        - expect: "^250-(.*)"
        - send: "MAIL FROM:ping@your.mail.server.com"
        - expect: "^250-(.*)"
        - send: "RCPT TO:test.email@your.mail.domain.com"
        - expect: "^250-(.*)"
        - send: "QUIT"
```
# Screenshots
![Postfix SMTP Email + OpenDKIM](https://grafana.com/api/dashboards/11293/images/7568/image)

![Postfix SMTP Email + OpenDKIM](https://grafana.com/api/dashboards/11293/images/7216/image)

{
  "__inputs": [
    {
      "name": "DS_ELASTICSEARCH-POSTFIX",
      "label": "Elasticsearch-postfix",
      "description": "",
      "type": "datasource",
      "pluginId": "elasticsearch",
      "pluginName": "Elasticsearch"
    },
    {
      "name": "DS_PROMETHEUS",
      "label": "Prometheus",
      "description": "",
      "type": "datasource",
      "pluginId": "prometheus",
      "pluginName": "Prometheus"
    }
  ],
  "__requires": [
    {
      "type": "panel",
      "id": "agenty-flowcharting-panel",
      "name": "FlowCharting",
      "version": "0.6.1"
    },
    {
      "type": "datasource",
      "id": "elasticsearch",
      "name": "Elasticsearch",
      "version": "1.0.0"
    },
    {
      "type": "grafana",
      "id": "grafana",
      "name": "Grafana",
      "version": "6.6.1"
    },
    {
      "type": "panel",
      "id": "grafana-piechart-panel",
      "name": "Pie Chart",
      "version": "1.4.0"
    },
    {
      "type": "panel",
      "id": "graph",
      "name": "Graph",
      "version": ""
    },
    {
      "type": "datasource",
      "id": "prometheus",
      "name": "Prometheus",
      "version": "1.0.0"
    },
    {
      "type": "panel",
      "id": "stat",
      "name": "Stat",
      "version": ""
    },
    {
      "type": "panel",
      "id": "table",
      "name": "Table",
      "version": ""
    },
    {
      "type": "panel",
      "id": "text",
      "name": "Text",
      "version": ""
    }
  ],
  "annotations": {
    "list": [
      {
        "builtIn": 1,
        "datasource": "-- Grafana --",
        "enable": true,
        "hide": true,
        "iconColor": "rgba(0, 211, 255, 1)",
        "name": "Annotations & Alerts",
        "type": "dashboard"
      }
    ]
  },
  "description": "Browse, analyze logs in Elasticsearch for Postfix mail relay and OpenDKIM",
  "editable": true,
  "gnetId": 11293,
  "graphTooltip": 0,
  "id": null,
  "iteration": 1581531687536,
  "links": [
    {
      "asDropdown": true,
      "icon": "external link",
      "includeVars": true,
      "keepTime": true,
      "tags": [
        "ElasticSearch"
      ],
      "targetBlank": true,
      "title": "ElasticSearch Dashboards",
      "type": "dashboards"
    }
  ],
  "panels": [
    {
      "collapsed": true,
      "datasource": null,
      "gridPos": {
        "h": 1,
        "w": 24,
        "x": 0,
        "y": 0
      },
      "id": 93,
      "panels": [
        {
          "content": "\n------------------------------------\n# Email Troubleshooting\n------------------------------------\n\n### 3rd Party Troubleshooting tools:\n\n| Tool                                                                \t| Use                                       \t| Details                                                                                                         |\n|---------------------------------------------------------------------\t|--------------------------------------------\t|----------------------------------------------------------------------------------------------------------------\t|\n| [MX Toolbox: DNS Records](https://mxtoolbox.com/SuperTool.aspx)     \t| Retrieve customer MX, SPF and DKIM records \t| The mail server's IP address is listed in the SPF record of the domain in the SMTP envelope's mail from header \t|\n| [SPF Validation](http://www.kitterman.com/spf/validate.html)        \t| Retrieve and validate SPF records\t          | Check ````a:your.mailrelay.com```` or ````your.mailrelay.com```` is listed in their SPF records\t  |\n| [MX Toolbox: Email Headers](https://mxtoolbox.com/EmailHeaders.aspx)  | Analyse email headers                       | Paste email headers to make them readable. Can follow email flow of an email from source to destination, along with other details. Useful when a customer has supplied an email as an attachment with intact headers. |\n| [Mail Tester](https://www.mail-tester.com/)                           | Analyse email for DKIM, SPF and spam rating | Generates a single use email address. Send an email through the product to receive a score on how success email delivery will be. |\n|\n\n1. First thing to check is to see if the user has setup an SPF record that contains your mail relay server and that it is set correctly. The user should have ````a:your.mailrelay.com```` in the record. \n \nIf the user does not have an SPF record for your mail relay server they will need to whitelist ````your.mailrelay.com```` on their email endpoints. Retrieve the customers MX records to see what they are using as their endpoints where they need to whitelist our server.\n \nIf the user has successfully setup the SPF record or whitelisted the mail server the next step is to trace the emails through the system. This can be done on this Grafana dashboard.\n\n## Recommended Practice\n#### Do:\n* Recommend the user setup SPF records\n* Recommend the user setup DKIM records\n* Use ````@example.com```` or ````@example.net```` or ````@example.org```` email addresses for emails you don't want delivered as per [RFC 2606](https://tools.ietf.org/html/rfc2606)\n* Set your mail servers to discard all emails from/to the above domains",
          "datasource": null,
          "gridPos": {
            "h": 19,
            "w": 24,
            "x": 0,
            "y": 1
          },
          "id": 168,
          "links": [],
          "mode": "markdown",
          "options": {},
          "timeFrom": null,
          "timeShift": null,
          "title": "Email Troubleshooting",
          "type": "text"
        },
        {
          "content": "\n------------------------------------\n# How-to troubleshoot email relaying\n------------------------------------\n\n## Data\nGrafana dashboards work best when focused on a small set of data and narrow time period as it reduces the quantity of data it needs to return.\n1. ***Limit the time data time range:*** Set the time period in the top right of the dashboard to the smallest period possible by selecting one of the pre-configured time options, or modify the ```custom range``` options.\n2. ***Add a custom filter:*** In the top right of the dashboard, add a filter by clicking ```Filters +``` for each filter you require.\n\n## Filters\nThe filter option brings back all filters available within ElasticSearch. The majority of filters for this dashboard start with ```postfix_``` and these are the only ones you will need to filter on. Filters apply to everything on the dashboard using ElasticSearch for data. If the option exists, use a filter ending with ```.keyword``` as these are indexed and return results quicker than the non-indexed alternative.\n\nWildcards can be used if you change the operator from equals ```=``` to regex ```=~```\n\nTo exclude results change the operator to one prefixed with ```!```\n\nFilter names and values autocomplete from available data as you type.\n### Popular Filters\n1. ```postfix_from.keyword```: **Email sender.** Enter an email address to display stats and logs including only this email address. e.g. ```=``` with ```user@yourdomain.com``` or ```=~``` with ```@yourdomain.com```\n2. ```postfix_to.keyword```: **Email recipient.** Same as above. \n3. ```postfix_from_domain.keyword```: **Email sender domain.** The email domain of the sender proceeding the @ symbol. e.g. ```yourdomain.com```\n4. ```postfix_to_domain.keyword```: **Email recipient domain.** The email domain of the recipient proceeding the @ symbol. e.g. ```yourdomain.com```\n5. ```postfix_queueid.keyword```: **Queue ID.** This is an internal ID to track all processes through the internal Postfix and DKIM services. By filter on this value you can see every individual step in the mail relay for a specific message. \n6. ```postfix_dkim_domain.keyword```: **DKIM domain.** The email domain with signed DKIM messages. Helpful when troubleshoot DKIM issues, or immediately after DKIM setup to confirm correct operation. Value is the domain part of an email address excluding the @ symbol. e.g. ```yourdomain.com```\n \n### Ad-hoc filtering\nYou can quickly filter from data on the majority of tables. Hover over the data cell and select ```+``` to filter on a value, or ```-``` to filter out a value. It is not always possible for all fields, so you may need to manually filter as above.\n\n-----------------\n# Additional Help\n-----------------\nContexual help is available on some panels. Look for an ```i``` in the top right corner of any panel and hover over it to display additional details.\n\nHelp improve the documention and dashboard by feeding back to [GitHub](https://github.com/bhozar/grafana-dashboards/tree/master/postfixsmtpemail_opendkim) on what would be helpful.",
          "datasource": null,
          "gridPos": {
            "h": 21,
            "w": 12,
            "x": 0,
            "y": 20
          },
          "id": 91,
          "links": [],
          "mode": "markdown",
          "options": {},
          "timeFrom": null,
          "timeShift": null,
          "title": "Dashboard Guide",
          "type": "text"
        },
        {
          "content": "\n----------------------------\n# Common SMTP Response Codes\n----------------------------\nBelow are a handful of SMTP server response codes that you might see when sending email:\n\n* ```250``` – This SMTP server response simply means everything went well and your message was delivered to the recipient server.\n* ```421``` – Your message was temporarily deferred by the recipient server. This is usually a result of too many connections in a short timeframe or too many messages.\n* ```450``` – Your message was not delivered because the other user mailbox was not available. This can happen if the mailbox is locked or is not routable.\n* ```451``` – This response is sent when the message simply failed. Often times this is not caused by you, but rather because of a far-end server problem.\n* ```452``` – This kind of response is sent back when there isn’t enough system storage to send the message. Your message is deferred until storage opens up and it can then be delivered.\n* ```550``` – The message has failed because the other user’s mailbox is unavailable or because the recipient server rejected your message.\n* ```551``` – The mailbox your message was intended for does not exist on the recipient server.\n* ```552``` – The mailbox your message was sent to does not have enough storage to accept your message.\n* ```553``` – You message was not delivered because the name of the mailbox you sent to does not exist.\n* ```554``` – This is a very vague message failure response that can refer to any number of problems either on your end or with the recipient server.\n\nIf the codes above do not offer enough detail then the next two sections contains a more thorough list of codes and their meanings.\n\n\n---------------------\n# Full Response Codes\n---------------------\n\nyou can look in the message field to find the proper error code that will give you the reason for the message. Below is a list of the Standard SMTP codes and the Extended SMTP (ESMTP) codes.\n\nThe message column in the log viewer can contain both a standard and enhanced message explaining why a response was given to make advanced troubleshooting easier. Generally the text in the response should explain what has happened.\n\n--------------------------\n# Full SMTP Response Codes\n--------------------------\nThis list of codes is the standard SMTP error codes you will find in most email responses.\n\n## 200 Codes\n* ```211``` – System status / system help reply\n* ```214``` – Help message\n* ```220``` – Domain service ready\n* ```221``` – Domain service closing transmission channel\n* ```250``` – Requested mail action completed and OK\n* ```251``` – Not Local User, forward email to forward path\n* ```252``` – Cannot Verify user, will attempt delivery later\n* ```253``` – Pending messages for node started\n## 300 Codes\n* ```354``` – Start mail input; end with .\n* ```355``` – Octet-offset is the transaction offset\n## 400 Codes\n* ```421``` – Domain service not available, closing transmission channel\n* ```432``` – Domain service not available, closing transmission channel\n* ```450``` – Requested mail action not taken: mailbox unavailable. request refused\n* ```451``` – Requested action aborted: local error in processing Request is unable to be processed, try again\n* ```452``` – Requested action not taken: insufficient system storage\n* ```453``` – No mail\n* ```454``` – TLS not available due to temporary reason. Encryption required for requested authentication mechanism\n* ```458``` – Unable to queue messages for node\n* ```459``` – Node not allowed: reason\n## 500 Codes\n* ```500``` – Syntax error, command unrecognized\n* ```501``` – Syntax error in parameters or arguments\n* ```502``` – Command not implemented\n* ```503``` – Bad sequence of commands\n* ```504``` – Command parameter not implemented\n* ```510``` – Check the recipient address\n* ```512``` – Domain can not be found. Unknown host.\n* ```515``` – Destination mailbox address invalid\n* ```517``` – Problem with senders mail attribute, check properties\n* ```521``` – Domain does not accept mail\n* ```522``` – Recipient has exceeded mailbox limit\n* ```523``` – Server limit exceeded. Message too large\n* ```530``` – Access Denied. Authentication required\n* ```531``` – Mail system Full\n* ```533``` – Remote server has insufficient disk space to hold email\n* ```534``` – Authentication mechanism is too weak. Message too big\n* ```535``` – Multiple servers using same IP. Required Authentication\n* ```538``` – Encryption required for requested authentication mechanism\n* ```540``` – Email address has no DNS Server\n* ```541``` – No response from host\n* ```542``` – Bad Connection\n* ```543``` – Routing server failure. No available route\n* ```546``` – Email looping\n* ```547``` – Delivery time-out\n* ```550``` – Requested action not taken: mailbox unavailable\n* ```551``` – User not local; please try forward path\n* ```552``` – Requested mail action aborted: exceeded storage allocation\n* ```553``` – Requested action not taken: mailbox name not allowed\n* ```554``` – Transaction failed\n\n-------------------------------------\n# Full Extended SMTP (ESMTP) standards\n-------------------------------------\nThe Extended SMTP response codes work in 3 digit combinations. For example, ```5.2.1``` is a Permanent Error where the receiving email is not accepting messages. The first number is the email message status. The second 2 numbers pinpoint the exact information bout the error.\n\n* ```2``` ***Successfully sent the email.***\n* ```4``` ***Temporary problem when sending the email.*** The email server typically will try to send it again till it reaches retry timeout.\n* ```5``` ***Permanent or Fatal error.*** This can be caused by a non existent email address, DNS problem, or your email was blocked by the receiving server.\n\nBelow is a list of the Extended SMTP error codes.\n\n***Note!*** *X* can be a ``4`` or a ``5`` depending on is its Temporary or Permanent.\n\n## X.1.x Codes\n* ```X.1.0``` – Other address status\n* ```X.1.1``` – Bad destination mailbox address\n* ```X.1.2``` – Bad destination system address\n* ```X.1.3``` – Bad destination mailbox address syntax\n* ```X.1.4``` – Destination mailbox address ambiguous\n* ```X.1.5``` – Destination mailbox address valid\n* ```X.1.6``` – Mailbox has moved\n* ```X.1.7``` – Bad sender’s mailbox address syntax\n* ```X.1.8``` – Bad sender’s system address\n## X.2.x Codes\n* ```X.2.0``` – Other or undefined mailbox status\n* ```X.2.1``` – Mailbox disabled, not accepting messages\n* ```X.2.2``` – Mailbox full\n* ```X.2.3``` – Message length exceeds administrative limit\n* ```X.2.4``` – Mailing list expansion issue\n## X.3.x Codes\n* ```X.3.0``` – Other or undefined mail system status\n* ```X.3.1``` – Mail system full\n* ```X.3.2``` – System not accepting network messages\n* ```X.3.3``` – System not capable of selected features\n* ```X.3.4``` – Message too big for system\n* ```X.3.5``` – System incorrectly configured\n## X.4.x Codes\n* ```X.4.0``` – Other or undefined network or routing status\n* ```X.4.1``` – No answer from host\n* ```X.4.2``` – Bad connection\n* ```X.4.3``` – Routing server failure\n* ```X.4.4``` – Unable to route\n* ```X.4.5``` – Network congestion\n* ```X.4.6``` – Routing loop detected\n* ```X.4.7``` – Delivery time expired\n## X.5.x Codes\n* ```X.5.0``` – Other or undefined protocol status\n* ```X.5.1``` – Invalid command\n* ```X.5.2``` – Syntax error\n* ```X.5.3``` – Too many recipients\n* ```X.5.4``` – Invalid command arguments\n* ```X.5.5``` – Wrong protocol version\n## X.6.x Codes\n* ```X.6.0``` – Other or undefined media error\n* ```X.6.1``` – Media not supported\n* ```X.6.2``` – Conversion required and prohibited\n* ```X.6.3``` – Conversion required but not supported\n* ```X.6.4``` – Conversion with loss performed\n* ```X.6.5``` – Conversion failed\n## X.7.x Codes\n* ```X.7.0``` – Other or undefined security status\n* ```X.7.1``` – Delivery not authorized, message refused\n* ```X.7.2``` – Mailing list expansion prohibited\n* ```X.7.3``` – Security conversion required but not possible\n* ```X.7.4``` – Security features not supported\n* ```X.7.5``` – Cryptographic failure\n* ```X.7.6``` – Cryptographic algorithm not supported\n* ```X.7.7``` – Message integrity failure",
          "datasource": null,
          "gridPos": {
            "h": 21,
            "w": 12,
            "x": 12,
            "y": 20
          },
          "id": 96,
          "links": [],
          "mode": "markdown",
          "options": {},
          "timeFrom": null,
          "timeShift": null,
          "title": "Response Codes",
          "type": "text"
        }
      ],
      "title": "Instructions",
      "type": "row"
    },
    {
      "collapsed": false,
      "datasource": null,
      "gridPos": {
        "h": 1,
        "w": 24,
        "x": 0,
        "y": 1
      },
      "id": 95,
      "panels": [],
      "title": "Overview",
      "type": "row"
    },
    {
      "cacheTimeout": null,
      "datasource": "${DS_ELASTICSEARCH-POSTFIX}",
      "description": "Total unique email senders.",
      "gridPos": {
        "h": 3,
        "w": 4,
        "x": 0,
        "y": 2
      },
      "id": 82,
      "links": [],
      "options": {
        "colorMode": "background",
        "fieldOptions": {
          "calcs": [
            "sum"
          ],
          "defaults": {
            "mappings": [
              {
                "id": 0,
                "op": "=",
                "text": "N/A",
                "type": 1,
                "value": "null"
              }
            ],
            "nullValueMode": "connected",
            "thresholds": {
              "mode": "absolute",
              "steps": [
                {
                  "color": "#299c46",
                  "value": null
                },
                {
                  "color": "rgba(237, 129, 40, 0.89)",
                  "value": 0
                },
                {
                  "color": "rgb(99, 82, 204)",
                  "value": 1
                }
              ]
            },
            "title": "Senders",
            "unit": "none"
          },
          "overrides": [],
          "values": false
        },
        "graphMode": "area",
        "justifyMode": "auto",
        "orientation": "horizontal"
      },
      "pluginVersion": "6.6.1",
      "targets": [
        {
          "bucketAggs": [
            {
              "field": "@timestamp",
              "id": "2",
              "settings": {
                "interval": "$inter",
                "min_doc_count": 1,
                "trimEdges": 0
              },
              "type": "date_histogram"
            }
          ],
          "dsType": "elasticsearch",
          "hide": false,
          "metrics": [
            {
              "field": "postfix_from.keyword",
              "id": "1",
              "meta": {},
              "settings": {},
              "type": "cardinality"
            }
          ],
          "query": "host.name.keyword:$host",
          "refId": "A",
          "timeField": "@timestamp"
        }
      ],
      "title": "",
      "transparent": true,
      "type": "stat"
    },
    {
      "aliasColors": {},
      "cacheTimeout": null,
      "datasource": "${DS_ELASTICSEARCH-POSTFIX}",
      "description": "Mail Processing Flow",
      "flowchartsData": {
        "flowcharts": [
          {
            "allowDrawio": false,
            "bgColor": "#7f99a3",
            "center": true,
            "csv": "",
            "download": false,
            "editorTheme": "dark",
            "editorUrl": "https://www.draw.io",
            "grid": false,
            "lock": true,
            "scale": true,
            "tooltip": true,
            "type": "xml",
            "url": "http://<source>:<port>/<pathToXml>",
            "xml": "<mxfile host=\"www.draw.io\" modified=\"2020-02-12T18:28:37.565Z\" agent=\"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.100 Safari/537.36\" etag=\"-ZvkPzkg9KOPfOGfM1yk\" version=\"12.6.8\"><diagram id=\"S3FTzw965iwAfs0skPoR\" name=\"Page-1\">7VrRkps2FP0aHuMBBAY/rnfddKfZTlpv0uSpo4DW0MGIEWJt9+srjAQI4Zj1GjAzzcMGXa6EuTrn3CsJDdxv9x8JTIIn7KNIM3V/r4EHzTQNF7C/ueFQGIAwbEjoc5/KsA7/Rdyoc2sW+iiVHCnGEQ0T2ejhOEYelWyQELyT3V5wJD81gRukGNYejFTrX6FPg8Lq2npl/xWFm0A82dD5nS0UztyQBtDHu5oJrDRwTzCmxdV2f4+iPHYiLkW/X07cLX8YQTHt0uHP73cp+Nvxv5IosoPl4+F59fsHsxjlFUYZf2HNnMNtooFl/CPN/9PyYWXTM6aQjTyP2HOXPwi72tCjp9JztYVhlHZy/Xr36cuKR4oeRPgJzmIf5W9gMLddEFK0TqCX390xvDFbQLcRv61GhAfpFRGK9jUTj9BHhLeIkgNz2cuwO4imXbR31dyXMxzU5t3hNsjhtilHrmaEXfBJecMEgZYJasQIxf5djnTW8iKYpqEnhwXtQ/qtdv2dXeszm7ce8jfXReMgGjH78d/qjVqvvFl1O7ZEv5NTkOKMeOg8EikkG0R/4mcVfsiXeKtOaG3G7JYJEzaCIkjDV5ntbbPIn/AZh+zNSrx8ADJgynHFEMV78151djYGKlElkGc1BioCowx0BFX52pfjbN4BZyzka97EhAZ4g2MYrSrrsmJrjoXK5xPGCQfgP4jSA5d5mFHckcFn4WN1hI/dET6dcfEudltK1JfoBRPUoo9/ZChDqpI+wZilIKLe4HqqKm9zVqOI5VI0jLpaoCGvuiKvbgtZ3b7U1RgF5cOLq92RHYtrs+PYlWUneKg5JLmIpadFFdjtWnhKO5v+DmgAo/gBV9VLW2HuY1yxVJ8ULU371mhpTYmWl9RXl1PZ6UhlA9wEly3nbVw+498PmR2FzA+/PT4xyzrcxAxSF7N46OULmDty9Ex1/bKYq0wGfTHZVSI7BrP7T5zOtcn2Pv20/9fPMyXOZPTTlXOzXNucdR9EPhen5PNLnE5cQG13XP0sNw8nopeCNefpNb8txVT32e6LHeUQ53X9GtEsmUY1b+uuLAGjV/OLcbPRzLHrCcm4JB31lIwEC87T5eoFxkXZaO5aMrb4BsqpdNT0d+z+s9HUSszOGBAj3ohkAlORzJF5rjuGJlWeeTV0hux56zMiIYsJIsPxGfRTXSoEdByjtR4c6ljBUM8VngmM022YpsfMOoWMOjebp4JjZ1R3XKZJLOuYTvWZKZZ0ZRbuI6N23h+7egF6WUYVMioWHD/fHmu6D5FQwShrkOEPSTpDx3RvKhEbLduX6AURMqWFd1NjzRaJtVWJ7W/hbShBXbKQeJOKqeHMbDmqxthhVTeEV/sknBRUHUteYI8NVaDuXazRMWkwTTX1x5hVtjETtCvUWmkAk9zoRTjzhwl24wMb11SCbZgttVdpfE+41RUO39hcEYLJdBCrHAst1Cj2ta0JplQ8DHsU0XK4ZF67sjjxxUTzQ5xLP1sDjowsF8yMRf2fPOyJ1ebQH4iYutOA8JvKZtasPtst3Ktvn8HqPw==</diagram></mxfile>",
            "zoom": "100%"
          }
        ]
      },
      "format": "short",
      "graphId": "flowchart_126",
      "gridPos": {
        "h": 13,
        "w": 20,
        "x": 4,
        "y": 2
      },
      "id": 126,
      "init": {
        "logLevel": 3
      },
      "interval": null,
      "links": [],
      "metrics": [],
      "newFlag": false,
      "options": {},
      "rulesData": {
        "rulesData": [
          {
            "aggregation": "total",
            "alias": "InboundEmails",
            "colorOn": "a",
            "colors": [
              "#C4162A",
              "#37872D",
              "#37872D"
            ],
            "column": "Time",
            "dateFormat": "YYYY-MM-DD HH:mm:ss",
            "decimals": 0,
            "hidden": false,
            "invert": true,
            "link": false,
            "linkData": [],
            "linkOn": "a",
            "linkParams": false,
            "linkProp": "id",
            "linkUrl": "",
            "mappingType": 1,
            "metricType": "serie",
            "order": 1,
            "overlayIcon": false,
            "pattern": "emails",
            "rangeData": [],
            "reduce": true,
            "refId": "A",
            "sanitize": false,
            "shapeData": [
              {
                "hidden": false,
                "pattern": "RYAs3_7dVrll5hBIyTEN-2"
              }
            ],
            "shapeProp": "id",
            "stringCritical": "",
            "stringWarning": "",
            "style": "fontColor",
            "textData": [
              {
                "hidden": false,
                "pattern": "RYAs3_7dVrll5hBIyTEN-2"
              }
            ],
            "textOn": "wmd",
            "textPattern": "/VALUE/",
            "textProp": "id",
            "textReplace": "pattern",
            "thresholds": [
              "1",
              "600"
            ],
            "tooltip": false,
            "tooltipColors": false,
            "tooltipLabel": "InboundEmails",
            "tooltipOn": "a",
            "tpDirection": "v",
            "tpGraph": false,
            "tpGraphHigh": null,
            "tpGraphLow": null,
            "tpGraphScale": "linear",
            "tpGraphSize": "100%",
            "tpGraphType": "line",
            "type": "number",
            "unit": "none",
            "valueData": []
          },
          {
            "aggregation": "max",
            "alias": "Before Queue Manager",
            "colorOn": "a",
            "colors": [
              "#73BF69",
              "#FF9830",
              "#F2495C"
            ],
            "column": "Time",
            "dateFormat": "YYYY-MM-DD HH:mm:ss",
            "decimals": 0,
            "hidden": false,
            "invert": true,
            "link": false,
            "linkData": [],
            "linkOn": "a",
            "linkParams": false,
            "linkProp": "id",
            "linkUrl": "",
            "mappingType": 1,
            "metricType": "serie",
            "order": 2,
            "overlayIcon": false,
            "pattern": "before_qmgr",
            "rangeData": [],
            "reduce": true,
            "refId": "A",
            "sanitize": false,
            "shapeData": [
              {
                "hidden": false,
                "pattern": "RYAs3_7dVrll5hBIyTEN-4"
              }
            ],
            "shapeProp": "id",
            "stringCritical": "",
            "stringWarning": "",
            "style": "fillColor",
            "textData": [
              {
                "hidden": false,
                "pattern": "RYAs3_7dVrll5hBIyTEN-4"
              }
            ],
            "textOn": "wmd",
            "textPattern": "/VALUE/",
            "textProp": "id",
            "textReplace": "pattern",
            "thresholds": [
              "380000",
              "600000"
            ],
            "tooltip": false,
            "tooltipColors": false,
            "tooltipLabel": "Before Queue Manager",
            "tooltipOn": "a",
            "tpDirection": "v",
            "tpGraph": false,
            "tpGraphHigh": null,
            "tpGraphLow": null,
            "tpGraphScale": "linear",
            "tpGraphSize": "100%",
            "tpGraphType": "line",
            "type": "number",
            "unit": "ms",
            "valueData": []
          },
          {
            "aggregation": "max",
            "alias": "In Queue Manager",
            "colorOn": "a",
            "colors": [
              "#73BF69",
              "#FF9830",
              "#F2495C"
            ],
            "column": "Time",
            "dateFormat": "YYYY-MM-DD HH:mm:ss",
            "decimals": 0,
            "hidden": false,
            "invert": true,
            "link": false,
            "linkData": [],
            "linkOn": "a",
            "linkParams": false,
            "linkProp": "id",
            "linkUrl": "",
            "mappingType": 1,
            "metricType": "serie",
            "order": 3,
            "overlayIcon": false,
            "pattern": "in_qmgr",
            "rangeData": [],
            "reduce": true,
            "refId": "A",
            "sanitize": false,
            "shapeData": [
              {
                "hidden": false,
                "pattern": "RYAs3_7dVrll5hBIyTEN-5"
              }
            ],
            "shapeProp": "id",
            "stringCritical": "",
            "stringWarning": "",
            "style": "fillColor",
            "textData": [
              {
                "hidden": false,
                "pattern": "RYAs3_7dVrll5hBIyTEN-5"
              }
            ],
            "textOn": "wmd",
            "textPattern": "/VALUE/",
            "textProp": "id",
            "textReplace": "pattern",
            "thresholds": [
              "60000",
              "120000"
            ],
            "tooltip": false,
            "tooltipColors": false,
            "tooltipLabel": "In Queue Manager",
            "tooltipOn": "a",
            "tpDirection": "v",
            "tpGraph": false,
            "tpGraphHigh": null,
            "tpGraphLow": null,
            "tpGraphScale": "linear",
            "tpGraphSize": "100%",
            "tpGraphType": "line",
            "type": "number",
            "unit": "ms",
            "valueData": []
          },
          {
            "aggregation": "total",
            "alias": "DKIM Unsigned",
            "colorOn": "a",
            "colors": [
              "#73BF69",
              "#FF9830",
              "#F2495C"
            ],
            "column": "Time",
            "dateFormat": "YYYY-MM-DD HH:mm:ss",
            "decimals": 0,
            "hidden": false,
            "invert": true,
            "link": false,
            "linkData": [],
            "linkOn": "a",
            "linkParams": false,
            "linkProp": "id",
            "linkUrl": "",
            "mappingType": 1,
            "metricType": "serie",
            "order": 4,
            "overlayIcon": false,
            "pattern": "dkimunsigned",
            "rangeData": [],
            "reduce": true,
            "refId": "A",
            "sanitize": false,
            "shapeData": [
              {
                "hidden": false,
                "pattern": "RYAs3_7dVrll5hBIyTEN-9"
              }
            ],
            "shapeProp": "id",
            "stringCritical": "",
            "stringWarning": "",
            "style": "fillColor",
            "textData": [
              {
                "hidden": false,
                "pattern": "RYAs3_7dVrll5hBIyTEN-9"
              }
            ],
            "textOn": "wmd",
            "textPattern": "/VALUE/",
            "textProp": "id",
            "textReplace": "pattern",
            "thresholds": [
              "10000",
              "100000"
            ],
            "tooltip": false,
            "tooltipColors": false,
            "tooltipLabel": "DKIM Unsigned",
            "tooltipOn": "a",
            "tpDirection": "v",
            "tpGraph": false,
            "tpGraphHigh": null,
            "tpGraphLow": null,
            "tpGraphScale": "linear",
            "tpGraphSize": "100%",
            "tpGraphType": "line",
            "type": "number",
            "unit": "none",
            "valueData": []
          },
          {
            "aggregation": "total",
            "alias": "DKIM Signed",
            "colorOn": "a",
            "colors": [
              "#F2495C",
              "#FF9830",
              "#73BF69"
            ],
            "column": "Time",
            "dateFormat": "YYYY-MM-DD HH:mm:ss",
            "decimals": 0,
            "hidden": false,
            "invert": false,
            "link": true,
            "linkData": [
              {
                "hidden": false,
                "pattern": "RYAs3_7dVrll5hBIyTEN-7"
              }
            ],
            "linkOn": "a",
            "linkParams": false,
            "linkProp": "id",
            "linkUrl": "/grafana/d/SDksirRWz/dmarc-reports?orgId=1",
            "mappingType": 1,
            "metricType": "serie",
            "order": 5,
            "overlayIcon": false,
            "pattern": "dkimsigned",
            "rangeData": [],
            "reduce": true,
            "refId": "A",
            "sanitize": false,
            "shapeData": [
              {
                "hidden": false,
                "pattern": "RYAs3_7dVrll5hBIyTEN-7"
              }
            ],
            "shapeProp": "id",
            "stringCritical": "",
            "stringWarning": "",
            "style": "fillColor",
            "textData": [
              {
                "hidden": false,
                "pattern": "RYAs3_7dVrll5hBIyTEN-7"
              }
            ],
            "textOn": "wmd",
            "textPattern": "/VALUE/",
            "textProp": "id",
            "textReplace": "pattern",
            "thresholds": [
              "1",
              "2"
            ],
            "tooltip": false,
            "tooltipColors": false,
            "tooltipLabel": "DKIM Signed",
            "tooltipOn": "a",
            "tpDirection": "v",
            "tpGraph": false,
            "tpGraphHigh": null,
            "tpGraphLow": null,
            "tpGraphScale": "linear",
            "tpGraphSize": "100%",
            "tpGraphType": "line",
            "type": "number",
            "unit": "none",
            "valueData": []
          },
          {
            "aggregation": "total",
            "alias": "DKIM Error",
            "colorOn": "a",
            "colors": [
              "#73BF69",
              "#FF9830",
              "#F2495C"
            ],
            "column": "Time",
            "dateFormat": "YYYY-MM-DD HH:mm:ss",
            "decimals": 0,
            "hidden": false,
            "invert": true,
            "link": true,
            "linkData": [
              {
                "hidden": false,
                "pattern": "2"
              }
            ],
            "linkOn": "a",
            "linkParams": false,
            "linkProp": "id",
            "linkUrl": "/grafana/d/ixKFaoBik/smtp-email?orgId=1&var-Filters=postfix_dkim_message.keyword%7C%3D~%7Cerror.*&from=$__from&to=$__to",
            "mappingType": 1,
            "metricType": "serie",
            "order": 6,
            "overlayIcon": false,
            "pattern": "dkimerror",
            "rangeData": [],
            "reduce": true,
            "refId": "A",
            "sanitize": false,
            "shapeData": [
              {
                "hidden": false,
                "pattern": "2"
              }
            ],
            "shapeProp": "id",
            "stringCritical": "",
            "stringWarning": "",
            "style": "fillColor",
            "textData": [
              {
                "hidden": false,
                "pattern": "2"
              }
            ],
            "textOn": "wmd",
            "textPattern": "/VALUE/",
            "textProp": "id",
            "textReplace": "pattern",
            "thresholds": [
              "1",
              "2"
            ],
            "tooltip": false,
            "tooltipColors": false,
            "tooltipLabel": "DKIM Error",
            "tooltipOn": "a",
            "tpDirection": "v",
            "tpGraph": false,
            "tpGraphHigh": null,
            "tpGraphLow": null,
            "tpGraphScale": "linear",
            "tpGraphSize": "100%",
            "tpGraphType": "line",
            "type": "number",
            "unit": "none",
            "valueData": []
          },
          {
            "aggregation": "max",
            "alias": "Connection Setup",
            "colorOn": "a",
            "colors": [
              "#73BF69",
              "#FF9830",
              "#F2495C"
            ],
            "column": "Time",
            "dateFormat": "YYYY-MM-DD HH:mm:ss",
            "decimals": 0,
            "hidden": false,
            "invert": true,
            "link": false,
            "linkData": [],
            "linkOn": "a",
            "linkParams": false,
            "linkProp": "id",
            "linkUrl": "",
            "mappingType": 1,
            "metricType": "serie",
            "order": 7,
            "overlayIcon": false,
            "pattern": "conn_setup",
            "rangeData": [],
            "reduce": true,
            "refId": "A",
            "sanitize": false,
            "shapeData": [
              {
                "hidden": false,
                "pattern": "RYAs3_7dVrll5hBIyTEN-13"
              }
            ],
            "shapeProp": "id",
            "stringCritical": "",
            "stringWarning": "",
            "style": "fillColor",
            "textData": [
              {
                "hidden": false,
                "pattern": "RYAs3_7dVrll5hBIyTEN-13"
              }
            ],
            "textOn": "wmd",
            "textPattern": "/VALUE/",
            "textProp": "id",
            "textReplace": "pattern",
            "thresholds": [
              "60000",
              "120000"
            ],
            "tooltip": false,
            "tooltipColors": false,
            "tooltipLabel": "Connection Setup",
            "tooltipOn": "a",
            "tpDirection": "v",
            "tpGraph": false,
            "tpGraphHigh": null,
            "tpGraphLow": null,
            "tpGraphScale": "linear",
            "tpGraphSize": "100%",
            "tpGraphType": "line",
            "type": "number",
            "unit": "ms",
            "valueData": []
          },
          {
            "aggregation": "total",
            "alias": "Transmission",
            "colorOn": "a",
            "colors": [
              "#73BF69",
              "#FF9830",
              "#FF9830"
            ],
            "column": "Time",
            "dateFormat": "YYYY-MM-DD HH:mm:ss",
            "decimals": 0,
            "hidden": false,
            "invert": true,
            "link": false,
            "linkData": [],
            "linkOn": "a",
            "linkParams": false,
            "linkProp": "id",
            "linkUrl": "",
            "mappingType": 1,
            "metricType": "serie",
            "order": 8,
            "overlayIcon": false,
            "pattern": "transmission",
            "rangeData": [],
            "reduce": true,
            "refId": "A",
            "sanitize": false,
            "shapeData": [
              {
                "hidden": false,
                "pattern": "RYAs3_7dVrll5hBIyTEN-16"
              }
            ],
            "shapeProp": "id",
            "stringCritical": "",
            "stringWarning": "",
            "style": "fillColor",
            "textData": [
              {
                "hidden": false,
                "pattern": "RYAs3_7dVrll5hBIyTEN-16"
              }
            ],
            "textOn": "wmd",
            "textPattern": "/VALUE/",
            "textProp": "id",
            "textReplace": "pattern",
            "thresholds": [
              "1200000",
              "240000"
            ],
            "tooltip": false,
            "tooltipColors": false,
            "tooltipLabel": "Transmission",
            "tooltipOn": "a",
            "tpDirection": "v",
            "tpGraph": false,
            "tpGraphHigh": null,
            "tpGraphLow": null,
            "tpGraphScale": "linear",
            "tpGraphSize": "100%",
            "tpGraphType": "line",
            "type": "number",
            "unit": "ms",
            "valueData": []
          },
          {
            "aggregation": "total",
            "alias": "Bounced",
            "colorOn": "a",
            "colors": [
              "#73BF69",
              "#FF9830",
              "#F2495C"
            ],
            "column": "Time",
            "dateFormat": "YYYY-MM-DD HH:mm:ss",
            "decimals": 0,
            "hidden": false,
            "invert": true,
            "link": true,
            "linkData": [
              {
                "hidden": false,
                "pattern": "RYAs3_7dVrll5hBIyTEN-21"
              }
            ],
            "linkOn": "a",
            "linkParams": false,
            "linkProp": "id",
            "linkUrl": "/grafana/d/ixKFaoBik/smtp-email?orgId=1&var-Filters=postfix_status.keyword%7C%3D%7Cbounced&from=$__from&to=$__to",
            "mappingType": 1,
            "metricType": "serie",
            "order": 9,
            "overlayIcon": false,
            "pattern": "bounced",
            "rangeData": [],
            "reduce": true,
            "refId": "A",
            "sanitize": false,
            "shapeData": [
              {
                "hidden": false,
                "pattern": "RYAs3_7dVrll5hBIyTEN-21"
              }
            ],
            "shapeProp": "id",
            "stringCritical": "",
            "stringWarning": "",
            "style": "fillColor",
            "textData": [
              {
                "hidden": false,
                "pattern": "RYAs3_7dVrll5hBIyTEN-21"
              }
            ],
            "textOn": "wmd",
            "textPattern": "/VALUE/",
            "textProp": "id",
            "textReplace": "pattern",
            "thresholds": [
              "1000",
              "5000"
            ],
            "tooltip": false,
            "tooltipColors": false,
            "tooltipLabel": "Bounced",
            "tooltipOn": "a",
            "tpDirection": "v",
            "tpGraph": false,
            "tpGraphHigh": null,
            "tpGraphLow": null,
            "tpGraphScale": "linear",
            "tpGraphSize": "100%",
            "tpGraphType": "line",
            "type": "number",
            "unit": "none",
            "valueData": []
          },
          {
            "aggregation": "total",
            "alias": "Deferred",
            "colorOn": "a",
            "colors": [
              "#73BF69",
              "#FF9830",
              "#F2495C"
            ],
            "column": "Time",
            "dateFormat": "YYYY-MM-DD HH:mm:ss",
            "decimals": 0,
            "hidden": false,
            "invert": true,
            "link": true,
            "linkData": [
              {
                "hidden": false,
                "pattern": "RYAs3_7dVrll5hBIyTEN-17"
              }
            ],
            "linkOn": "a",
            "linkParams": false,
            "linkProp": "id",
            "linkUrl": "/grafana/d/ixKFaoBik/smtp-email?orgId=1&var-Filters=postfix_status.keyword%7C%3D%7Cdeferred&from=$__from&to=$__to",
            "mappingType": 1,
            "metricType": "serie",
            "order": 10,
            "overlayIcon": false,
            "pattern": "deferred",
            "rangeData": [],
            "reduce": true,
            "refId": "A",
            "sanitize": false,
            "shapeData": [
              {
                "hidden": false,
                "pattern": "RYAs3_7dVrll5hBIyTEN-17"
              }
            ],
            "shapeProp": "id",
            "stringCritical": "",
            "stringWarning": "",
            "style": "fillColor",
            "textData": [
              {
                "hidden": false,
                "pattern": "RYAs3_7dVrll5hBIyTEN-17"
              }
            ],
            "textOn": "wmd",
            "textPattern": "/VALUE/",
            "textProp": "id",
            "textReplace": "pattern",
            "thresholds": [
              "1000",
              "5000"
            ],
            "tooltip": false,
            "tooltipColors": false,
            "tooltipLabel": "Deferred",
            "tooltipOn": "a",
            "tpDirection": "v",
            "tpGraph": false,
            "tpGraphHigh": null,
            "tpGraphLow": null,
            "tpGraphScale": "linear",
            "tpGraphSize": "100%",
            "tpGraphType": "line",
            "type": "number",
            "unit": "none",
            "valueData": []
          },
          {
            "aggregation": "total",
            "alias": "Expired",
            "colorOn": "a",
            "colors": [
              "#73BF69",
              "#FF9830",
              "#F2495C"
            ],
            "column": "Time",
            "dateFormat": "YYYY-MM-DD HH:mm:ss",
            "decimals": 0,
            "hidden": false,
            "invert": true,
            "link": true,
            "linkData": [
              {
                "hidden": false,
                "pattern": "RYAs3_7dVrll5hBIyTEN-28"
              }
            ],
            "linkOn": "a",
            "linkParams": false,
            "linkProp": "id",
            "linkUrl": "/grafana/d/ixKFaoBik/smtp-email?orgId=1&var-Filters=postfix_status.keyword%7C%3D%7Cexpired&from=$__from&to=$__to",
            "mappingType": 1,
            "metricType": "serie",
            "order": 11,
            "overlayIcon": false,
            "pattern": "expired",
            "rangeData": [],
            "reduce": true,
            "refId": "A",
            "sanitize": false,
            "shapeData": [
              {
                "hidden": false,
                "pattern": "RYAs3_7dVrll5hBIyTEN-28"
              }
            ],
            "shapeProp": "id",
            "stringCritical": "",
            "stringWarning": "",
            "style": "fillColor",
            "textData": [
              {
                "hidden": false,
                "pattern": "RYAs3_7dVrll5hBIyTEN-28"
              }
            ],
            "textOn": "wmd",
            "textPattern": "/VALUE/",
            "textProp": "id",
            "textReplace": "pattern",
            "thresholds": [
              "1",
              "100"
            ],
            "tooltip": false,
            "tooltipColors": false,
            "tooltipLabel": "Expired",
            "tooltipOn": "a",
            "tpDirection": "v",
            "tpGraph": false,
            "tpGraphHigh": null,
            "tpGraphLow": null,
            "tpGraphScale": "linear",
            "tpGraphSize": "100%",
            "tpGraphType": "line",
            "type": "number",
            "unit": "none",
            "valueData": []
          },
          {
            "aggregation": "total",
            "alias": "Sent",
            "colorOn": "a",
            "colors": [
              "#C4162A",
              "#37872D",
              "#37872D"
            ],
            "column": "Time",
            "dateFormat": "YYYY-MM-DD HH:mm:ss",
            "decimals": 0,
            "hidden": false,
            "invert": true,
            "link": true,
            "linkData": [
              {
                "hidden": false,
                "pattern": "RYAs3_7dVrll5hBIyTEN-33"
              }
            ],
            "linkOn": "a",
            "linkParams": false,
            "linkProp": "id",
            "linkUrl": "/grafana/d/ixKFaoBik/smtp-email?orgId=1&var-Filters=postfix_status.keyword%7C%3D%7Csent&from=$__from&to=$__to",
            "mappingType": 1,
            "metricType": "serie",
            "order": 12,
            "overlayIcon": false,
            "pattern": "sent",
            "rangeData": [],
            "reduce": true,
            "refId": "A",
            "sanitize": false,
            "shapeData": [
              {
                "hidden": false,
                "pattern": "RYAs3_7dVrll5hBIyTEN-33"
              }
            ],
            "shapeProp": "id",
            "stringCritical": "",
            "stringWarning": "",
            "style": "fontColor",
            "textData": [
              {
                "hidden": false,
                "pattern": "RYAs3_7dVrll5hBIyTEN-33"
              }
            ],
            "textOn": "wmd",
            "textPattern": "/VALUE/",
            "textProp": "id",
            "textReplace": "pattern",
            "thresholds": [
              "1",
              "600"
            ],
            "tooltip": false,
            "tooltipColors": false,
            "tooltipLabel": "Sent",
            "tooltipOn": "a",
            "tpDirection": "v",
            "tpGraph": false,
            "tpGraphHigh": null,
            "tpGraphLow": null,
            "tpGraphScale": "linear",
            "tpGraphSize": "100%",
            "tpGraphType": "line",
            "type": "number",
            "unit": "none",
            "valueData": []
          }
        ]
      },
      "strokeWidth": 1,
      "styleSeq": 16,
      "targets": [
        {
          "alias": "emails",
          "bucketAggs": [
            {
              "field": "@timestamp",
              "id": "2",
              "settings": {
                "interval": "auto",
                "min_doc_count": 1,
                "trimEdges": 0
              },
              "type": "date_histogram"
            }
          ],
          "metrics": [
            {
              "field": "postfix_queueid.keyword",
              "id": "1",
              "meta": {},
              "settings": {},
              "type": "cardinality"
            }
          ],
          "query": "_exists_:postfix_status.keyword AND host.name.keyword:$host",
          "refId": "K",
          "timeField": "@timestamp"
        },
        {
          "alias": "before_qmgr",
          "bucketAggs": [
            {
              "field": "@timestamp",
              "id": "2",
              "settings": {
                "interval": "auto",
                "min_doc_count": 1,
                "trimEdges": 0
              },
              "type": "date_histogram"
            }
          ],
          "dsType": "elasticsearch",
          "metrics": [
            {
              "field": "postfix_delay_before_qmgr",
              "id": "3",
              "meta": {},
              "settings": {},
              "type": "avg"
            }
          ],
          "query": "host.name.keyword:$host",
          "refId": "A",
          "timeField": "@timestamp"
        },
        {
          "alias": "in_qmgr",
          "bucketAggs": [
            {
              "field": "@timestamp",
              "id": "2",
              "settings": {
                "interval": "auto",
                "min_doc_count": 1,
                "trimEdges": 0
              },
              "type": "date_histogram"
            }
          ],
          "dsType": "elasticsearch",
          "metrics": [
            {
              "field": "postfix_delay_in_qmgr",
              "id": "3",
              "meta": {},
              "settings": {},
              "type": "sum"
            }
          ],
          "query": "host.name.keyword:$host",
          "refId": "B",
          "timeField": "@timestamp"
        },
        {
          "alias": "dkimsigned",
          "bucketAggs": [
            {
              "field": "@timestamp",
              "id": "2",
              "settings": {
                "interval": "auto",
                "min_doc_count": 1,
                "trimEdges": 0
              },
              "type": "date_histogram"
            }
          ],
          "metrics": [
            {
              "field": "postfix_queueid.keyword",
              "id": "1",
              "meta": {},
              "settings": {},
              "type": "cardinality"
            }
          ],
          "query": "postfix_dkim_message.keyword:\"DKIM-Signature field added\" AND host.name.keyword:$host",
          "refId": "I",
          "timeField": "@timestamp"
        },
        {
          "alias": "dkimunsigned",
          "bucketAggs": [
            {
              "field": "@timestamp",
              "id": "2",
              "settings": {
                "interval": "auto",
                "min_doc_count": 1,
                "trimEdges": 0
              },
              "type": "date_histogram"
            }
          ],
          "metrics": [
            {
              "field": "postfix_queueid.keyword",
              "id": "1",
              "meta": {},
              "settings": {},
              "type": "cardinality"
            }
          ],
          "query": "postfix_dkim_message.keyword:\"no signature data\" AND host.name.keyword:$host",
          "refId": "J",
          "timeField": "@timestamp"
        },
        {
          "alias": "dkimerror",
          "bucketAggs": [
            {
              "field": "@timestamp",
              "id": "2",
              "settings": {
                "interval": "auto",
                "min_doc_count": 1,
                "trimEdges": 0
              },
              "type": "date_histogram"
            }
          ],
          "metrics": [
            {
              "field": "postfix_queueid.keyword",
              "id": "1",
              "meta": {},
              "settings": {},
              "type": "cardinality"
            }
          ],
          "query": "postfix_dkim_message.keyword:error* AND host.name.keyword:$host",
          "refId": "L",
          "timeField": "@timestamp"
        },
        {
          "alias": "conn_setup",
          "bucketAggs": [
            {
              "field": "@timestamp",
              "id": "2",
              "settings": {
                "interval": "auto",
                "min_doc_count": 1,
                "trimEdges": 0
              },
              "type": "date_histogram"
            }
          ],
          "dsType": "elasticsearch",
          "metrics": [
            {
              "field": "postfix_delay_conn_setup",
              "id": "3",
              "meta": {},
              "settings": {},
              "type": "sum"
            }
          ],
          "query": "host.name.keyword:$host",
          "refId": "C",
          "timeField": "@timestamp"
        },
        {
          "alias": "transmission",
          "bucketAggs": [
            {
              "field": "@timestamp",
              "id": "2",
              "settings": {
                "interval": "auto",
                "min_doc_count": 1,
                "trimEdges": 0
              },
              "type": "date_histogram"
            }
          ],
          "dsType": "elasticsearch",
          "metrics": [
            {
              "field": "postfix_delay_transmission",
              "id": "3",
              "meta": {},
              "settings": {},
              "type": "sum"
            }
          ],
          "query": "host.name.keyword:$host",
          "refId": "D",
          "timeField": "@timestamp"
        },
        {
          "alias": "bounced",
          "bucketAggs": [
            {
              "field": "@timestamp",
              "id": "2",
              "settings": {
                "interval": "auto",
                "min_doc_count": 1,
                "trimEdges": 0
              },
              "type": "date_histogram"
            }
          ],
          "metrics": [
            {
              "field": "postfix_queueid.keyword",
              "id": "1",
              "meta": {},
              "settings": {},
              "type": "cardinality"
            }
          ],
          "query": "postfix_status.keyword:bounced AND host.name.keyword:$host",
          "refId": "G",
          "timeField": "@timestamp"
        },
        {
          "alias": "deferred",
          "bucketAggs": [
            {
              "field": "@timestamp",
              "id": "2",
              "settings": {
                "interval": "auto",
                "min_doc_count": 1,
                "trimEdges": 0
              },
              "type": "date_histogram"
            }
          ],
          "metrics": [
            {
              "field": "postfix_queueid.keyword",
              "id": "1",
              "meta": {},
              "settings": {},
              "type": "cardinality"
            }
          ],
          "query": "postfix_status.keyword:deferred AND host.name.keyword:$host",
          "refId": "F",
          "timeField": "@timestamp"
        },
        {
          "alias": "expired",
          "bucketAggs": [
            {
              "field": "@timestamp",
              "id": "2",
              "settings": {
                "interval": "auto",
                "min_doc_count": 1,
                "trimEdges": 0
              },
              "type": "date_histogram"
            }
          ],
          "metrics": [
            {
              "field": "postfix_queueid.keyword",
              "id": "1",
              "meta": {},
              "settings": {},
              "type": "cardinality"
            }
          ],
          "query": "postfix_status.keyword:expired AND host.name.keyword:$host",
          "refId": "H",
          "timeField": "@timestamp"
        },
        {
          "alias": "sent",
          "bucketAggs": [
            {
              "field": "@timestamp",
              "id": "2",
              "settings": {
                "interval": "auto",
                "min_doc_count": 1,
                "trimEdges": 0
              },
              "type": "date_histogram"
            }
          ],
          "metrics": [
            {
              "field": "postfix_queueid.keyword",
              "id": "1",
              "meta": {},
              "settings": {},
              "type": "cardinality"
            }
          ],
          "query": "postfix_status.keyword:sent AND host.name.keyword:$host",
          "refId": "E",
          "timeField": "@timestamp"
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "",
      "transparent": true,
      "type": "agenty-flowcharting-panel",
      "valueName": "current",
      "version": "0.6.1"
    },
    {
      "cacheTimeout": null,
      "datasource": "${DS_ELASTICSEARCH-POSTFIX}",
      "description": "Total unique email recipients.",
      "gridPos": {
        "h": 3,
        "w": 4,
        "x": 0,
        "y": 5
      },
      "id": 83,
      "links": [],
      "options": {
        "colorMode": "background",
        "fieldOptions": {
          "calcs": [
            "sum"
          ],
          "defaults": {
            "mappings": [
              {
                "id": 0,
                "op": "=",
                "text": "N/A",
                "type": 1,
                "value": "null"
              }
            ],
            "nullValueMode": "connected",
            "thresholds": {
              "mode": "absolute",
              "steps": [
                {
                  "color": "#299c46",
                  "value": null
                },
                {
                  "color": "rgba(237, 129, 40, 0.89)",
                  "value": 0
                },
                {
                  "color": "rgb(99, 82, 204)",
                  "value": 1
                }
              ]
            },
            "title": "Recipients",
            "unit": "none"
          },
          "overrides": [],
          "values": false
        },
        "graphMode": "area",
        "justifyMode": "auto",
        "orientation": "horizontal"
      },
      "pluginVersion": "6.6.1",
      "targets": [
        {
          "bucketAggs": [
            {
              "field": "@timestamp",
              "id": "2",
              "settings": {
                "interval": "$inter",
                "min_doc_count": 1,
                "trimEdges": 0
              },
              "type": "date_histogram"
            }
          ],
          "dsType": "elasticsearch",
          "metrics": [
            {
              "field": "postfix_to.keyword",
              "id": "1",
              "meta": {},
              "settings": {},
              "type": "cardinality"
            }
          ],
          "query": "host.name.keyword:$host AND host.name.keyword:$host",
          "refId": "A",
          "timeField": "@timestamp"
        }
      ],
      "title": "",
      "transparent": true,
      "type": "stat"
    },
    {
      "cacheTimeout": null,
      "datasource": "${DS_ELASTICSEARCH-POSTFIX}",
      "description": "Messages accepted by the SMTP server for destruction. Stats can come from the Blackhole SMTP service, and in same cases, the mail relay service if certain rules are matched.",
      "gridPos": {
        "h": 3,
        "w": 4,
        "x": 0,
        "y": 8
      },
      "id": 155,
      "links": [],
      "options": {
        "colorMode": "background",
        "fieldOptions": {
          "calcs": [
            "sum"
          ],
          "defaults": {
            "mappings": [
              {
                "id": 0,
                "op": "=",
                "text": "N/A",
                "type": 1,
                "value": "null"
              }
            ],
            "nullValueMode": "connected",
            "thresholds": {
              "mode": "absolute",
              "steps": [
                {
                  "color": "#299c46",
                  "value": null
                },
                {
                  "color": "rgba(237, 129, 40, 0.89)",
                  "value": 0
                },
                {
                  "color": "#8F3BB8",
                  "value": 1
                }
              ]
            },
            "title": "Discarded Messages",
            "unit": "none"
          },
          "overrides": [],
          "values": false
        },
        "graphMode": "area",
        "justifyMode": "auto",
        "orientation": "horizontal"
      },
      "pluginVersion": "6.6.1",
      "targets": [
        {
          "bucketAggs": [
            {
              "field": "@timestamp",
              "id": "2",
              "settings": {
                "interval": "$inter",
                "min_doc_count": 1,
                "trimEdges": 0
              },
              "type": "date_histogram"
            }
          ],
          "dsType": "elasticsearch",
          "metrics": [
            {
              "field": "program.keyword",
              "id": "1",
              "meta": {},
              "settings": {},
              "type": "cardinality"
            }
          ],
          "query": "_exists_:postfix_status.keyword AND host.name.keyword:$host",
          "refId": "A",
          "timeField": "@timestamp"
        }
      ],
      "title": "",
      "transparent": true,
      "type": "stat"
    },
    {
      "cacheTimeout": null,
      "datasource": "${DS_ELASTICSEARCH-POSTFIX}",
      "description": "Messages accepted by the SMTP server for delivery.",
      "gridPos": {
        "h": 3,
        "w": 4,
        "x": 0,
        "y": 11
      },
      "id": 74,
      "links": [],
      "options": {
        "colorMode": "background",
        "fieldOptions": {
          "calcs": [
            "sum"
          ],
          "defaults": {
            "mappings": [
              {
                "id": 0,
                "op": "=",
                "text": "N/A",
                "type": 1,
                "value": "null"
              }
            ],
            "nullValueMode": "connected",
            "thresholds": {
              "mode": "absolute",
              "steps": [
                {
                  "color": "#299c46",
                  "value": null
                },
                {
                  "color": "rgba(237, 129, 40, 0.89)",
                  "value": 0
                },
                {
                  "color": "rgb(20, 58, 117)",
                  "value": 1
                }
              ]
            },
            "title": "Total Messages",
            "unit": "none"
          },
          "overrides": [],
          "values": false
        },
        "graphMode": "area",
        "justifyMode": "auto",
        "orientation": "horizontal"
      },
      "pluginVersion": "6.6.1",
      "targets": [
        {
          "bucketAggs": [
            {
              "field": "@timestamp",
              "id": "2",
              "settings": {
                "interval": "$inter",
                "min_doc_count": 1,
                "trimEdges": 0
              },
              "type": "date_histogram"
            }
          ],
          "dsType": "elasticsearch",
          "metrics": [
            {
              "field": "postfix_queueid.keyword",
              "id": "1",
              "meta": {},
              "settings": {},
              "type": "cardinality"
            }
          ],
          "query": "_exists_:postfix_status.keyword AND host.name.keyword:$host",
          "refId": "A",
          "timeField": "@timestamp"
        }
      ],
      "title": "",
      "transparent": true,
      "type": "stat"
    },
    {
      "collapsed": true,
      "datasource": null,
      "gridPos": {
        "h": 1,
        "w": 24,
        "x": 0,
        "y": 15
      },
      "id": 170,
      "panels": [
        {
          "content": "\n# Mail Process Flow\nYou are able to click on any of the boxes which have counts in to reload the page focusing on only those stats. e.g. DKIM Errors, Expired etc. \n\n1. **Total Emails:** Number of emails inbound fromselected host systems.\n2. **Before Queue Manager:** time before queue manager, including message transmission.\n3. **In Queue Manager:** time in queue manager.\n4. **DKIM Signed:** Messages which have been successfully DKIM signed.\n5. **DKIM Unsigned:** Messages which have not been DKIM signed. As DKIM is optional, not all messages are signed. Customers can request DKIM setup on their domain though support.\n6. **DKIM Error:** Messages which attempted to be DKIM signed but failed. Should be investigated as should be 0.\n7. **Connection Setup:** connection setup time including DNS, HELO and TLS.\n8. **Transmission:** message transmission time.\n9. **Deferred:** A deferred email is simply an event the server has received back from the receiving server that tells us that the receiving server has temporarily limited access to their system. It does not mean that your message will not be delivered. Rather, it is a signal that your message will not be delivered immediately. This can happen for a variety of reasons. Some of the most common reasons a message might be deferred at an inbox provider are that the inbox provider is seeing too many spam complaints for your email that has already been delivered or that the receiving server is having technical issues at that time. We will continue to try to deliver that message for you for up to 5 days. If a message to a recipient is deferred for more than the maximum period, that deferral will turn into a bounce. Otherwise, it will result in a delivery event once the the message has been accepted by the receiving server.\n10. **Expired:** Emails which have been deferred and reached the maximum period of retires.\n11. **Bounced:** Bounces occur when the receiving server returns to us a code that indicates that the reason for the refusal is a permanent issue with that server or recipient address.",
          "datasource": null,
          "gridPos": {
            "h": 11,
            "w": 24,
            "x": 0,
            "y": 16
          },
          "id": 154,
          "links": [],
          "mode": "markdown",
          "options": {},
          "timeFrom": null,
          "timeShift": null,
          "title": "",
          "transparent": true,
          "type": "text"
        }
      ],
      "title": "Mail Process Flow Guide",
      "type": "row"
    },
    {
      "collapsed": false,
      "datasource": null,
      "gridPos": {
        "h": 1,
        "w": 24,
        "x": 0,
        "y": 16
      },
      "id": 157,
      "panels": [],
      "title": "Server Status",
      "type": "row"
    },
    {
      "alert": {
        "alertRuleTags": {},
        "conditions": [
          {
            "evaluator": {
              "params": [
                1
              ],
              "type": "lt"
            },
            "operator": {
              "type": "and"
            },
            "query": {
              "params": [
                "A",
                "1m",
                "now"
              ]
            },
            "reducer": {
              "params": [],
              "type": "avg"
            },
            "type": "query"
          },
          {
            "evaluator": {
              "params": [
                1
              ],
              "type": "lt"
            },
            "operator": {
              "type": "or"
            },
            "query": {
              "params": [
                "A",
                "1m",
                "now"
              ]
            },
            "reducer": {
              "params": [],
              "type": "avg"
            },
            "type": "query"
          }
        ],
        "executionErrorState": "alerting",
        "for": "5m",
        "frequency": "1m",
        "handler": 1,
        "name": "SMTP Server Status alert",
        "noDataState": "no_data",
        "notifications": [
          {
            "uid": "aFdm_XbWz"
          }
        ]
      },
      "aliasColors": {},
      "bars": true,
      "dashLength": 10,
      "dashes": false,
      "datasource": "${DS_PROMETHEUS}",
      "fill": 1,
      "fillGradient": 0,
      "gridPos": {
        "h": 4,
        "w": 24,
        "x": 0,
        "y": 17
      },
      "hiddenSeries": false,
      "id": 159,
      "legend": {
        "avg": false,
        "current": false,
        "max": false,
        "min": false,
        "show": true,
        "total": false,
        "values": false
      },
      "lines": false,
      "linewidth": 1,
      "links": [],
      "nullPointMode": "null",
      "options": {
        "dataLinks": []
      },
      "percentage": false,
      "pointradius": 2,
      "points": false,
      "renderer": "flot",
      "seriesOverrides": [],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "aggregation": "Last",
          "decimals": 2,
          "displayAliasType": "Warning / Critical",
          "displayType": "Regular",
          "displayValueWithAlias": "Never",
          "expr": "probe_success{job=\"smtp_status\", instance=~\".*:25\"} ",
          "format": "time_series",
          "intervalFactor": 1,
          "legendFormat": "{{instance}}",
          "refId": "A",
          "units": "none",
          "valueHandler": "Number Threshold"
        },
        {
          "expr": "probe_success{job=\"smtp_status_tls\", instance=~\".*:587\"}",
          "hide": true,
          "legendFormat": "{{instance}}",
          "refId": "B"
        }
      ],
      "thresholds": [
        {
          "colorMode": "critical",
          "fill": true,
          "line": true,
          "op": "lt",
          "value": 1
        }
      ],
      "timeFrom": null,
      "timeRegions": [],
      "timeShift": null,
      "title": "SMTP Server Status",
      "tooltip": {
        "shared": true,
        "sort": 0,
        "value_type": "individual"
      },
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "decimals": 0,
          "format": "short",
          "label": "Probe Success",
          "logBase": 1,
          "max": "1",
          "min": "0",
          "show": true
        },
        {
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": false
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    },
    {
      "collapsed": false,
      "datasource": null,
      "gridPos": {
        "h": 1,
        "w": 24,
        "x": 0,
        "y": 21
      },
      "id": 53,
      "panels": [],
      "title": "Platform Summary",
      "type": "row"
    },
    {
      "aliasColors": {},
      "bars": true,
      "cacheTimeout": null,
      "dashLength": 10,
      "dashes": false,
      "datasource": "${DS_ELASTICSEARCH-POSTFIX}",
      "fill": 1,
      "fillGradient": 0,
      "gridPos": {
        "h": 12,
        "w": 7,
        "x": 0,
        "y": 22
      },
      "hiddenSeries": false,
      "id": 61,
      "legend": {
        "avg": false,
        "current": false,
        "max": false,
        "min": false,
        "show": false,
        "total": false,
        "values": false
      },
      "lines": false,
      "linewidth": 1,
      "links": [],
      "nullPointMode": "null",
      "options": {
        "dataLinks": []
      },
      "paceLength": 10,
      "percentage": false,
      "pointradius": 2,
      "points": false,
      "renderer": "flot",
      "seriesOverrides": [
        {
          "alias": "/.*sent.*/",
          "color": "#56A64B"
        },
        {
          "alias": "/.*deferred.*/",
          "color": "#F2CC0C"
        },
        {
          "alias": "/.*bounced.*/",
          "color": "#E02F44"
        },
        {
          "alias": "/.*expired.*/",
          "color": "#FF780A"
        }
      ],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "bucketAggs": [
            {
              "fake": true,
              "field": "postfix_status.keyword",
              "id": "3",
              "settings": {
                "min_doc_count": 1,
                "order": "desc",
                "orderBy": "_count",
                "size": "0"
              },
              "type": "terms"
            },
            {
              "field": "@timestamp",
              "id": "2",
              "settings": {
                "interval": "auto",
                "min_doc_count": 1,
                "trimEdges": 0
              },
              "type": "date_histogram"
            }
          ],
          "dsType": "elasticsearch",
          "metrics": [
            {
              "field": "postfix_queueid.keyword",
              "id": "1",
              "meta": {},
              "settings": {},
              "type": "cardinality"
            }
          ],
          "query": "host.name.keyword:$host",
          "refId": "A",
          "timeField": "@timestamp"
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeRegions": [],
      "timeShift": null,
      "title": "Delivery Status",
      "tooltip": {
        "shared": false,
        "sort": 0,
        "value_type": "individual"
      },
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "series",
        "name": null,
        "show": true,
        "values": [
          "total"
        ]
      },
      "yaxes": [
        {
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        },
        {
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    },
    {
      "aliasColors": {
        "410": "#511749",
        "bounced": "semi-dark-red",
        "deferred": "semi-dark-yellow",
        "expired": "semi-dark-orange",
        "sent": "semi-dark-green"
      },
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": "${DS_ELASTICSEARCH-POSTFIX}",
      "decimals": null,
      "editable": true,
      "error": false,
      "fill": 0,
      "fillGradient": 0,
      "grid": {},
      "gridPos": {
        "h": 4,
        "w": 9,
        "x": 7,
        "y": 22
      },
      "hiddenSeries": false,
      "id": 67,
      "interval": "",
      "isNew": true,
      "legend": {
        "alignAsTable": true,
        "avg": false,
        "current": false,
        "max": true,
        "min": false,
        "rightSide": true,
        "show": true,
        "total": true,
        "values": true
      },
      "lines": true,
      "linewidth": 1,
      "links": [],
      "nullPointMode": "connected",
      "options": {
        "dataLinks": []
      },
      "paceLength": 10,
      "percentage": false,
      "pointradius": 5,
      "points": false,
      "renderer": "flot",
      "seriesOverrides": [],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "bucketAggs": [
            {
              "fake": true,
              "field": "postfix_status.keyword",
              "id": "3",
              "settings": {
                "min_doc_count": 1,
                "order": "desc",
                "orderBy": "_count",
                "size": "10"
              },
              "type": "terms"
            },
            {
              "field": "@timestamp",
              "id": "2",
              "settings": {
                "interval": "auto",
                "min_doc_count": 1,
                "trimEdges": 0
              },
              "type": "date_histogram"
            }
          ],
          "dsType": "elasticsearch",
          "groupBy": [
            {
              "params": [
                "$interval"
              ],
              "type": "time"
            },
            {
              "params": [
                "null"
              ],
              "type": "fill"
            }
          ],
          "metrics": [
            {
              "field": "postfix_queueid.keyword",
              "id": "4",
              "meta": {},
              "settings": {
                "precision_threshold": null
              },
              "type": "cardinality"
            }
          ],
          "policy": "default",
          "query": "host.name.keyword:$host",
          "refId": "A",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "value"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "mean"
              }
            ]
          ],
          "tags": [],
          "timeField": "@timestamp"
        }
      ],
      "thresholds": [],
      "timeFrom": "30d",
      "timeRegions": [],
      "timeShift": null,
      "title": "Delivery Status Over Time",
      "tooltip": {
        "msResolution": true,
        "ordering": "alphabetical",
        "shared": true,
        "sort": 2,
        "value_type": "cumulative"
      },
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "decimals": null,
          "format": "none",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        },
        {
          "format": "none",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    },
    {
      "columns": [],
      "datasource": "${DS_ELASTICSEARCH-POSTFIX}",
      "description": "See ESMTP codes",
      "fontSize": "100%",
      "gridPos": {
        "h": 12,
        "w": 8,
        "x": 16,
        "y": 22
      },
      "height": "500",
      "id": 102,
      "interval": "",
      "links": [],
      "options": {},
      "pageSize": 20,
      "scroll": true,
      "showHeader": true,
      "sort": {
        "col": 2,
        "desc": true
      },
      "styles": [
        {
          "alias": "Total",
          "align": "auto",
          "colorMode": null,
          "colors": [
            "rgba(245, 54, 54, 0.9)",
            "rgba(237, 129, 40, 0.89)",
            "rgba(50, 172, 45, 0.97)"
          ],
          "dateFormat": "YYYY-MM-DD HH:mm:ss",
          "decimals": null,
          "mappingType": 1,
          "pattern": "Count",
          "thresholds": [],
          "type": "number",
          "unit": "none"
        },
        {
          "alias": "DSN",
          "align": "auto",
          "colorMode": "cell",
          "colors": [
            "rgba(50, 172, 45, 0.97)",
            "rgba(237, 129, 40, 0.89)",
            "rgba(245, 54, 54, 0.9)"
          ],
          "dateFormat": "YYYY-MM-DD HH:mm:ss",
          "decimals": null,
          "link": false,
          "mappingType": 1,
          "pattern": "postfix_dsn.keyword",
          "thresholds": [
            "4",
            "5"
          ],
          "type": "number",
          "unit": "none",
          "valueMaps": []
        },
        {
          "alias": "SMTP Status",
          "align": "auto",
          "colorMode": "row",
          "colors": [
            "rgba(245, 54, 54, 0.9)",
            "rgba(237, 129, 40, 0.89)",
            "rgba(50, 172, 45, 0.97)"
          ],
          "dateFormat": "YYYY-MM-DD HH:mm:ss",
          "decimals": 2,
          "mappingType": 2,
          "pattern": "postfix_status.keyword",
          "preserveFormat": false,
          "rangeMaps": [],
          "sanitize": false,
          "thresholds": [
            ""
          ],
          "type": "string",
          "unit": "short"
        },
        {
          "alias": "",
          "align": "auto",
          "colorMode": null,
          "colors": [
            "rgba(245, 54, 54, 0.9)",
            "rgba(237, 129, 40, 0.89)",
            "rgba(50, 172, 45, 0.97)"
          ],
          "decimals": 2,
          "pattern": "/.*/",
          "thresholds": [],
          "type": "number",
          "unit": "short"
        }
      ],
      "targets": [
        {
          "bucketAggs": [
            {
              "fake": true,
              "field": "postfix_dsn.keyword",
              "id": "6",
              "settings": {
                "min_doc_count": 1,
                "order": "desc",
                "orderBy": "_count",
                "size": "0"
              },
              "type": "terms"
            },
            {
              "fake": true,
              "field": "postfix_status.keyword",
              "id": "7",
              "settings": {
                "min_doc_count": 1,
                "order": "desc",
                "orderBy": "_term",
                "size": "20"
              },
              "type": "terms"
            }
          ],
          "dsType": "elasticsearch",
          "hide": false,
          "metrics": [
            {
              "field": "postfix_queueid.keyword",
              "id": "5",
              "meta": {},
              "settings": {},
              "type": "count"
            }
          ],
          "query": "host.name.keyword:$host",
          "refId": "A",
          "timeField": "@timestamp"
        }
      ],
      "title": "Delivery Status Notification(DSN) Codes",
      "transform": "table",
      "type": "table"
    },
    {
      "aliasColors": {
        "410": "#511749",
        "bounced": "semi-dark-red",
        "deferred": "semi-dark-yellow",
        "expired": "semi-dark-orange",
        "sent": "semi-dark-green"
      },
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": "${DS_ELASTICSEARCH-POSTFIX}",
      "decimals": null,
      "editable": true,
      "error": false,
      "fill": 0,
      "fillGradient": 0,
      "grid": {},
      "gridPos": {
        "h": 4,
        "w": 9,
        "x": 7,
        "y": 26
      },
      "hiddenSeries": false,
      "id": 160,
      "interval": "",
      "isNew": true,
      "legend": {
        "alignAsTable": true,
        "avg": false,
        "current": false,
        "max": true,
        "min": false,
        "rightSide": true,
        "show": true,
        "total": true,
        "values": true
      },
      "lines": true,
      "linewidth": 1,
      "links": [],
      "nullPointMode": "connected",
      "options": {
        "dataLinks": []
      },
      "paceLength": 10,
      "percentage": false,
      "pointradius": 5,
      "points": false,
      "renderer": "flot",
      "seriesOverrides": [],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "bucketAggs": [
            {
              "fake": true,
              "field": "postfix_status.keyword",
              "id": "3",
              "settings": {
                "min_doc_count": 1,
                "order": "desc",
                "orderBy": "_count",
                "size": "0"
              },
              "type": "terms"
            },
            {
              "field": "@timestamp",
              "id": "2",
              "settings": {
                "interval": "auto",
                "min_doc_count": 1,
                "trimEdges": 0
              },
              "type": "date_histogram"
            }
          ],
          "dsType": "elasticsearch",
          "groupBy": [
            {
              "params": [
                "$interval"
              ],
              "type": "time"
            },
            {
              "params": [
                "null"
              ],
              "type": "fill"
            }
          ],
          "metrics": [
            {
              "field": "postfix_queueid.keyword",
              "id": "4",
              "meta": {},
              "settings": {
                "precision_threshold": null
              },
              "type": "cardinality"
            }
          ],
          "policy": "default",
          "query": "host.name.keyword:$host",
          "refId": "A",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "value"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "mean"
              }
            ]
          ],
          "tags": [],
          "timeField": "@timestamp"
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeRegions": [],
      "timeShift": null,
      "title": "Delivery Status Over Time",
      "tooltip": {
        "msResolution": true,
        "ordering": "alphabetical",
        "shared": true,
        "sort": 2,
        "value_type": "cumulative"
      },
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "decimals": null,
          "format": "none",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        },
        {
          "format": "none",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    },
    {
      "aliasColors": {
        "410": "#511749",
        "Mail Tx Size": "light-blue"
      },
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": "${DS_ELASTICSEARCH-POSTFIX}",
      "editable": true,
      "error": false,
      "fill": 0,
      "fillGradient": 0,
      "grid": {},
      "gridPos": {
        "h": 4,
        "w": 9,
        "x": 7,
        "y": 30
      },
      "hiddenSeries": false,
      "id": 120,
      "isNew": true,
      "legend": {
        "alignAsTable": true,
        "avg": false,
        "current": false,
        "max": true,
        "min": false,
        "rightSide": true,
        "show": true,
        "total": true,
        "values": true
      },
      "lines": true,
      "linewidth": 1,
      "links": [],
      "nullPointMode": "connected",
      "options": {
        "dataLinks": []
      },
      "paceLength": 10,
      "percentage": false,
      "pointradius": 5,
      "points": false,
      "renderer": "flot",
      "seriesOverrides": [],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "alias": "Mail Tx Size",
          "bucketAggs": [
            {
              "field": "@timestamp",
              "id": "2",
              "settings": {
                "interval": "auto",
                "min_doc_count": 1,
                "trimEdges": 0
              },
              "type": "date_histogram"
            }
          ],
          "dsType": "elasticsearch",
          "groupBy": [
            {
              "params": [
                "$interval"
              ],
              "type": "time"
            },
            {
              "params": [
                "null"
              ],
              "type": "fill"
            }
          ],
          "metrics": [
            {
              "field": "postfix_size",
              "id": "5",
              "meta": {},
              "settings": {},
              "type": "sum"
            }
          ],
          "policy": "default",
          "query": "host.name.keyword:$host",
          "refId": "A",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "value"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "mean"
              }
            ]
          ],
          "tags": [],
          "timeField": "@timestamp"
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeRegions": [],
      "timeShift": null,
      "title": "Mail Delivery Size",
      "tooltip": {
        "msResolution": true,
        "ordering": "alphabetical",
        "shared": true,
        "sort": 0,
        "value_type": "cumulative"
      },
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "format": "decbytes",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        },
        {
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    },
    {
      "aliasColors": {
        "410": "#511749"
      },
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": "${DS_ELASTICSEARCH-POSTFIX}",
      "editable": true,
      "error": false,
      "fill": 0,
      "fillGradient": 0,
      "grid": {},
      "gridPos": {
        "h": 5,
        "w": 12,
        "x": 0,
        "y": 34
      },
      "hiddenSeries": false,
      "id": 72,
      "interval": "",
      "isNew": true,
      "legend": {
        "alignAsTable": true,
        "avg": false,
        "current": true,
        "max": false,
        "min": false,
        "rightSide": true,
        "show": true,
        "total": true,
        "values": true
      },
      "lines": true,
      "linewidth": 1,
      "links": [],
      "nullPointMode": "connected",
      "options": {
        "dataLinks": []
      },
      "paceLength": 10,
      "percentage": false,
      "pointradius": 5,
      "points": false,
      "renderer": "flot",
      "seriesOverrides": [],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "bucketAggs": [
            {
              "field": "@timestamp",
              "id": "2",
              "settings": {
                "interval": "auto",
                "min_doc_count": 1,
                "trimEdges": 0
              },
              "type": "date_histogram"
            }
          ],
          "dsType": "elasticsearch",
          "groupBy": [
            {
              "params": [
                "$interval"
              ],
              "type": "time"
            },
            {
              "params": [
                "null"
              ],
              "type": "fill"
            }
          ],
          "metrics": [
            {
              "field": "count",
              "id": "4",
              "meta": {},
              "settings": {},
              "type": "count"
            }
          ],
          "policy": "default",
          "query": "program.keyword:opendkim AND postfix_dkim_message.keyword:\"DKIM-Signature field added\" AND host.name.keyword:$host",
          "refId": "A",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "value"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "mean"
              }
            ]
          ],
          "tags": [],
          "timeField": "@timestamp"
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeRegions": [],
      "timeShift": null,
      "title": "DKIM Signed Emails",
      "tooltip": {
        "msResolution": true,
        "ordering": "alphabetical",
        "shared": true,
        "sort": 0,
        "value_type": "cumulative"
      },
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        },
        {
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    },
    {
      "aliasColors": {},
      "breakPoint": "50%",
      "cacheTimeout": null,
      "combine": {
        "label": "Others",
        "threshold": 0
      },
      "datasource": "${DS_ELASTICSEARCH-POSTFIX}",
      "editable": true,
      "error": false,
      "fontSize": "80%",
      "format": "short",
      "gridPos": {
        "h": 5,
        "w": 12,
        "x": 12,
        "y": 34
      },
      "id": 81,
      "interval": null,
      "isNew": true,
      "legend": {
        "percentage": true,
        "show": true,
        "sort": "total",
        "sortDesc": true,
        "values": true
      },
      "legendType": "Right side",
      "links": [],
      "maxDataPoints": 3,
      "nullPointMode": "connected",
      "options": {},
      "pieType": "donut",
      "strokeWidth": 1,
      "targets": [
        {
          "bucketAggs": [
            {
              "fake": true,
              "field": "postfix_dkim_domain.keyword",
              "id": "3",
              "settings": {
                "min_doc_count": 1,
                "order": "desc",
                "orderBy": "_count",
                "size": "10"
              },
              "type": "terms"
            },
            {
              "field": "@timestamp",
              "id": "2",
              "settings": {
                "interval": "auto",
                "min_doc_count": 1,
                "trimEdges": 0
              },
              "type": "date_histogram"
            }
          ],
          "dsType": "elasticsearch",
          "groupBy": [
            {
              "params": [
                "$interval"
              ],
              "type": "time"
            },
            {
              "params": [
                "null"
              ],
              "type": "fill"
            }
          ],
          "metrics": [
            {
              "field": "postfix_queueid.keyword",
              "id": "1",
              "meta": {},
              "settings": {},
              "type": "cardinality"
            }
          ],
          "policy": "default",
          "query": "host.name.keyword:$host",
          "refId": "A",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "value"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "mean"
              }
            ]
          ],
          "tags": [],
          "timeField": "@timestamp"
        }
      ],
      "timeFrom": null,
      "timeShift": null,
      "title": "Top 10 DKIM Signed Domains",
      "type": "grafana-piechart-panel",
      "valueName": "total"
    },
    {
      "aliasColors": {},
      "breakPoint": "50%",
      "cacheTimeout": null,
      "combine": {
        "label": "Others",
        "threshold": 0
      },
      "datasource": "${DS_ELASTICSEARCH-POSTFIX}",
      "editable": true,
      "error": false,
      "fontSize": "80%",
      "format": "short",
      "gridPos": {
        "h": 7,
        "w": 12,
        "x": 0,
        "y": 39
      },
      "id": 68,
      "interval": null,
      "isNew": true,
      "legend": {
        "show": true,
        "sort": "total",
        "sortDesc": true,
        "values": true
      },
      "legendType": "Right side",
      "links": [],
      "maxDataPoints": 3,
      "nullPointMode": "connected",
      "options": {},
      "pieType": "donut",
      "strokeWidth": 1,
      "targets": [
        {
          "bucketAggs": [
            {
              "fake": true,
              "field": "postfix_from.keyword",
              "id": "3",
              "settings": {
                "min_doc_count": 1,
                "order": "desc",
                "orderBy": "_count",
                "size": "10"
              },
              "type": "terms"
            },
            {
              "field": "@timestamp",
              "id": "2",
              "settings": {
                "interval": "auto",
                "min_doc_count": 1,
                "trimEdges": 0
              },
              "type": "date_histogram"
            }
          ],
          "dsType": "elasticsearch",
          "groupBy": [
            {
              "params": [
                "$interval"
              ],
              "type": "time"
            },
            {
              "params": [
                "null"
              ],
              "type": "fill"
            }
          ],
          "metrics": [
            {
              "field": "postfix_queueid.keyword",
              "id": "1",
              "meta": {},
              "settings": {},
              "type": "cardinality"
            }
          ],
          "policy": "default",
          "query": "postfix_from.keyword:*@* AND host.name.keyword:$host",
          "refId": "A",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "value"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "mean"
              }
            ]
          ],
          "tags": [],
          "timeField": "@timestamp"
        }
      ],
      "title": "Top 10 Senders",
      "type": "grafana-piechart-panel",
      "valueName": "total"
    },
    {
      "aliasColors": {},
      "breakPoint": "50%",
      "cacheTimeout": null,
      "combine": {
        "label": "Others",
        "threshold": 0
      },
      "datasource": "${DS_ELASTICSEARCH-POSTFIX}",
      "editable": true,
      "error": false,
      "fontSize": "80%",
      "format": "short",
      "gridPos": {
        "h": 7,
        "w": 12,
        "x": 12,
        "y": 39
      },
      "id": 69,
      "interval": null,
      "isNew": true,
      "legend": {
        "show": true,
        "sort": "total",
        "sortDesc": true,
        "values": true
      },
      "legendType": "Right side",
      "links": [],
      "maxDataPoints": 3,
      "nullPointMode": "connected",
      "options": {},
      "pieType": "donut",
      "strokeWidth": 1,
      "targets": [
        {
          "bucketAggs": [
            {
              "fake": true,
              "field": "postfix_to.keyword",
              "id": "3",
              "settings": {
                "min_doc_count": 1,
                "order": "desc",
                "orderBy": "_count",
                "size": "10"
              },
              "type": "terms"
            },
            {
              "field": "@timestamp",
              "id": "2",
              "settings": {
                "interval": "auto",
                "min_doc_count": 1,
                "trimEdges": 0
              },
              "type": "date_histogram"
            }
          ],
          "dsType": "elasticsearch",
          "groupBy": [
            {
              "params": [
                "$interval"
              ],
              "type": "time"
            },
            {
              "params": [
                "null"
              ],
              "type": "fill"
            }
          ],
          "metrics": [
            {
              "field": "postfix_queueid.keyword",
              "id": "1",
              "meta": {},
              "settings": {},
              "type": "cardinality"
            }
          ],
          "policy": "default",
          "query": "postfix_to.keyword:*@* AND host.name.keyword:$host",
          "refId": "A",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "value"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "mean"
              }
            ]
          ],
          "tags": [],
          "timeField": "@timestamp"
        }
      ],
      "title": "Top 10 Recipients",
      "type": "grafana-piechart-panel",
      "valueName": "total"
    },
    {
      "aliasColors": {},
      "breakPoint": "50%",
      "cacheTimeout": null,
      "combine": {
        "label": "Others",
        "threshold": 0
      },
      "datasource": "${DS_ELASTICSEARCH-POSTFIX}",
      "editable": true,
      "error": false,
      "fontSize": "80%",
      "format": "short",
      "gridPos": {
        "h": 7,
        "w": 12,
        "x": 0,
        "y": 46
      },
      "id": 167,
      "interval": null,
      "isNew": true,
      "legend": {
        "show": true,
        "sort": "total",
        "sortDesc": true,
        "values": true
      },
      "legendType": "Right side",
      "links": [],
      "maxDataPoints": 3,
      "nullPointMode": "connected",
      "options": {},
      "pieType": "donut",
      "strokeWidth": 1,
      "targets": [
        {
          "bucketAggs": [
            {
              "fake": true,
              "field": "postfix_from_domain.keyword",
              "id": "3",
              "settings": {
                "min_doc_count": 1,
                "order": "desc",
                "orderBy": "_count",
                "size": "10"
              },
              "type": "terms"
            },
            {
              "field": "@timestamp",
              "id": "2",
              "settings": {
                "interval": "auto",
                "min_doc_count": 1,
                "trimEdges": 0
              },
              "type": "date_histogram"
            }
          ],
          "dsType": "elasticsearch",
          "groupBy": [
            {
              "params": [
                "$interval"
              ],
              "type": "time"
            },
            {
              "params": [
                "null"
              ],
              "type": "fill"
            }
          ],
          "metrics": [
            {
              "field": "postfix_queueid.keyword",
              "id": "1",
              "meta": {},
              "settings": {},
              "type": "cardinality"
            }
          ],
          "policy": "default",
          "query": "postfix_from_domain.keyword:*.* AND host.name.keyword:$host",
          "refId": "A",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "value"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "mean"
              }
            ]
          ],
          "tags": [],
          "timeField": "@timestamp"
        }
      ],
      "title": "Top 10 Sender Domains",
      "type": "grafana-piechart-panel",
      "valueName": "total"
    },
    {
      "aliasColors": {},
      "breakPoint": "50%",
      "cacheTimeout": null,
      "combine": {
        "label": "Others",
        "threshold": 0
      },
      "datasource": "${DS_ELASTICSEARCH-POSTFIX}",
      "editable": true,
      "error": false,
      "fontSize": "80%",
      "format": "short",
      "gridPos": {
        "h": 7,
        "w": 12,
        "x": 12,
        "y": 46
      },
      "id": 166,
      "interval": null,
      "isNew": true,
      "legend": {
        "show": true,
        "sort": "total",
        "sortDesc": true,
        "values": true
      },
      "legendType": "Right side",
      "links": [],
      "maxDataPoints": 3,
      "nullPointMode": "connected",
      "options": {},
      "pieType": "donut",
      "strokeWidth": 1,
      "targets": [
        {
          "bucketAggs": [
            {
              "fake": true,
              "field": "postfix_to_domain.keyword",
              "id": "3",
              "settings": {
                "min_doc_count": 1,
                "order": "desc",
                "orderBy": "_count",
                "size": "10"
              },
              "type": "terms"
            },
            {
              "field": "@timestamp",
              "id": "2",
              "settings": {
                "interval": "auto",
                "min_doc_count": 1,
                "trimEdges": 0
              },
              "type": "date_histogram"
            }
          ],
          "dsType": "elasticsearch",
          "groupBy": [
            {
              "params": [
                "$interval"
              ],
              "type": "time"
            },
            {
              "params": [
                "null"
              ],
              "type": "fill"
            }
          ],
          "metrics": [
            {
              "field": "postfix_queueid.keyword",
              "id": "1",
              "meta": {},
              "settings": {},
              "type": "cardinality"
            }
          ],
          "policy": "default",
          "query": "postfix_to_domain.keyword:*.* AND host.name.keyword:$host",
          "refId": "A",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "value"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "mean"
              }
            ]
          ],
          "tags": [],
          "timeField": "@timestamp"
        }
      ],
      "title": "Top 10 Recipient Domains",
      "type": "grafana-piechart-panel",
      "valueName": "total"
    },
    {
      "aliasColors": {},
      "breakPoint": "50%",
      "cacheTimeout": null,
      "combine": {
        "label": "Others",
        "threshold": 0
      },
      "datasource": "${DS_ELASTICSEARCH-POSTFIX}",
      "editable": true,
      "error": false,
      "fontSize": "80%",
      "format": "short",
      "gridPos": {
        "h": 7,
        "w": 12,
        "x": 0,
        "y": 53
      },
      "id": 84,
      "interval": null,
      "isNew": true,
      "legend": {
        "percentage": true,
        "show": true,
        "sort": "total",
        "sortDesc": true,
        "values": true
      },
      "legendType": "Right side",
      "links": [],
      "maxDataPoints": 3,
      "nullPointMode": "connected",
      "options": {},
      "pieType": "donut",
      "strokeWidth": 1,
      "targets": [
        {
          "bucketAggs": [
            {
              "fake": true,
              "field": "postfix_client_ip.keyword",
              "id": "3",
              "settings": {
                "min_doc_count": 1,
                "order": "desc",
                "orderBy": "_count",
                "size": "10"
              },
              "type": "terms"
            },
            {
              "field": "@timestamp",
              "id": "2",
              "settings": {
                "interval": "auto",
                "min_doc_count": 1,
                "trimEdges": 0
              },
              "type": "date_histogram"
            }
          ],
          "dsType": "elasticsearch",
          "groupBy": [
            {
              "params": [
                "$interval"
              ],
              "type": "time"
            },
            {
              "params": [
                "null"
              ],
              "type": "fill"
            }
          ],
          "metrics": [
            {
              "field": "postfix_queueid.keyword",
              "id": "1",
              "meta": {},
              "settings": {},
              "type": "cardinality"
            }
          ],
          "policy": "default",
          "query": "host.name.keyword:$host AND host.name.keyword:$host",
          "refId": "A",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "value"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "mean"
              }
            ]
          ],
          "tags": [],
          "timeField": "@timestamp"
        }
      ],
      "title": "Top 10 Sending Servers",
      "type": "grafana-piechart-panel",
      "valueName": "total"
    },
    {
      "aliasColors": {},
      "breakPoint": "50%",
      "cacheTimeout": null,
      "combine": {
        "label": "Others",
        "threshold": 0
      },
      "datasource": "${DS_ELASTICSEARCH-POSTFIX}",
      "editable": true,
      "error": false,
      "fontSize": "80%",
      "format": "short",
      "gridPos": {
        "h": 7,
        "w": 12,
        "x": 12,
        "y": 53
      },
      "id": 62,
      "interval": null,
      "isNew": true,
      "legend": {
        "percentage": true,
        "show": true,
        "sort": "total",
        "sortDesc": true,
        "values": true
      },
      "legendType": "Right side",
      "links": [],
      "maxDataPoints": 3,
      "nullPointMode": "connected",
      "options": {},
      "pieType": "donut",
      "strokeWidth": 1,
      "targets": [
        {
          "bucketAggs": [
            {
              "fake": true,
              "field": "postfix_relay_hostname.keyword",
              "id": "3",
              "settings": {
                "min_doc_count": 1,
                "order": "desc",
                "orderBy": "_count",
                "size": "10"
              },
              "type": "terms"
            },
            {
              "field": "@timestamp",
              "id": "2",
              "settings": {
                "interval": "auto",
                "min_doc_count": 1,
                "trimEdges": 0
              },
              "type": "date_histogram"
            }
          ],
          "dsType": "elasticsearch",
          "groupBy": [
            {
              "params": [
                "$interval"
              ],
              "type": "time"
            },
            {
              "params": [
                "null"
              ],
              "type": "fill"
            }
          ],
          "metrics": [
            {
              "field": "postfix_queueid.keyword",
              "id": "1",
              "meta": {},
              "settings": {},
              "type": "cardinality"
            }
          ],
          "policy": "default",
          "query": "host.name.keyword:$host",
          "refId": "A",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "value"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "mean"
              }
            ]
          ],
          "tags": [],
          "timeField": "@timestamp"
        }
      ],
      "title": "Top 10 Receiving Servers",
      "type": "grafana-piechart-panel",
      "valueName": "total"
    },
    {
      "columns": [],
      "datasource": "${DS_ELASTICSEARCH-POSTFIX}",
      "fontSize": "100%",
      "gridPos": {
        "h": 8,
        "w": 12,
        "x": 0,
        "y": 60
      },
      "height": "500",
      "id": 99,
      "interval": "",
      "links": [],
      "options": {},
      "pageSize": 10,
      "scroll": true,
      "showHeader": true,
      "sort": {
        "col": null,
        "desc": false
      },
      "styles": [
        {
          "alias": "Host/Domain",
          "align": "auto",
          "colorMode": null,
          "colors": [
            "rgba(245, 54, 54, 0.9)",
            "rgba(237, 129, 40, 0.89)",
            "rgba(50, 172, 45, 0.97)"
          ],
          "dateFormat": "YYYY-MM-DD HH:mm:ss",
          "decimals": 2,
          "link": false,
          "mappingType": 1,
          "pattern": "postfix_from_domain.keyword",
          "thresholds": [],
          "type": "string",
          "unit": "short"
        },
        {
          "alias": "Average Delay",
          "align": "auto",
          "colorMode": "cell",
          "colors": [
            "#37872D",
            "#FA6400",
            "#C4162A"
          ],
          "dateFormat": "YYYY-MM-DD HH:mm:ss",
          "decimals": 2,
          "mappingType": 1,
          "pattern": "Average",
          "thresholds": [
            "60000",
            "90000"
          ],
          "type": "number",
          "unit": "s"
        },
        {
          "alias": "Maximum Delay",
          "align": "auto",
          "colorMode": "cell",
          "colors": [
            "#C4162A",
            "#FA6400",
            "#37872D"
          ],
          "dateFormat": "YYYY-MM-DD HH:mm:ss",
          "decimals": 2,
          "mappingType": 1,
          "pattern": "Max",
          "thresholds": [
            "12000000",
            "18000000"
          ],
          "type": "number",
          "unit": "s"
        },
        {
          "alias": "Deferred",
          "align": "auto",
          "colorMode": null,
          "colors": [
            "rgba(245, 54, 54, 0.9)",
            "rgba(237, 129, 40, 0.89)",
            "rgba(50, 172, 45, 0.97)"
          ],
          "dateFormat": "YYYY-MM-DD HH:mm:ss",
          "decimals": null,
          "mappingType": 1,
          "pattern": "Unique Count",
          "thresholds": [],
          "type": "number",
          "unit": "none"
        },
        {
          "alias": "",
          "align": "auto",
          "colorMode": null,
          "colors": [
            "rgba(245, 54, 54, 0.9)",
            "rgba(237, 129, 40, 0.89)",
            "rgba(50, 172, 45, 0.97)"
          ],
          "decimals": 2,
          "pattern": "/.*/",
          "thresholds": [],
          "type": "number",
          "unit": "short"
        }
      ],
      "targets": [
        {
          "bucketAggs": [
            {
              "fake": true,
              "field": "postfix_from_domain.keyword",
              "id": "3",
              "settings": {
                "min_doc_count": 1,
                "order": "desc",
                "orderBy": "_count",
                "size": "20"
              },
              "type": "terms"
            }
          ],
          "dsType": "elasticsearch",
          "hide": false,
          "metrics": [
            {
              "field": "postfix_delay",
              "id": "1",
              "meta": {
                "avg": true,
                "count": false,
                "max": true,
                "std_deviation_bounds_lower": false,
                "std_deviation_bounds_upper": false
              },
              "settings": {},
              "type": "extended_stats"
            },
            {
              "field": "postfix_queueid.keyword",
              "id": "5",
              "meta": {},
              "settings": {},
              "type": "cardinality"
            }
          ],
          "query": "program.keyword:\"postfix/smtp\" AND _exists_:postfix_from_domain.keyword AND postfix_status.keyword:deferred AND host.name.keyword:$host",
          "refId": "A",
          "timeField": "@timestamp"
        }
      ],
      "title": "Host/Domain Summary: Message Deferred",
      "transform": "table",
      "type": "table"
    },
    {
      "cacheTimeout": null,
      "columns": [
        {
          "text": "Avg",
          "value": "avg"
        },
        {
          "text": "Max",
          "value": "max"
        }
      ],
      "datasource": "${DS_ELASTICSEARCH-POSTFIX}",
      "fontSize": "100%",
      "gridPos": {
        "h": 8,
        "w": 12,
        "x": 12,
        "y": 60
      },
      "id": 89,
      "links": [],
      "options": {},
      "pageSize": null,
      "scroll": true,
      "showHeader": true,
      "sort": {
        "col": 1,
        "desc": true
      },
      "styles": [
        {
          "alias": "Time",
          "align": "auto",
          "dateFormat": "YYYY-MM-DD HH:mm:ss",
          "pattern": "Time",
          "type": "date"
        },
        {
          "alias": "",
          "align": "auto",
          "colorMode": null,
          "colors": [
            "rgba(245, 54, 54, 0.9)",
            "rgba(237, 129, 40, 0.89)",
            "rgba(50, 172, 45, 0.97)"
          ],
          "dateFormat": "YYYY-MM-DD HH:mm:ss",
          "decimals": 2,
          "mappingType": 1,
          "pattern": "",
          "thresholds": [],
          "type": "number",
          "unit": "short"
        },
        {
          "alias": "Host/Domain",
          "align": "auto",
          "colorMode": null,
          "colors": [
            "rgba(245, 54, 54, 0.9)",
            "rgba(237, 129, 40, 0.89)",
            "rgba(50, 172, 45, 0.97)"
          ],
          "dateFormat": "YYYY-MM-DD HH:mm:ss",
          "decimals": 2,
          "mappingType": 1,
          "pattern": "Metric",
          "thresholds": [],
          "type": "string",
          "unit": "short"
        },
        {
          "alias": "Maximum Delay",
          "align": "auto",
          "colorMode": "cell",
          "colors": [
            "#37872D",
            "#FA6400",
            "#C4162A"
          ],
          "dateFormat": "YYYY-MM-DD HH:mm:ss",
          "decimals": 2,
          "mappingType": 1,
          "pattern": "Max",
          "thresholds": [
            "1200000",
            "1800000"
          ],
          "type": "number",
          "unit": "ms"
        },
        {
          "alias": "Average Delay",
          "align": "auto",
          "colorMode": "cell",
          "colors": [
            "#37872D",
            "#FA6400",
            "#C4162A"
          ],
          "dateFormat": "YYYY-MM-DD HH:mm:ss",
          "decimals": 2,
          "mappingType": 1,
          "pattern": "Avg",
          "thresholds": [
            "60000",
            "90000"
          ],
          "type": "number",
          "unit": "ms"
        }
      ],
      "targets": [
        {
          "bucketAggs": [
            {
              "fake": true,
              "field": "postfix_relay_hostname.keyword",
              "id": "3",
              "settings": {
                "min_doc_count": 1,
                "order": "desc",
                "orderBy": "1",
                "size": "10"
              },
              "type": "terms"
            },
            {
              "field": "@timestamp",
              "id": "2",
              "settings": {
                "interval": "auto",
                "min_doc_count": 1,
                "trimEdges": 0
              },
              "type": "date_histogram"
            }
          ],
          "dsType": "elasticsearch",
          "groupBy": [
            {
              "params": [
                "$interval"
              ],
              "type": "time"
            },
            {
              "params": [
                "null"
              ],
              "type": "fill"
            }
          ],
          "metrics": [
            {
              "field": "postfix_delay",
              "id": "1",
              "meta": {},
              "settings": {},
              "type": "sum"
            }
          ],
          "policy": "default",
          "query": "host.name.keyword:$host",
          "refId": "A",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "value"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "mean"
              }
            ]
          ],
          "tags": [],
          "timeField": "@timestamp"
        }
      ],
      "title": "Delayed Relay Hosts",
      "transform": "timeseries_aggregations",
      "type": "table"
    },
    {
      "cacheTimeout": null,
      "columns": [
        {
          "text": "Avg",
          "value": "avg"
        },
        {
          "text": "Max",
          "value": "max"
        }
      ],
      "datasource": "${DS_ELASTICSEARCH-POSTFIX}",
      "fontSize": "100%",
      "gridPos": {
        "h": 8,
        "w": 12,
        "x": 12,
        "y": 68
      },
      "id": 107,
      "links": [],
      "options": {},
      "pageSize": null,
      "scroll": true,
      "showHeader": true,
      "sort": {
        "col": null,
        "desc": false
      },
      "styles": [
        {
          "alias": "Time",
          "align": "auto",
          "dateFormat": "YYYY-MM-DD HH:mm:ss",
          "pattern": "Time",
          "type": "date"
        },
        {
          "alias": "",
          "align": "auto",
          "colorMode": null,
          "colors": [
            "rgba(245, 54, 54, 0.9)",
            "rgba(237, 129, 40, 0.89)",
            "rgba(50, 172, 45, 0.97)"
          ],
          "dateFormat": "YYYY-MM-DD HH:mm:ss",
          "decimals": 2,
          "mappingType": 1,
          "pattern": "",
          "thresholds": [],
          "type": "number",
          "unit": "short"
        },
        {
          "alias": "Host/Domain",
          "align": "auto",
          "colorMode": null,
          "colors": [
            "rgba(245, 54, 54, 0.9)",
            "rgba(237, 129, 40, 0.89)",
            "rgba(50, 172, 45, 0.97)"
          ],
          "dateFormat": "YYYY-MM-DD HH:mm:ss",
          "decimals": 2,
          "mappingType": 1,
          "pattern": "Metric",
          "thresholds": [],
          "type": "string",
          "unit": "short"
        },
        {
          "alias": "Maximum Delay",
          "align": "auto",
          "colorMode": "cell",
          "colors": [
            "#37872D",
            "#FA6400",
            "#C4162A"
          ],
          "dateFormat": "YYYY-MM-DD HH:mm:ss",
          "decimals": 2,
          "mappingType": 1,
          "pattern": "Max",
          "thresholds": [
            "1200000",
            "1800000"
          ],
          "type": "number",
          "unit": "ms"
        },
        {
          "alias": "Average Delay",
          "align": "auto",
          "colorMode": "cell",
          "colors": [
            "#37872D",
            "#FA6400",
            "#C4162A"
          ],
          "dateFormat": "YYYY-MM-DD HH:mm:ss",
          "decimals": 2,
          "mappingType": 1,
          "pattern": "Avg",
          "thresholds": [
            "60000",
            "90000"
          ],
          "type": "number",
          "unit": "ms"
        }
      ],
      "targets": [
        {
          "alias": "",
          "bucketAggs": [
            {
              "fake": true,
              "field": "postfix_from_domain.keyword",
              "id": "3",
              "settings": {
                "min_doc_count": 1,
                "order": "desc",
                "orderBy": "_count",
                "size": "20"
              },
              "type": "terms"
            },
            {
              "field": "@timestamp",
              "id": "2",
              "settings": {
                "interval": "auto",
                "min_doc_count": 1,
                "trimEdges": 0
              },
              "type": "date_histogram"
            }
          ],
          "dsType": "elasticsearch",
          "groupBy": [
            {
              "params": [
                "$interval"
              ],
              "type": "time"
            },
            {
              "params": [
                "null"
              ],
              "type": "fill"
            }
          ],
          "metrics": [
            {
              "field": "postfix_delay",
              "id": "1",
              "meta": {},
              "settings": {},
              "type": "sum"
            }
          ],
          "policy": "default",
          "query": "program.keyword:\"postfix/smtp\" AND _exists_:postfix_from_domain.keyword AND postfix_status.keyword:deferred AND host.name.keyword:$host",
          "refId": "A",
          "resultFormat": "time_series",
          "select": [
            [
              {
                "params": [
                  "value"
                ],
                "type": "field"
              },
              {
                "params": [],
                "type": "mean"
              }
            ]
          ],
          "tags": [],
          "timeField": "@timestamp"
        }
      ],
      "title": "Delayed Sending Domains",
      "transform": "timeseries_aggregations",
      "type": "table"
    },
    {
      "collapsed": true,
      "datasource": null,
      "gridPos": {
        "h": 1,
        "w": 24,
        "x": 0,
        "y": 76
      },
      "id": 105,
      "panels": [
        {
          "columns": [],
          "datasource": "${DS_ELASTICSEARCH-POSTFIX}",
          "fontSize": "100%",
          "gridPos": {
            "h": 9,
            "w": 12,
            "x": 0,
            "y": 88
          },
          "height": "500",
          "id": 97,
          "interval": "1s",
          "links": [],
          "options": {},
          "pageSize": 20,
          "scroll": true,
          "showHeader": true,
          "sort": {
            "col": null,
            "desc": false
          },
          "styles": [
            {
              "alias": "Total Size",
              "align": "auto",
              "colorMode": null,
              "colors": [
                "rgba(245, 54, 54, 0.9)",
                "rgba(237, 129, 40, 0.89)",
                "rgba(50, 172, 45, 0.97)"
              ],
              "dateFormat": "YYYY-MM-DD HH:mm:ss",
              "decimals": null,
              "mappingType": 1,
              "pattern": "Sum",
              "thresholds": [],
              "type": "number",
              "unit": "decbytes"
            },
            {
              "alias": "Sent",
              "align": "auto",
              "colorMode": null,
              "colors": [
                "rgba(245, 54, 54, 0.9)",
                "rgba(237, 129, 40, 0.89)",
                "rgba(50, 172, 45, 0.97)"
              ],
              "dateFormat": "YYYY-MM-DD HH:mm:ss",
              "decimals": null,
              "mappingType": 1,
              "pattern": "Unique Count",
              "thresholds": [],
              "type": "number",
              "unit": "none"
            },
            {
              "alias": "Sender",
              "align": "auto",
              "colorMode": null,
              "colors": [
                "rgba(245, 54, 54, 0.9)",
                "rgba(237, 129, 40, 0.89)",
                "rgba(50, 172, 45, 0.97)"
              ],
              "dateFormat": "YYYY-MM-DD HH:mm:ss",
              "decimals": 2,
              "mappingType": 1,
              "pattern": "postfix_from.keyword",
              "thresholds": [],
              "type": "string",
              "unit": "short"
            },
            {
              "alias": "",
              "align": "auto",
              "colorMode": null,
              "colors": [
                "rgba(245, 54, 54, 0.9)",
                "rgba(237, 129, 40, 0.89)",
                "rgba(50, 172, 45, 0.97)"
              ],
              "decimals": 2,
              "pattern": "/.*/",
              "thresholds": [],
              "type": "number",
              "unit": "short"
            }
          ],
          "targets": [
            {
              "bucketAggs": [
                {
                  "fake": true,
                  "field": "postfix_from.keyword",
                  "id": "3",
                  "settings": {
                    "min_doc_count": 1,
                    "order": "desc",
                    "orderBy": "4",
                    "size": "20"
                  },
                  "type": "terms"
                }
              ],
              "dsType": "elasticsearch",
              "hide": false,
              "metrics": [
                {
                  "field": "postfix_size",
                  "id": "4",
                  "meta": {},
                  "settings": {},
                  "type": "sum"
                },
                {
                  "field": "postfix_queueid.keyword",
                  "id": "5",
                  "meta": {},
                  "settings": {},
                  "type": "cardinality"
                }
              ],
              "query": "program.keyword:\"postfix/smtp\"  AND _exists_:postfix_from.keyword AND postfix_status.keyword:sent AND host.name.keyword:$host",
              "refId": "A",
              "timeField": "@timestamp"
            }
          ],
          "title": "Senders by message size",
          "transform": "table",
          "type": "table"
        },
        {
          "columns": [],
          "datasource": "${DS_ELASTICSEARCH-POSTFIX}",
          "fontSize": "100%",
          "gridPos": {
            "h": 9,
            "w": 12,
            "x": 12,
            "y": 88
          },
          "height": "500",
          "id": 100,
          "interval": "",
          "links": [],
          "options": {},
          "pageSize": 20,
          "scroll": true,
          "showHeader": true,
          "sort": {
            "col": null,
            "desc": false
          },
          "styles": [
            {
              "alias": "Host/Domain",
              "align": "auto",
              "colorMode": null,
              "colors": [
                "rgba(245, 54, 54, 0.9)",
                "rgba(237, 129, 40, 0.89)",
                "rgba(50, 172, 45, 0.97)"
              ],
              "dateFormat": "YYYY-MM-DD HH:mm:ss",
              "decimals": 2,
              "link": false,
              "mappingType": 1,
              "pattern": "postfix_from_domain.keyword",
              "thresholds": [],
              "type": "string",
              "unit": "short"
            },
            {
              "alias": "Total Size",
              "align": "auto",
              "colorMode": null,
              "colors": [
                "rgba(245, 54, 54, 0.9)",
                "rgba(237, 129, 40, 0.89)",
                "rgba(50, 172, 45, 0.97)"
              ],
              "dateFormat": "YYYY-MM-DD HH:mm:ss",
              "decimals": null,
              "mappingType": 1,
              "pattern": "Sum",
              "thresholds": [],
              "type": "number",
              "unit": "decbytes"
            },
            {
              "alias": "Avg Delay",
              "align": "auto",
              "colorMode": null,
              "colors": [
                "rgba(245, 54, 54, 0.9)",
                "rgba(237, 129, 40, 0.89)",
                "rgba(50, 172, 45, 0.97)"
              ],
              "dateFormat": "YYYY-MM-DD HH:mm:ss",
              "decimals": 2,
              "mappingType": 1,
              "pattern": "Average",
              "thresholds": [],
              "type": "number",
              "unit": "s"
            },
            {
              "alias": "Max Delay",
              "align": "auto",
              "colorMode": null,
              "colors": [
                "rgba(245, 54, 54, 0.9)",
                "rgba(237, 129, 40, 0.89)",
                "rgba(50, 172, 45, 0.97)"
              ],
              "dateFormat": "YYYY-MM-DD HH:mm:ss",
              "decimals": 2,
              "mappingType": 1,
              "pattern": "Max",
              "thresholds": [],
              "type": "number",
              "unit": "s"
            },
            {
              "alias": "Sent",
              "align": "auto",
              "colorMode": null,
              "colors": [
                "rgba(245, 54, 54, 0.9)",
                "rgba(237, 129, 40, 0.89)",
                "rgba(50, 172, 45, 0.97)"
              ],
              "dateFormat": "YYYY-MM-DD HH:mm:ss",
              "decimals": null,
              "mappingType": 1,
              "pattern": "Unique Count",
              "thresholds": [],
              "type": "number",
              "unit": "none"
            },
            {
              "alias": "",
              "align": "auto",
              "colorMode": null,
              "colors": [
                "rgba(245, 54, 54, 0.9)",
                "rgba(237, 129, 40, 0.89)",
                "rgba(50, 172, 45, 0.97)"
              ],
              "decimals": 2,
              "pattern": "/.*/",
              "thresholds": [],
              "type": "number",
              "unit": "short"
            }
          ],
          "targets": [
            {
              "bucketAggs": [
                {
                  "fake": true,
                  "field": "postfix_from_domain.keyword",
                  "id": "3",
                  "settings": {
                    "min_doc_count": 1,
                    "order": "desc",
                    "orderBy": "_count",
                    "size": "20"
                  },
                  "type": "terms"
                }
              ],
              "dsType": "elasticsearch",
              "hide": false,
              "metrics": [
                {
                  "field": "postfix_delay",
                  "id": "1",
                  "meta": {
                    "avg": true,
                    "count": false,
                    "max": true,
                    "std_deviation_bounds_lower": false,
                    "std_deviation_bounds_upper": false
                  },
                  "settings": {},
                  "type": "extended_stats"
                },
                {
                  "field": "postfix_size",
                  "id": "4",
                  "meta": {},
                  "settings": {},
                  "type": "sum"
                },
                {
                  "field": "postfix_queueid.keyword",
                  "id": "5",
                  "meta": {},
                  "settings": {},
                  "type": "cardinality"
                }
              ],
              "query": "program.keyword:\"postfix/smtp\" AND _exists_:postfix_from_domain.keyword AND _exists_:postfix_to_domain.keyword AND _exists_:postfix_status.keyword AND host.name.keyword:$host",
              "refId": "A",
              "timeField": "@timestamp"
            }
          ],
          "title": "Host/Domain Summary: Message Delivery",
          "transform": "table",
          "type": "table"
        },
        {
          "columns": [],
          "datasource": "${DS_ELASTICSEARCH-POSTFIX}",
          "fontSize": "100%",
          "gridPos": {
            "h": 9,
            "w": 12,
            "x": 0,
            "y": 97
          },
          "height": "500",
          "id": 101,
          "interval": "",
          "links": [],
          "options": {},
          "pageSize": 20,
          "scroll": true,
          "showHeader": true,
          "sort": {
            "col": null,
            "desc": false
          },
          "styles": [
            {
              "alias": "Total Size",
              "align": "auto",
              "colorMode": null,
              "colors": [
                "rgba(245, 54, 54, 0.9)",
                "rgba(237, 129, 40, 0.89)",
                "rgba(50, 172, 45, 0.97)"
              ],
              "dateFormat": "YYYY-MM-DD HH:mm:ss",
              "decimals": null,
              "mappingType": 1,
              "pattern": "Sum",
              "thresholds": [],
              "type": "number",
              "unit": "decbytes"
            },
            {
              "alias": "Sent",
              "align": "auto",
              "colorMode": null,
              "colors": [
                "rgba(245, 54, 54, 0.9)",
                "rgba(237, 129, 40, 0.89)",
                "rgba(50, 172, 45, 0.97)"
              ],
              "dateFormat": "YYYY-MM-DD HH:mm:ss",
              "decimals": null,
              "mappingType": 1,
              "pattern": "Unique Count",
              "thresholds": [],
              "type": "number",
              "unit": "none"
            },
            {
              "alias": "Recipient",
              "align": "auto",
              "colorMode": null,
              "colors": [
                "rgba(245, 54, 54, 0.9)",
                "rgba(237, 129, 40, 0.89)",
                "rgba(50, 172, 45, 0.97)"
              ],
              "dateFormat": "YYYY-MM-DD HH:mm:ss",
              "decimals": 2,
              "mappingType": 1,
              "pattern": "postfix_to.keyword",
              "thresholds": [],
              "type": "string",
              "unit": "short"
            },
            {
              "alias": "",
              "align": "auto",
              "colorMode": null,
              "colors": [
                "rgba(245, 54, 54, 0.9)",
                "rgba(237, 129, 40, 0.89)",
                "rgba(50, 172, 45, 0.97)"
              ],
              "decimals": 2,
              "pattern": "/.*/",
              "thresholds": [],
              "type": "number",
              "unit": "short"
            }
          ],
          "targets": [
            {
              "bucketAggs": [
                {
                  "fake": true,
                  "field": "postfix_to.keyword",
                  "id": "3",
                  "settings": {
                    "min_doc_count": 1,
                    "order": "desc",
                    "orderBy": "4",
                    "size": "20"
                  },
                  "type": "terms"
                }
              ],
              "dsType": "elasticsearch",
              "hide": false,
              "metrics": [
                {
                  "field": "postfix_size",
                  "id": "4",
                  "meta": {},
                  "settings": {},
                  "type": "sum"
                },
                {
                  "field": "postfix_queueid.keyword",
                  "id": "5",
                  "meta": {},
                  "settings": {},
                  "type": "cardinality"
                }
              ],
              "query": "program.keyword:\"postfix/smtp\"  AND _exists_:postfix_to.keyword AND postfix_status.keyword:sent AND host.name.keyword:$host",
              "refId": "A",
              "timeField": "@timestamp"
            }
          ],
          "title": "Recipients by message size",
          "transform": "table",
          "type": "table"
        },
        {
          "columns": [],
          "datasource": "${DS_ELASTICSEARCH-POSTFIX}",
          "fontSize": "100%",
          "gridPos": {
            "h": 9,
            "w": 12,
            "x": 12,
            "y": 97
          },
          "height": "500",
          "id": 98,
          "interval": "",
          "links": [],
          "options": {},
          "pageSize": 20,
          "scroll": true,
          "showHeader": true,
          "sort": {
            "col": null,
            "desc": false
          },
          "styles": [
            {
              "alias": "Host/Domain",
              "align": "auto",
              "colorMode": null,
              "colors": [
                "rgba(245, 54, 54, 0.9)",
                "rgba(237, 129, 40, 0.89)",
                "rgba(50, 172, 45, 0.97)"
              ],
              "dateFormat": "YYYY-MM-DD HH:mm:ss",
              "decimals": 2,
              "mappingType": 1,
              "pattern": "postfix_to_domain.keyword",
              "preserveFormat": false,
              "thresholds": [],
              "type": "string",
              "unit": "short"
            },
            {
              "alias": "Size",
              "align": "auto",
              "colorMode": null,
              "colors": [
                "rgba(245, 54, 54, 0.9)",
                "rgba(237, 129, 40, 0.89)",
                "rgba(50, 172, 45, 0.97)"
              ],
              "dateFormat": "YYYY-MM-DD HH:mm:ss",
              "decimals": null,
              "mappingType": 1,
              "pattern": "Sum",
              "thresholds": [],
              "type": "number",
              "unit": "decbytes"
            },
            {
              "alias": "Sent",
              "align": "auto",
              "colorMode": null,
              "colors": [
                "rgba(245, 54, 54, 0.9)",
                "rgba(237, 129, 40, 0.89)",
                "rgba(50, 172, 45, 0.97)"
              ],
              "dateFormat": "YYYY-MM-DD HH:mm:ss",
              "decimals": null,
              "mappingType": 1,
              "pattern": "Unique Count",
              "thresholds": [],
              "type": "number",
              "unit": "none"
            },
            {
              "alias": "",
              "align": "auto",
              "colorMode": null,
              "colors": [
                "rgba(245, 54, 54, 0.9)",
                "rgba(237, 129, 40, 0.89)",
                "rgba(50, 172, 45, 0.97)"
              ],
              "decimals": 2,
              "pattern": "/.*/",
              "thresholds": [],
              "type": "number",
              "unit": "short"
            }
          ],
          "targets": [
            {
              "bucketAggs": [
                {
                  "fake": true,
                  "field": "postfix_to_domain.keyword",
                  "id": "3",
                  "settings": {
                    "min_doc_count": 1,
                    "order": "desc",
                    "orderBy": "_count",
                    "size": "20"
                  },
                  "type": "terms"
                }
              ],
              "dsType": "elasticsearch",
              "hide": false,
              "metrics": [
                {
                  "field": "postfix_size",
                  "id": "4",
                  "meta": {},
                  "settings": {},
                  "type": "sum"
                },
                {
                  "field": "postfix_queueid.keyword",
                  "id": "5",
                  "meta": {},
                  "settings": {},
                  "type": "cardinality"
                }
              ],
              "query": "program.keyword:\"postfix/smtp\" AND _exists_:postfix_from_domain.keyword AND _exists_:postfix_to_domain.keyword AND _exists_:postfix_status.keyword AND host.name.keyword:$host",
              "refId": "A",
              "timeField": "@timestamp"
            }
          ],
          "title": "Host/Domain Summary: Messages Received",
          "transform": "table",
          "type": "table"
        },
        {
          "cacheTimeout": null,
          "columns": [],
          "datasource": "${DS_ELASTICSEARCH-POSTFIX}",
          "fontSize": "100%",
          "gridPos": {
            "h": 9,
            "w": 12,
            "x": 0,
            "y": 106
          },
          "id": 162,
          "links": [],
          "options": {},
          "pageSize": null,
          "scroll": true,
          "showHeader": true,
          "sort": {
            "col": 2,
            "desc": true
          },
          "styles": [
            {
              "alias": "Time",
              "align": "auto",
              "dateFormat": "YYYY-MM-DD HH:mm:ss",
              "pattern": "Time",
              "type": "date"
            },
            {
              "alias": "Total",
              "align": "auto",
              "colorMode": "cell",
              "colors": [
                "#37872D",
                "#FA6400",
                "#C4162A"
              ],
              "dateFormat": "YYYY-MM-DD HH:mm:ss",
              "decimals": null,
              "mappingType": 1,
              "pattern": "Count",
              "thresholds": [
                "250",
                "1000"
              ],
              "type": "number",
              "unit": "short"
            },
            {
              "alias": "Sender",
              "align": "auto",
              "colorMode": null,
              "colors": [
                "rgba(245, 54, 54, 0.9)",
                "rgba(237, 129, 40, 0.89)",
                "rgba(50, 172, 45, 0.97)"
              ],
              "dateFormat": "YYYY-MM-DD HH:mm:ss",
              "decimals": 2,
              "mappingType": 1,
              "pattern": "postfix_from.keyword",
              "thresholds": [],
              "type": "number",
              "unit": "short"
            },
            {
              "alias": "",
              "align": "auto",
              "colorMode": null,
              "colors": [
                "rgba(245, 54, 54, 0.9)",
                "rgba(237, 129, 40, 0.89)",
                "rgba(50, 172, 45, 0.97)"
              ],
              "decimals": 2,
              "pattern": "/.*/",
              "thresholds": [],
              "type": "number",
              "unit": "short"
            }
          ],
          "targets": [
            {
              "bucketAggs": [
                {
                  "fake": true,
                  "field": "postfix_from.keyword",
                  "id": "4",
                  "settings": {
                    "min_doc_count": 1,
                    "order": "desc",
                    "orderBy": "_count",
                    "size": "10"
                  },
                  "type": "terms"
                }
              ],
              "dsType": "elasticsearch",
              "groupBy": [
                {
                  "params": [
                    "$interval"
                  ],
                  "type": "time"
                },
                {
                  "params": [
                    "null"
                  ],
                  "type": "fill"
                }
              ],
              "hide": false,
              "metrics": [
                {
                  "field": "postfix_queueid.keyword",
                  "id": "1",
                  "meta": {},
                  "settings": {},
                  "type": "count"
                }
              ],
              "policy": "default",
              "query": "postfix_status.keyword:bounced AND host.name.keyword:$host",
              "refId": "A",
              "resultFormat": "time_series",
              "select": [
                [
                  {
                    "params": [
                      "value"
                    ],
                    "type": "field"
                  },
                  {
                    "params": [],
                    "type": "mean"
                  }
                ]
              ],
              "tags": [],
              "timeField": "@timestamp"
            }
          ],
          "title": "message bounce count by sender",
          "transform": "table",
          "type": "table"
        },
        {
          "cacheTimeout": null,
          "columns": [
            {
              "text": "Total",
              "value": "total"
            }
          ],
          "datasource": "${DS_ELASTICSEARCH-POSTFIX}",
          "description": "Senders without a valid SPF record. Emails are bounced by remote servers because your mail relay is not in their SPF record.",
          "fontSize": "100%",
          "gridPos": {
            "h": 9,
            "w": 12,
            "x": 12,
            "y": 106
          },
          "id": 161,
          "interval": "",
          "links": [],
          "options": {},
          "pageSize": 100,
          "scroll": true,
          "showHeader": true,
          "sort": {
            "col": 2,
            "desc": true
          },
          "styles": [
            {
              "alias": "Time",
              "align": "auto",
              "dateFormat": "YYYY-MM-DD HH:mm:ss",
              "pattern": "Time",
              "type": "date"
            },
            {
              "alias": "Sender",
              "align": "auto",
              "colorMode": null,
              "colors": [
                "rgba(245, 54, 54, 0.9)",
                "rgba(237, 129, 40, 0.89)",
                "rgba(50, 172, 45, 0.97)"
              ],
              "dateFormat": "YYYY-MM-DD HH:mm:ss",
              "decimals": 2,
              "mappingType": 1,
              "pattern": "postfix_from.keyword",
              "thresholds": [],
              "type": "number",
              "unit": "short"
            },
            {
              "alias": "Total",
              "align": "auto",
              "colorMode": "cell",
              "colors": [
                "#37872D",
                "#FA6400",
                "#C4162A"
              ],
              "dateFormat": "YYYY-MM-DD HH:mm:ss",
              "decimals": null,
              "mappingType": 1,
              "pattern": "Count",
              "thresholds": [
                "250",
                "1000"
              ],
              "type": "number",
              "unit": "short"
            },
            {
              "alias": "",
              "align": "auto",
              "colorMode": null,
              "colors": [
                "rgba(245, 54, 54, 0.9)",
                "rgba(237, 129, 40, 0.89)",
                "rgba(50, 172, 45, 0.97)"
              ],
              "decimals": 2,
              "pattern": "/.*/",
              "thresholds": [],
              "type": "number",
              "unit": "short"
            }
          ],
          "targets": [
            {
              "bucketAggs": [
                {
                  "fake": true,
                  "field": "postfix_from.keyword",
                  "id": "4",
                  "settings": {
                    "min_doc_count": 1,
                    "order": "desc",
                    "orderBy": "_count",
                    "size": "0"
                  },
                  "type": "terms"
                }
              ],
              "dsType": "elasticsearch",
              "groupBy": [
                {
                  "params": [
                    "$interval"
                  ],
                  "type": "time"
                },
                {
                  "params": [
                    "null"
                  ],
                  "type": "fill"
                }
              ],
              "hide": false,
              "metrics": [
                {
                  "field": "postfix_queueid.keyword",
                  "id": "1",
                  "meta": {},
                  "settings": {},
                  "type": "count"
                }
              ],
              "policy": "default",
              "query": "postfix_status.keyword:bounced AND postfix_smtp_response.keyword:/.*SPF.*|*.spf.*|.*Sender Policy Framework.*/ AND host.name.keyword:$host",
              "refId": "A",
              "resultFormat": "time_series",
              "select": [
                [
                  {
                    "params": [
                      "value"
                    ],
                    "type": "field"
                  },
                  {
                    "params": [],
                    "type": "mean"
                  }
                ]
              ],
              "tags": [],
              "timeField": "@timestamp"
            }
          ],
          "title": "message bounce counter by sender- Cause:Invalid SPF",
          "transform": "table",
          "type": "table"
        },
        {
          "cacheTimeout": null,
          "columns": [
            {
              "text": "Total",
              "value": "total"
            }
          ],
          "datasource": "${DS_ELASTICSEARCH-POSTFIX}",
          "description": "Senders without a valid SPF record. Emails are bounced by remote servers because your mail relay is not in their SPF record.",
          "fontSize": "100%",
          "gridPos": {
            "h": 9,
            "w": 12,
            "x": 12,
            "y": 115
          },
          "id": 163,
          "interval": "",
          "links": [],
          "options": {},
          "pageSize": 100,
          "scroll": true,
          "showHeader": true,
          "sort": {
            "col": 2,
            "desc": true
          },
          "styles": [
            {
              "alias": "Time",
              "align": "auto",
              "dateFormat": "YYYY-MM-DD HH:mm:ss",
              "pattern": "Time",
              "type": "date"
            },
            {
              "alias": "Sender",
              "align": "auto",
              "colorMode": null,
              "colors": [
                "rgba(245, 54, 54, 0.9)",
                "rgba(237, 129, 40, 0.89)",
                "rgba(50, 172, 45, 0.97)"
              ],
              "dateFormat": "YYYY-MM-DD HH:mm:ss",
              "decimals": 2,
              "mappingType": 1,
              "pattern": "postfix_from.keyword",
              "thresholds": [],
              "type": "number",
              "unit": "short"
            },
            {
              "alias": "Total",
              "align": "auto",
              "colorMode": "cell",
              "colors": [
                "#37872D",
                "#FA6400",
                "#C4162A"
              ],
              "dateFormat": "YYYY-MM-DD HH:mm:ss",
              "decimals": null,
              "mappingType": 1,
              "pattern": "Count",
              "thresholds": [
                "250",
                "1000"
              ],
              "type": "number",
              "unit": "short"
            },
            {
              "alias": "",
              "align": "auto",
              "colorMode": null,
              "colors": [
                "rgba(245, 54, 54, 0.9)",
                "rgba(237, 129, 40, 0.89)",
                "rgba(50, 172, 45, 0.97)"
              ],
              "decimals": 2,
              "pattern": "/.*/",
              "thresholds": [],
              "type": "number",
              "unit": "short"
            }
          ],
          "targets": [
            {
              "bucketAggs": [
                {
                  "fake": true,
                  "field": "postfix_to.keyword",
                  "id": "4",
                  "settings": {
                    "min_doc_count": 1,
                    "order": "desc",
                    "orderBy": "_count",
                    "size": "0"
                  },
                  "type": "terms"
                }
              ],
              "dsType": "elasticsearch",
              "groupBy": [
                {
                  "params": [
                    "$interval"
                  ],
                  "type": "time"
                },
                {
                  "params": [
                    "null"
                  ],
                  "type": "fill"
                }
              ],
              "hide": false,
              "metrics": [
                {
                  "field": "postfix_queueid.keyword",
                  "id": "1",
                  "meta": {},
                  "settings": {},
                  "type": "count"
                }
              ],
              "policy": "default",
              "query": "postfix_status.keyword:bounced AND postfix_smtp_response.keyword:/.*SPF.*|*.spf.*|.*Sender Policy Framework.*/ AND host.name.keyword:$host",
              "refId": "A",
              "resultFormat": "time_series",
              "select": [
                [
                  {
                    "params": [
                      "value"
                    ],
                    "type": "field"
                  },
                  {
                    "params": [],
                    "type": "mean"
                  }
                ]
              ],
              "tags": [],
              "timeField": "@timestamp"
            }
          ],
          "title": "message bounce counter by recipient- Cause:Invalid SPF",
          "transform": "table",
          "type": "table"
        },
        {
          "cacheTimeout": null,
          "columns": [],
          "datasource": "${DS_ELASTICSEARCH-POSTFIX}",
          "fontSize": "100%",
          "gridPos": {
            "h": 7,
            "w": 24,
            "x": 0,
            "y": 124
          },
          "id": 121,
          "links": [],
          "options": {},
          "pageSize": null,
          "scroll": true,
          "showHeader": true,
          "sort": {
            "col": 2,
            "desc": true
          },
          "styles": [
            {
              "alias": "Time",
              "align": "auto",
              "dateFormat": "YYYY-MM-DD HH:mm:ss",
              "pattern": "Time",
              "type": "date"
            },
            {
              "alias": "Relay Hostname",
              "align": "auto",
              "colorMode": null,
              "colors": [
                "rgba(245, 54, 54, 0.9)",
                "rgba(237, 129, 40, 0.89)",
                "rgba(50, 172, 45, 0.97)"
              ],
              "dateFormat": "YYYY-MM-DD HH:mm:ss",
              "decimals": 2,
              "mappingType": 1,
              "pattern": "postfix_relay_hostname.keyword",
              "thresholds": [],
              "type": "string",
              "unit": "short"
            },
            {
              "alias": "SMTP Response",
              "align": "auto",
              "colorMode": null,
              "colors": [
                "rgba(245, 54, 54, 0.9)",
                "rgba(237, 129, 40, 0.89)",
                "rgba(50, 172, 45, 0.97)"
              ],
              "dateFormat": "YYYY-MM-DD HH:mm:ss",
              "decimals": 2,
              "mappingType": 1,
              "pattern": "postfix_smtp_response.keyword",
              "thresholds": [],
              "type": "number",
              "unit": "short"
            },
            {
              "alias": "Total",
              "align": "auto",
              "colorMode": "cell",
              "colors": [
                "#37872D",
                "#FA6400",
                "#C4162A"
              ],
              "dateFormat": "YYYY-MM-DD HH:mm:ss",
              "decimals": null,
              "mappingType": 1,
              "pattern": "Count",
              "thresholds": [
                "250",
                "1000"
              ],
              "type": "number",
              "unit": "short"
            },
            {
              "alias": "",
              "align": "auto",
              "colorMode": null,
              "colors": [
                "rgba(245, 54, 54, 0.9)",
                "rgba(237, 129, 40, 0.89)",
                "rgba(50, 172, 45, 0.97)"
              ],
              "decimals": 2,
              "pattern": "/.*/",
              "thresholds": [],
              "type": "number",
              "unit": "short"
            }
          ],
          "targets": [
            {
              "bucketAggs": [
                {
                  "fake": true,
                  "field": "postfix_relay_hostname.keyword",
                  "id": "4",
                  "settings": {
                    "min_doc_count": 1,
                    "order": "desc",
                    "orderBy": "_count",
                    "size": "10"
                  },
                  "type": "terms"
                },
                {
                  "fake": true,
                  "field": "postfix_smtp_response.keyword",
                  "id": "3",
                  "settings": {
                    "min_doc_count": 1,
                    "order": "desc",
                    "orderBy": "_count",
                    "size": "10"
                  },
                  "type": "terms"
                }
              ],
              "dsType": "elasticsearch",
              "groupBy": [
                {
                  "params": [
                    "$interval"
                  ],
                  "type": "time"
                },
                {
                  "params": [
                    "null"
                  ],
                  "type": "fill"
                }
              ],
              "hide": false,
              "metrics": [
                {
                  "field": "postfix_queueid.keyword",
                  "id": "1",
                  "meta": {},
                  "settings": {},
                  "type": "count"
                }
              ],
              "policy": "default",
              "query": "postfix_status.keyword:deferred AND host.name.keyword:$host",
              "refId": "A",
              "resultFormat": "time_series",
              "select": [
                [
                  {
                    "params": [
                      "value"
                    ],
                    "type": "field"
                  },
                  {
                    "params": [],
                    "type": "mean"
                  }
                ]
              ],
              "tags": [],
              "timeField": "@timestamp"
            }
          ],
          "title": "message deferred detail",
          "transform": "table",
          "type": "table"
        },
        {
          "cacheTimeout": null,
          "columns": [],
          "datasource": "${DS_ELASTICSEARCH-POSTFIX}",
          "fontSize": "100%",
          "gridPos": {
            "h": 7,
            "w": 24,
            "x": 0,
            "y": 131
          },
          "id": 103,
          "links": [],
          "options": {},
          "pageSize": null,
          "scroll": true,
          "showHeader": true,
          "sort": {
            "col": 2,
            "desc": true
          },
          "styles": [
            {
              "alias": "Time",
              "align": "auto",
              "dateFormat": "YYYY-MM-DD HH:mm:ss",
              "pattern": "Time",
              "type": "date"
            },
            {
              "alias": "Relay Hostname",
              "align": "auto",
              "colorMode": null,
              "colors": [
                "rgba(245, 54, 54, 0.9)",
                "rgba(237, 129, 40, 0.89)",
                "rgba(50, 172, 45, 0.97)"
              ],
              "dateFormat": "YYYY-MM-DD HH:mm:ss",
              "decimals": 2,
              "mappingType": 1,
              "pattern": "postfix_relay_hostname.keyword",
              "thresholds": [],
              "type": "string",
              "unit": "short"
            },
            {
              "alias": "SMTP Response",
              "align": "auto",
              "colorMode": null,
              "colors": [
                "rgba(245, 54, 54, 0.9)",
                "rgba(237, 129, 40, 0.89)",
                "rgba(50, 172, 45, 0.97)"
              ],
              "dateFormat": "YYYY-MM-DD HH:mm:ss",
              "decimals": 2,
              "mappingType": 1,
              "pattern": "postfix_smtp_response.keyword",
              "thresholds": [],
              "type": "number",
              "unit": "short"
            },
            {
              "alias": "Total",
              "align": "auto",
              "colorMode": "cell",
              "colors": [
                "#37872D",
                "#FA6400",
                "#C4162A"
              ],
              "dateFormat": "YYYY-MM-DD HH:mm:ss",
              "decimals": null,
              "mappingType": 1,
              "pattern": "Count",
              "thresholds": [
                "250",
                "1000"
              ],
              "type": "number",
              "unit": "short"
            },
            {
              "alias": "",
              "align": "auto",
              "colorMode": null,
              "colors": [
                "rgba(245, 54, 54, 0.9)",
                "rgba(237, 129, 40, 0.89)",
                "rgba(50, 172, 45, 0.97)"
              ],
              "decimals": 2,
              "pattern": "/.*/",
              "thresholds": [],
              "type": "number",
              "unit": "short"
            }
          ],
          "targets": [
            {
              "bucketAggs": [
                {
                  "fake": true,
                  "field": "postfix_relay_hostname.keyword",
                  "id": "4",
                  "settings": {
                    "min_doc_count": 1,
                    "order": "desc",
                    "orderBy": "_count",
                    "size": "100"
                  },
                  "type": "terms"
                },
                {
                  "fake": true,
                  "field": "postfix_smtp_response.keyword",
                  "id": "3",
                  "settings": {
                    "min_doc_count": 1,
                    "order": "desc",
                    "orderBy": "_count",
                    "size": "100"
                  },
                  "type": "terms"
                }
              ],
              "dsType": "elasticsearch",
              "groupBy": [
                {
                  "params": [
                    "$interval"
                  ],
                  "type": "time"
                },
                {
                  "params": [
                    "null"
                  ],
                  "type": "fill"
                }
              ],
              "hide": false,
              "metrics": [
                {
                  "field": "postfix_queueid.keyword",
                  "id": "1",
                  "meta": {},
                  "settings": {},
                  "type": "count"
                }
              ],
              "policy": "default",
              "query": "postfix_status.keyword:bounced AND host.name.keyword:$host",
              "refId": "A",
              "resultFormat": "time_series",
              "select": [
                [
                  {
                    "params": [
                      "value"
                    ],
                    "type": "field"
                  },
                  {
                    "params": [],
                    "type": "mean"
                  }
                ]
              ],
              "tags": [],
              "timeField": "@timestamp"
            }
          ],
          "title": "message bounce detail",
          "transform": "table",
          "type": "table"
        },
        {
          "cacheTimeout": null,
          "columns": [],
          "datasource": "${DS_ELASTICSEARCH-POSTFIX}",
          "fontSize": "100%",
          "gridPos": {
            "h": 7,
            "w": 24,
            "x": 0,
            "y": 138
          },
          "id": 122,
          "links": [],
          "options": {},
          "pageSize": null,
          "scroll": true,
          "showHeader": true,
          "sort": {
            "col": 2,
            "desc": true
          },
          "styles": [
            {
              "alias": "Time",
              "align": "auto",
              "dateFormat": "YYYY-MM-DD HH:mm:ss",
              "pattern": "Time",
              "type": "date"
            },
            {
              "alias": "Relay Hostname",
              "align": "auto",
              "colorMode": null,
              "colors": [
                "rgba(245, 54, 54, 0.9)",
                "rgba(237, 129, 40, 0.89)",
                "rgba(50, 172, 45, 0.97)"
              ],
              "dateFormat": "YYYY-MM-DD HH:mm:ss",
              "decimals": 2,
              "mappingType": 1,
              "pattern": "postfix_relay_hostname.keyword",
              "thresholds": [],
              "type": "string",
              "unit": "short"
            },
            {
              "alias": "SMTP Response",
              "align": "auto",
              "colorMode": null,
              "colors": [
                "rgba(245, 54, 54, 0.9)",
                "rgba(237, 129, 40, 0.89)",
                "rgba(50, 172, 45, 0.97)"
              ],
              "dateFormat": "YYYY-MM-DD HH:mm:ss",
              "decimals": 2,
              "mappingType": 1,
              "pattern": "postfix_smtp_response.keyword",
              "thresholds": [],
              "type": "number",
              "unit": "short"
            },
            {
              "alias": "Total",
              "align": "auto",
              "colorMode": null,
              "colors": [
                "rgba(245, 54, 54, 0.9)",
                "rgba(237, 129, 40, 0.89)",
                "rgba(50, 172, 45, 0.97)"
              ],
              "dateFormat": "YYYY-MM-DD HH:mm:ss",
              "decimals": null,
              "mappingType": 1,
              "pattern": "Count",
              "thresholds": [],
              "type": "number",
              "unit": "short"
            },
            {
              "alias": "",
              "align": "auto",
              "colorMode": null,
              "colors": [
                "rgba(245, 54, 54, 0.9)",
                "rgba(237, 129, 40, 0.89)",
                "rgba(50, 172, 45, 0.97)"
              ],
              "decimals": 2,
              "pattern": "/.*/",
              "thresholds": [],
              "type": "number",
              "unit": "short"
            }
          ],
          "targets": [
            {
              "bucketAggs": [
                {
                  "fake": true,
                  "field": "postfix_relay_hostname.keyword",
                  "id": "4",
                  "settings": {
                    "min_doc_count": 1,
                    "order": "desc",
                    "orderBy": "_count",
                    "size": "10"
                  },
                  "type": "terms"
                },
                {
                  "fake": true,
                  "field": "postfix_smtp_response.keyword",
                  "id": "3",
                  "settings": {
                    "min_doc_count": 1,
                    "order": "desc",
                    "orderBy": "_count",
                    "size": "10"
                  },
                  "type": "terms"
                }
              ],
              "dsType": "elasticsearch",
              "groupBy": [
                {
                  "params": [
                    "$interval"
                  ],
                  "type": "time"
                },
                {
                  "params": [
                    "null"
                  ],
                  "type": "fill"
                }
              ],
              "hide": false,
              "metrics": [
                {
                  "field": "postfix_queueid.keyword",
                  "id": "1",
                  "meta": {},
                  "settings": {},
                  "type": "count"
                }
              ],
              "policy": "default",
              "query": "postfix_status.keyword:sent AND host.name.keyword:$host",
              "refId": "A",
              "resultFormat": "time_series",
              "select": [
                [
                  {
                    "params": [
                      "value"
                    ],
                    "type": "field"
                  },
                  {
                    "params": [],
                    "type": "mean"
                  }
                ]
              ],
              "tags": [],
              "timeField": "@timestamp"
            }
          ],
          "title": "message sent detail",
          "transform": "table",
          "type": "table"
        },
        {
          "cacheTimeout": null,
          "columns": [
            {
              "text": "Total",
              "value": "total"
            }
          ],
          "datasource": "${DS_ELASTICSEARCH-POSTFIX}",
          "fontSize": "100%",
          "gridPos": {
            "h": 6,
            "w": 24,
            "x": 0,
            "y": 145
          },
          "id": 86,
          "links": [],
          "options": {},
          "pageSize": null,
          "scroll": true,
          "showHeader": true,
          "sort": {
            "col": 1,
            "desc": true
          },
          "styles": [
            {
              "alias": "Time",
              "align": "auto",
              "dateFormat": "YYYY-MM-DD HH:mm:ss",
              "pattern": "Time",
              "type": "date"
            },
            {
              "alias": "",
              "align": "auto",
              "colorMode": "cell",
              "colors": [
                "#37872D",
                "#FA6400",
                "#C4162A"
              ],
              "decimals": null,
              "pattern": "/.*/",
              "thresholds": [
                "250",
                "1000"
              ],
              "type": "number",
              "unit": "short"
            }
          ],
          "targets": [
            {
              "bucketAggs": [
                {
                  "fake": true,
                  "field": "postfix_error_response.keyword",
                  "id": "4",
                  "settings": {
                    "min_doc_count": 1,
                    "order": "desc",
                    "orderBy": "_count",
                    "size": "10"
                  },
                  "type": "terms"
                },
                {
                  "field": "@timestamp",
                  "id": "2",
                  "settings": {
                    "interval": "auto",
                    "min_doc_count": 1,
                    "trimEdges": 0
                  },
                  "type": "date_histogram"
                }
              ],
              "dsType": "elasticsearch",
              "groupBy": [
                {
                  "params": [
                    "$interval"
                  ],
                  "type": "time"
                },
                {
                  "params": [
                    "null"
                  ],
                  "type": "fill"
                }
              ],
              "metrics": [
                {
                  "field": "postfix_queueid.keyword",
                  "id": "1",
                  "meta": {},
                  "settings": {},
                  "type": "cardinality"
                }
              ],
              "policy": "default",
              "query": "host.name.keyword:$host",
              "refId": "A",
              "resultFormat": "time_series",
              "select": [
                [
                  {
                    "params": [
                      "value"
                    ],
                    "type": "field"
                  },
                  {
                    "params": [],
                    "type": "mean"
                  }
                ]
              ],
              "tags": [],
              "timeField": "@timestamp"
            }
          ],
          "title": "message error responses detail",
          "transform": "timeseries_aggregations",
          "type": "table"
        },
        {
          "aliasColors": {},
          "bars": false,
          "cacheTimeout": null,
          "dashLength": 10,
          "dashes": false,
          "datasource": "${DS_ELASTICSEARCH-POSTFIX}",
          "decimals": 0,
          "fill": 1,
          "fillGradient": 0,
          "gridPos": {
            "h": 6,
            "w": 24,
            "x": 0,
            "y": 151
          },
          "hiddenSeries": false,
          "id": 164,
          "legend": {
            "alignAsTable": true,
            "avg": false,
            "current": false,
            "max": false,
            "min": false,
            "rightSide": true,
            "show": true,
            "total": true,
            "values": true
          },
          "lines": true,
          "linewidth": 1,
          "links": [],
          "nullPointMode": "null",
          "options": {
            "dataLinks": []
          },
          "percentage": false,
          "pointradius": 2,
          "points": false,
          "renderer": "flot",
          "seriesOverrides": [],
          "spaceLength": 10,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "alias": "{{postfix_from.keyword}}",
              "bucketAggs": [
                {
                  "fake": true,
                  "field": "postfix_from.keyword",
                  "id": "6",
                  "settings": {
                    "min_doc_count": 1,
                    "order": "desc",
                    "orderBy": "1",
                    "size": "0"
                  },
                  "type": "terms"
                },
                {
                  "field": "@timestamp",
                  "id": "2",
                  "settings": {
                    "interval": "auto",
                    "min_doc_count": 1,
                    "trimEdges": 0
                  },
                  "type": "date_histogram"
                }
              ],
              "dsType": "elasticsearch",
              "groupBy": [
                {
                  "params": [
                    "$interval"
                  ],
                  "type": "time"
                },
                {
                  "params": [
                    "null"
                  ],
                  "type": "fill"
                }
              ],
              "metrics": [
                {
                  "field": "postfix_queueid.keyword",
                  "id": "1",
                  "meta": {},
                  "settings": {},
                  "type": "cardinality"
                }
              ],
              "policy": "default",
              "query": "postfix_smtp_response.keyword:SASL*",
              "refId": "A",
              "resultFormat": "time_series",
              "select": [
                [
                  {
                    "params": [
                      "value"
                    ],
                    "type": "field"
                  },
                  {
                    "params": [],
                    "type": "mean"
                  }
                ]
              ],
              "tags": [],
              "timeField": "@timestamp"
            }
          ],
          "thresholds": [],
          "timeFrom": null,
          "timeRegions": [],
          "timeShift": null,
          "title": "SASL Authentication Errors",
          "tooltip": {
            "shared": true,
            "sort": 0,
            "value_type": "individual"
          },
          "type": "graph",
          "xaxis": {
            "buckets": null,
            "mode": "time",
            "name": null,
            "show": true,
            "values": []
          },
          "yaxes": [
            {
              "decimals": null,
              "format": "none",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            },
            {
              "format": "short",
              "label": null,
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            }
          ],
          "yaxis": {
            "align": false,
            "alignLevel": null
          }
        },
        {
          "cacheTimeout": null,
          "columns": [],
          "datasource": "${DS_ELASTICSEARCH-POSTFIX}",
          "fontSize": "100%",
          "gridPos": {
            "h": 6,
            "w": 24,
            "x": 0,
            "y": 157
          },
          "id": 165,
          "links": [],
          "options": {},
          "pageSize": null,
          "scroll": true,
          "showHeader": true,
          "sort": {
            "col": 0,
            "desc": true
          },
          "styles": [
            {
              "alias": "Time",
              "align": "auto",
              "dateFormat": "YYYY-MM-DD HH:mm:ss",
              "pattern": "Time",
              "type": "date"
            },
            {
              "alias": "",
              "align": "auto",
              "colorMode": null,
              "colors": [
                "rgba(245, 54, 54, 0.9)",
                "rgba(237, 129, 40, 0.89)",
                "rgba(50, 172, 45, 0.97)"
              ],
              "decimals": 2,
              "pattern": "/.*/",
              "thresholds": [],
              "type": "number",
              "unit": "short"
            }
          ],
          "targets": [
            {
              "alias": "{{postfix_from.keyword}} - {{postfix_smtp_response.keyword}}",
              "bucketAggs": [
                {
                  "fake": true,
                  "field": "postfix_smtp_response.keyword",
                  "id": "7",
                  "settings": {
                    "min_doc_count": 1,
                    "missing": null,
                    "order": "desc",
                    "orderBy": "1",
                    "size": "0"
                  },
                  "type": "terms"
                },
                {
                  "fake": true,
                  "field": "postfix_from.keyword",
                  "id": "6",
                  "settings": {
                    "min_doc_count": 1,
                    "missing": null,
                    "order": "desc",
                    "orderBy": "1",
                    "size": "0"
                  },
                  "type": "terms"
                },
                {
                  "field": "@timestamp",
                  "id": "2",
                  "settings": {
                    "interval": "auto",
                    "min_doc_count": 1,
                    "trimEdges": 0
                  },
                  "type": "date_histogram"
                }
              ],
              "dsType": "elasticsearch",
              "groupBy": [
                {
                  "params": [
                    "$interval"
                  ],
                  "type": "time"
                },
                {
                  "params": [
                    "null"
                  ],
                  "type": "fill"
                }
              ],
              "metrics": [
                {
                  "field": "postfix_queueid.keyword",
                  "id": "1",
                  "meta": {},
                  "settings": {
                    "missing": null
                  },
                  "type": "cardinality"
                }
              ],
              "policy": "default",
              "query": "postfix_smtp_response.keyword:SASL*",
              "refId": "A",
              "resultFormat": "time_series",
              "select": [
                [
                  {
                    "params": [
                      "value"
                    ],
                    "type": "field"
                  },
                  {
                    "params": [],
                    "type": "mean"
                  }
                ]
              ],
              "tags": [],
              "timeField": "@timestamp"
            }
          ],
          "timeFrom": null,
          "timeShift": null,
          "title": "SASL Authentication Errors",
          "transform": "timeseries_to_rows",
          "type": "table"
        }
      ],
      "title": "Log Entry Summaries",
      "type": "row"
    },
    {
      "collapsed": true,
      "datasource": null,
      "gridPos": {
        "h": 1,
        "w": 24,
        "x": 0,
        "y": 77
      },
      "id": 38,
      "panels": [
        {
          "columns": [
            {
              "text": "@timestamp",
              "value": "@timestamp"
            },
            {
              "text": "postfix_from",
              "value": "postfix_from"
            },
            {
              "text": "postfix_to",
              "value": "postfix_to"
            },
            {
              "text": "postfix_queueid",
              "value": "postfix_queueid"
            },
            {
              "text": "postfix_status",
              "value": "postfix_status"
            },
            {
              "text": "postfix_dsn",
              "value": "postfix_dsn"
            },
            {
              "text": "postfix_relay_hostname",
              "value": "postfix_relay_hostname"
            },
            {
              "text": "postfix_smtp_response",
              "value": "postfix_smtp_response"
            },
            {
              "text": "postfix_size",
              "value": "postfix_size"
            }
          ],
          "datasource": "${DS_ELASTICSEARCH-POSTFIX}",
          "fontSize": "100%",
          "gridPos": {
            "h": 15,
            "w": 24,
            "x": 0,
            "y": 153
          },
          "height": "500",
          "id": 33,
          "interval": "",
          "links": [],
          "options": {},
          "pageSize": 10,
          "scroll": true,
          "showHeader": true,
          "sort": {
            "col": null,
            "desc": false
          },
          "styles": [
            {
              "alias": "Time",
              "align": "auto",
              "dateFormat": "YYYY-MM-DD HH:mm:ss",
              "pattern": "/@time.*/",
              "type": "date"
            },
            {
              "alias": "From",
              "align": "auto",
              "colorMode": null,
              "colors": [
                "rgba(245, 54, 54, 0.9)",
                "rgba(237, 129, 40, 0.89)",
                "rgba(50, 172, 45, 0.97)"
              ],
              "dateFormat": "YYYY-MM-DD HH:mm:ss",
              "decimals": 2,
              "link": false,
              "mappingType": 1,
              "pattern": "postfix_from",
              "thresholds": [],
              "type": "string",
              "unit": "short"
            },
            {
              "alias": "To",
              "align": "auto",
              "colorMode": null,
              "colors": [
                "rgba(245, 54, 54, 0.9)",
                "rgba(237, 129, 40, 0.89)",
                "rgba(50, 172, 45, 0.97)"
              ],
              "dateFormat": "YYYY-MM-DD HH:mm:ss",
              "decimals": 2,
              "mappingType": 1,
              "pattern": "postfix_to",
              "preserveFormat": false,
              "thresholds": [],
              "type": "string",
              "unit": "short"
            },
            {
              "alias": "Size",
              "align": "auto",
              "colorMode": null,
              "colors": [
                "rgba(245, 54, 54, 0.9)",
                "rgba(237, 129, 40, 0.89)",
                "rgba(50, 172, 45, 0.97)"
              ],
              "dateFormat": "YYYY-MM-DD HH:mm:ss",
              "decimals": 2,
              "mappingType": 1,
              "pattern": "postfix_size",
              "thresholds": [],
              "type": "number",
              "unit": "deckbytes"
            },
            {
              "alias": "Queue ID",
              "align": "auto",
              "colorMode": null,
              "colors": [
                "rgba(245, 54, 54, 0.9)",
                "rgba(237, 129, 40, 0.89)",
                "rgba(50, 172, 45, 0.97)"
              ],
              "dateFormat": "YYYY-MM-DD HH:mm:ss",
              "decimals": 2,
              "mappingType": 1,
              "pattern": "postfix_queueid",
              "thresholds": [],
              "type": "string",
              "unit": "short"
            },
            {
              "alias": "Status",
              "align": "auto",
              "colorMode": null,
              "colors": [
                "rgba(245, 54, 54, 0.9)",
                "rgba(237, 129, 40, 0.89)",
                "rgba(50, 172, 45, 0.97)"
              ],
              "dateFormat": "YYYY-MM-DD HH:mm:ss",
              "decimals": 2,
              "mappingType": 1,
              "pattern": "postfix_status",
              "thresholds": [],
              "type": "string",
              "unit": "short"
            },
            {
              "alias": "Recipient Server",
              "align": "auto",
              "colorMode": null,
              "colors": [
                "rgba(245, 54, 54, 0.9)",
                "rgba(237, 129, 40, 0.89)",
                "rgba(50, 172, 45, 0.97)"
              ],
              "dateFormat": "YYYY-MM-DD HH:mm:ss",
              "decimals": 2,
              "mappingType": 1,
              "pattern": "postfix_relay_hostname",
              "thresholds": [],
              "type": "string",
              "unit": "short"
            },
            {
              "alias": "Recipient Server Response",
              "align": "auto",
              "colorMode": null,
              "colors": [
                "rgba(245, 54, 54, 0.9)",
                "rgba(237, 129, 40, 0.89)",
                "rgba(50, 172, 45, 0.97)"
              ],
              "dateFormat": "YYYY-MM-DD HH:mm:ss",
              "decimals": 2,
              "mappingType": 1,
              "pattern": "postfix_smtp_response",
              "thresholds": [],
              "type": "string",
              "unit": "short"
            },
            {
              "alias": "DSN",
              "align": "auto",
              "colorMode": null,
              "colors": [
                "rgba(245, 54, 54, 0.9)",
                "rgba(237, 129, 40, 0.89)",
                "rgba(50, 172, 45, 0.97)"
              ],
              "dateFormat": "YYYY-MM-DD HH:mm:ss",
              "decimals": 2,
              "mappingType": 1,
              "pattern": "postfix_dsn",
              "thresholds": [],
              "type": "number",
              "unit": "decbytes"
            },
            {
              "alias": "Delay",
              "align": "auto",
              "colorMode": null,
              "colors": [
                "rgba(245, 54, 54, 0.9)",
                "rgba(237, 129, 40, 0.89)",
                "rgba(50, 172, 45, 0.97)"
              ],
              "dateFormat": "YYYY-MM-DD HH:mm:ss",
              "decimals": 2,
              "mappingType": 1,
              "pattern": "postfix_delay_transmission",
              "thresholds": [],
              "type": "number",
              "unit": "s"
            },
            {
              "alias": "",
              "align": "auto",
              "colorMode": null,
              "colors": [
                "rgba(245, 54, 54, 0.9)",
                "rgba(237, 129, 40, 0.89)",
                "rgba(50, 172, 45, 0.97)"
              ],
              "decimals": 2,
              "pattern": "/.*/",
              "thresholds": [],
              "type": "number",
              "unit": "short"
            }
          ],
          "targets": [
            {
              "bucketAggs": [],
              "dsType": "elasticsearch",
              "metrics": [
                {
                  "field": "select field",
                  "id": "1",
                  "meta": {},
                  "settings": {
                    "size": 1000
                  },
                  "type": "raw_document"
                }
              ],
              "query": "program.keyword:\"postfix/smtp\" AND _exists_:postfix_from.keyword AND _exists_:postfix_to.keyword AND _exists_:postfix_status.keyword",
              "refId": "A",
              "timeField": "@timestamp"
            }
          ],
          "title": "Email Status Logs",
          "transform": "json",
          "transparent": true,
          "type": "table"
        },
        {
          "columns": [
            {
              "text": "@timestamp",
              "value": "@timestamp"
            },
            {
              "text": "postfix_queueid",
              "value": "postfix_queueid"
            },
            {
              "text": "postfix_dkim_domain",
              "value": "postfix_dkim_domain"
            },
            {
              "text": "postfix_dkim_message",
              "value": "postfix_dkim_message"
            },
            {
              "text": "postfix_dkim_sig",
              "value": "postfix_dkim_sig"
            }
          ],
          "datasource": "${DS_ELASTICSEARCH-POSTFIX}",
          "fontSize": "100%",
          "gridPos": {
            "h": 8,
            "w": 24,
            "x": 0,
            "y": 168
          },
          "height": "500",
          "id": 73,
          "links": [],
          "options": {},
          "pageSize": 10,
          "scroll": true,
          "showHeader": true,
          "sort": {
            "col": 0,
            "desc": true
          },
          "styles": [
            {
              "alias": "Time",
              "align": "auto",
              "dateFormat": "YYYY-MM-DD HH:mm:ss",
              "pattern": "/@time.*/",
              "type": "date"
            },
            {
              "alias": "From",
              "align": "auto",
              "colorMode": null,
              "colors": [
                "rgba(245, 54, 54, 0.9)",
                "rgba(237, 129, 40, 0.89)",
                "rgba(50, 172, 45, 0.97)"
              ],
              "dateFormat": "YYYY-MM-DD HH:mm:ss",
              "decimals": 2,
              "link": false,
              "mappingType": 1,
              "pattern": "postfix_from",
              "thresholds": [],
              "type": "string",
              "unit": "short"
            },
            {
              "alias": "To",
              "align": "auto",
              "colorMode": null,
              "colors": [
                "rgba(245, 54, 54, 0.9)",
                "rgba(237, 129, 40, 0.89)",
                "rgba(50, 172, 45, 0.97)"
              ],
              "dateFormat": "YYYY-MM-DD HH:mm:ss",
              "decimals": 2,
              "mappingType": 1,
              "pattern": "postfix_to",
              "preserveFormat": false,
              "thresholds": [],
              "type": "string",
              "unit": "short"
            },
            {
              "alias": "Rcpt_Count",
              "align": "auto",
              "colorMode": null,
              "colors": [
                "rgba(245, 54, 54, 0.9)",
                "rgba(237, 129, 40, 0.89)",
                "rgba(50, 172, 45, 0.97)"
              ],
              "dateFormat": "YYYY-MM-DD HH:mm:ss",
              "decimals": 0,
              "mappingType": 1,
              "pattern": "postfix_nrcpt",
              "thresholds": [],
              "type": "number",
              "unit": "short"
            },
            {
              "alias": "Queue ID",
              "align": "auto",
              "colorMode": null,
              "colors": [
                "rgba(245, 54, 54, 0.9)",
                "rgba(237, 129, 40, 0.89)",
                "rgba(50, 172, 45, 0.97)"
              ],
              "dateFormat": "YYYY-MM-DD HH:mm:ss",
              "decimals": 2,
              "mappingType": 1,
              "pattern": "postfix_queueid",
              "thresholds": [],
              "type": "string",
              "unit": "short"
            },
            {
              "alias": "Status",
              "align": "auto",
              "colorMode": null,
              "colors": [
                "rgba(245, 54, 54, 0.9)",
                "rgba(237, 129, 40, 0.89)",
                "rgba(50, 172, 45, 0.97)"
              ],
              "dateFormat": "YYYY-MM-DD HH:mm:ss",
              "decimals": 2,
              "mappingType": 1,
              "pattern": "postfix_status",
              "thresholds": [],
              "type": "string",
              "unit": "short"
            },
            {
              "alias": "Recipient Server",
              "align": "auto",
              "colorMode": null,
              "colors": [
                "rgba(245, 54, 54, 0.9)",
                "rgba(237, 129, 40, 0.89)",
                "rgba(50, 172, 45, 0.97)"
              ],
              "dateFormat": "YYYY-MM-DD HH:mm:ss",
              "decimals": 2,
              "mappingType": 1,
              "pattern": "postfix_relay_hostname",
              "thresholds": [],
              "type": "string",
              "unit": "short"
            },
            {
              "alias": "Recipient Server Response",
              "align": "auto",
              "colorMode": null,
              "colors": [
                "rgba(245, 54, 54, 0.9)",
                "rgba(237, 129, 40, 0.89)",
                "rgba(50, 172, 45, 0.97)"
              ],
              "dateFormat": "YYYY-MM-DD HH:mm:ss",
              "decimals": 2,
              "mappingType": 1,
              "pattern": "postfix_smtp_response",
              "thresholds": [],
              "type": "string",
              "unit": "short"
            },
            {
              "alias": "Size",
              "align": "auto",
              "colorMode": null,
              "colors": [
                "rgba(245, 54, 54, 0.9)",
                "rgba(237, 129, 40, 0.89)",
                "rgba(50, 172, 45, 0.97)"
              ],
              "dateFormat": "YYYY-MM-DD HH:mm:ss",
              "decimals": 2,
              "mappingType": 1,
              "pattern": "postfix_size",
              "thresholds": [],
              "type": "number",
              "unit": "bytes"
            },
            {
              "alias": "Delay",
              "align": "auto",
              "colorMode": null,
              "colors": [
                "rgba(245, 54, 54, 0.9)",
                "rgba(237, 129, 40, 0.89)",
                "rgba(50, 172, 45, 0.97)"
              ],
              "dateFormat": "YYYY-MM-DD HH:mm:ss",
              "decimals": 2,
              "mappingType": 1,
              "pattern": "postfix_delay_transmission",
              "thresholds": [],
              "type": "number",
              "unit": "s"
            },
            {
              "alias": "",
              "align": "auto",
              "colorMode": null,
              "colors": [
                "rgba(245, 54, 54, 0.9)",
                "rgba(237, 129, 40, 0.89)",
                "rgba(50, 172, 45, 0.97)"
              ],
              "decimals": 2,
              "pattern": "/.*/",
              "thresholds": [],
              "type": "number",
              "unit": "short"
            }
          ],
          "targets": [
            {
              "bucketAggs": [],
              "dsType": "elasticsearch",
              "metrics": [
                {
                  "field": "select field",
                  "id": "1",
                  "meta": {},
                  "settings": {
                    "size": 1000
                  },
                  "type": "raw_document"
                }
              ],
              "query": "program.keyword:\"opendkim\"",
              "refId": "A",
              "timeField": "@timestamp"
            }
          ],
          "title": "OpenDKIM Logs",
          "transform": "json",
          "transparent": true,
          "type": "table"
        },
        {
          "columns": [
            {
              "text": "@timestamp",
              "value": "@timestamp"
            },
            {
              "text": "postfix_from",
              "value": "postfix_from"
            },
            {
              "text": "postfix_to",
              "value": "postfix_to"
            },
            {
              "text": "postfix_queueid",
              "value": "postfix_queueid"
            },
            {
              "text": "postfix_delay_transmission",
              "value": "postfix_delay_transmission"
            },
            {
              "text": "program",
              "value": "program"
            },
            {
              "text": "postfix_status",
              "value": "postfix_status"
            },
            {
              "text": "postfix_dsn",
              "value": "postfix_dsn"
            },
            {
              "text": "postfix_relay_hostname",
              "value": "postfix_relay_hostname"
            },
            {
              "text": "postfix_smtp_response",
              "value": "postfix_smtp_response"
            },
            {
              "text": "postfix_size",
              "value": "postfix_size"
            }
          ],
          "datasource": "${DS_ELASTICSEARCH-POSTFIX}",
          "fontSize": "100%",
          "gridPos": {
            "h": 13,
            "w": 24,
            "x": 0,
            "y": 176
          },
          "height": "500",
          "id": 65,
          "links": [],
          "options": {},
          "pageSize": 10,
          "scroll": true,
          "showHeader": true,
          "sort": {
            "col": 0,
            "desc": true
          },
          "styles": [
            {
              "alias": "Time",
              "align": "auto",
              "dateFormat": "YYYY-MM-DD HH:mm:ss",
              "pattern": "/@time.*/",
              "type": "date"
            },
            {
              "alias": "From",
              "align": "auto",
              "colorMode": null,
              "colors": [
                "rgba(245, 54, 54, 0.9)",
                "rgba(237, 129, 40, 0.89)",
                "rgba(50, 172, 45, 0.97)"
              ],
              "dateFormat": "YYYY-MM-DD HH:mm:ss",
              "decimals": 2,
              "link": false,
              "mappingType": 1,
              "pattern": "postfix_from",
              "thresholds": [],
              "type": "string",
              "unit": "short"
            },
            {
              "alias": "To",
              "align": "auto",
              "colorMode": null,
              "colors": [
                "rgba(245, 54, 54, 0.9)",
                "rgba(237, 129, 40, 0.89)",
                "rgba(50, 172, 45, 0.97)"
              ],
              "dateFormat": "YYYY-MM-DD HH:mm:ss",
              "decimals": 2,
              "mappingType": 1,
              "pattern": "postfix_to",
              "preserveFormat": false,
              "thresholds": [],
              "type": "string",
              "unit": "short"
            },
            {
              "alias": "Rcpt_Count",
              "align": "auto",
              "colorMode": null,
              "colors": [
                "rgba(245, 54, 54, 0.9)",
                "rgba(237, 129, 40, 0.89)",
                "rgba(50, 172, 45, 0.97)"
              ],
              "dateFormat": "YYYY-MM-DD HH:mm:ss",
              "decimals": 0,
              "mappingType": 1,
              "pattern": "postfix_nrcpt",
              "thresholds": [],
              "type": "number",
              "unit": "short"
            },
            {
              "alias": "Queue ID",
              "align": "auto",
              "colorMode": null,
              "colors": [
                "rgba(245, 54, 54, 0.9)",
                "rgba(237, 129, 40, 0.89)",
                "rgba(50, 172, 45, 0.97)"
              ],
              "dateFormat": "YYYY-MM-DD HH:mm:ss",
              "decimals": 2,
              "mappingType": 1,
              "pattern": "postfix_queueid",
              "thresholds": [],
              "type": "string",
              "unit": "short"
            },
            {
              "alias": "Status",
              "align": "auto",
              "colorMode": null,
              "colors": [
                "rgba(245, 54, 54, 0.9)",
                "rgba(237, 129, 40, 0.89)",
                "rgba(50, 172, 45, 0.97)"
              ],
              "dateFormat": "YYYY-MM-DD HH:mm:ss",
              "decimals": 2,
              "mappingType": 1,
              "pattern": "postfix_status",
              "thresholds": [],
              "type": "string",
              "unit": "short"
            },
            {
              "alias": "Recipient Server",
              "align": "auto",
              "colorMode": null,
              "colors": [
                "rgba(245, 54, 54, 0.9)",
                "rgba(237, 129, 40, 0.89)",
                "rgba(50, 172, 45, 0.97)"
              ],
              "dateFormat": "YYYY-MM-DD HH:mm:ss",
              "decimals": 2,
              "mappingType": 1,
              "pattern": "postfix_relay_hostname",
              "thresholds": [],
              "type": "string",
              "unit": "short"
            },
            {
              "alias": "Recipient Server Response",
              "align": "auto",
              "colorMode": null,
              "colors": [
                "rgba(245, 54, 54, 0.9)",
                "rgba(237, 129, 40, 0.89)",
                "rgba(50, 172, 45, 0.97)"
              ],
              "dateFormat": "YYYY-MM-DD HH:mm:ss",
              "decimals": 2,
              "mappingType": 1,
              "pattern": "postfix_smtp_response",
              "thresholds": [],
              "type": "string",
              "unit": "short"
            },
            {
              "alias": "Size",
              "align": "auto",
              "colorMode": null,
              "colors": [
                "rgba(245, 54, 54, 0.9)",
                "rgba(237, 129, 40, 0.89)",
                "rgba(50, 172, 45, 0.97)"
              ],
              "dateFormat": "YYYY-MM-DD HH:mm:ss",
              "decimals": 2,
              "mappingType": 1,
              "pattern": "postfix_size",
              "thresholds": [],
              "type": "number",
              "unit": "decbytes"
            },
            {
              "alias": "Delay",
              "align": "auto",
              "colorMode": null,
              "colors": [
                "rgba(245, 54, 54, 0.9)",
                "rgba(237, 129, 40, 0.89)",
                "rgba(50, 172, 45, 0.97)"
              ],
              "dateFormat": "YYYY-MM-DD HH:mm:ss",
              "decimals": 2,
              "mappingType": 1,
              "pattern": "postfix_delay_transmission",
              "thresholds": [],
              "type": "number",
              "unit": "s"
            },
            {
              "alias": "",
              "align": "auto",
              "colorMode": null,
              "colors": [
                "rgba(245, 54, 54, 0.9)",
                "rgba(237, 129, 40, 0.89)",
                "rgba(50, 172, 45, 0.97)"
              ],
              "decimals": 2,
              "pattern": "/.*/",
              "thresholds": [],
              "type": "number",
              "unit": "short"
            }
          ],
          "targets": [
            {
              "bucketAggs": [],
              "dsType": "elasticsearch",
              "metrics": [
                {
                  "field": "select field",
                  "id": "1",
                  "meta": {},
                  "settings": {
                    "size": 1000
                  },
                  "type": "raw_document"
                }
              ],
              "query": "program.keyword:postfix\\/*",
              "refId": "A",
              "timeField": "@timestamp"
            }
          ],
          "title": "Verbose Logs",
          "transform": "json",
          "transparent": true,
          "type": "table"
        }
      ],
      "repeat": null,
      "title": "Log Explorer",
      "type": "row"
    }
  ],
  "refresh": false,
  "schemaVersion": 22,
  "style": "dark",
  "tags": [
    "ElasticSearch",
    "Azure",
    "Postfix",
    "SMTP",
    "Email"
  ],
  "templating": {
    "list": [
      {
        "allValue": null,
        "current": {},
        "datasource": "${DS_ELASTICSEARCH-POSTFIX}",
        "definition": "{\"find\":\"terms\",\"field\":\"program.keyword\"}",
        "hide": 2,
        "includeAll": true,
        "label": "program",
        "multi": true,
        "name": "program",
        "options": [],
        "query": "{\"find\":\"terms\",\"field\":\"program.keyword\"}",
        "refresh": 1,
        "regex": "/.*postfix.*|.*opendkim.*/",
        "skipUrlSync": false,
        "sort": 1,
        "tagValuesQuery": "",
        "tags": [],
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      },
      {
        "allValue": null,
        "current": {},
        "datasource": "${DS_ELASTICSEARCH-POSTFIX}",
        "definition": "{\"find\":\"terms\",\"field\":\"host.name.keyword\",\"query\":\"$program\"}",
        "hide": 0,
        "includeAll": true,
        "label": "Host",
        "multi": true,
        "name": "host",
        "options": [],
        "query": "{\"find\":\"terms\",\"field\":\"host.name.keyword\",\"query\":\"$program\"}",
        "refresh": 1,
        "regex": "",
        "skipUrlSync": false,
        "sort": 1,
        "tagValuesQuery": "",
        "tags": [],
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      },
      {
        "auto": true,
        "auto_count": 100,
        "auto_min": "10s",
        "current": {
          "selected": false,
          "text": "auto",
          "value": "$__auto_interval_inter"
        },
        "datasource": null,
        "hide": 2,
        "includeAll": false,
        "label": "Interval",
        "multi": false,
        "name": "inter",
        "options": [
          {
            "selected": true,
            "text": "auto",
            "value": "$__auto_interval_inter"
          },
          {
            "selected": false,
            "text": "1s",
            "value": "1s"
          },
          {
            "selected": false,
            "text": "5s",
            "value": "5s"
          },
          {
            "selected": false,
            "text": "10s",
            "value": "10s"
          },
          {
            "selected": false,
            "text": "30s",
            "value": "30s"
          },
          {
            "selected": false,
            "text": "1m",
            "value": "1m"
          },
          {
            "selected": false,
            "text": "10m",
            "value": "10m"
          },
          {
            "selected": false,
            "text": "30m",
            "value": "30m"
          },
          {
            "selected": false,
            "text": "1h",
            "value": "1h"
          },
          {
            "selected": false,
            "text": "6h",
            "value": "6h"
          },
          {
            "selected": false,
            "text": "12h",
            "value": "12h"
          },
          {
            "selected": false,
            "text": "1d",
            "value": "1d"
          },
          {
            "selected": false,
            "text": "7d",
            "value": "7d"
          },
          {
            "selected": false,
            "text": "14d",
            "value": "14d"
          },
          {
            "selected": false,
            "text": "30d",
            "value": "30d"
          }
        ],
        "query": "1s,5s,10s,30s,1m,10m,30m,1h,6h,12h,1d,7d,14d,30d",
        "refresh": 2,
        "skipUrlSync": false,
        "type": "interval"
      },
      {
        "datasource": "Elasticsearch",
        "filters": [],
        "hide": 0,
        "label": "",
        "name": "Filters",
        "skipUrlSync": false,
        "type": "adhoc"
      }
    ]
  },
  "time": {
    "from": "now-3h",
    "to": "now"
  },
  "timepicker": {
    "refresh_intervals": [
      "5s",
      "10s",
      "30s",
      "1m",
      "5m",
      "15m",
      "30m",
      "1h",
      "2h",
      "1d"
    ],
    "time_options": [
      "5m",
      "15m",
      "1h",
      "6h",
      "12h",
      "24h",
      "2d",
      "7d",
      "30d"
    ]
  },
  "timezone": "browser",
  "title": "Postfix SMTP Email + OpenDKIM",
  "uid": "ixKFaoBik",
  "version": 212
}