--- title: "Email Settings Module Documentation" description: "Documentation for Email Settings" --- ## Table of Contents 1. [Navigation & Access](#navigation--access) 2. [Screenshots & Visual Interface](#screenshots--visual-interface) 3. [🎯 User Roles & Key Capabilities](#-user-roles--key-capabilities) 4. [Module Overview (Technical)](#1-module-overview-technical) 5. [Module Overview (Commercial/Business)](#2-module-overview-commercialbusiness) 6. [Module Overview (End User/Administrator)](#3-module-overview-end-useradministrator) 7. [Configuration Sections](#4-configuration-sections) 8. [Settings Reference](#5-settings-reference) 9. [Common Scenarios & Examples](#6-common-scenarios--examples) 10. [Model Context Protocol (MCP) AI Integration](#model-context-protocol-mcp-ai-integration) 11. [Limitations & Important Notes](#7-limitations--important-notes) 12. [Troubleshooting Tips](#8-troubleshooting-tips) 13. [Glossary](#9-glossary) --- ## Navigation & Access To access the Email Settings module: 1. Log in to the Ring2All Web Portal (`https:///login`). 2. In the left navigation sidebar, expand **Admin**. 3. Under **System Settings**, click **Email Settings** (`/admin/system-settings/email`). 4. To configure a new outgoing SMTP server profile, click the **+ Add Email Config** button. 5. To view, edit, duplicate, or send a test email through an existing profile, click on the configuration row or action icons (`/admin/system-settings/email/:id`). --- ## Screenshots & Visual Interface ### Email Settings List View The Email Settings interface lists all registered SMTP gateway profiles (Amazon SES, SendGrid, Mailgun, Postfix) with their hostname, port, security protocol (SSL/TLS), default sender email, active status, and interactive test delivery button. ![Email Settings List](/screenshots/admin/system/email-settings-list.png) ### Email Configuration Form The email server editor provides fine-grained settings to specify SMTP server credentials, authentication methods (Login, Plain, OAuth2), socket timeout values, default fallback sender address, and tenant isolation scopes. ![Email Configuration Form](/screenshots/admin/system/email-settings-form.png) --- ## 🎯 User Roles & Key Capabilities The Email Settings module configures critical notification delivery pipelines for voicemail, faxes, and security alerts: | Role | Key Capabilities & Operational Scope | |------|--------------------------------------| | **Super Administrator** | Configures global outbound SMTP gateways (e.g. Amazon SES, SendGrid, Postfix relay), manages TLS certificates, and sets default sender addresses. | | **Tenant Administrator** | Establishes company-specific SMTP credentials so notifications (voicemail-to-email, missed calls) originate from the client's own corporate domain. | | **Security & Compliance Officer** | Audits SMTP encryption protocols (enforcing TLS/SSL), validates authentication methods, and inspects delivery logs for unauthorized relays. | | **Telephony Auditor (Read-Only)** | Reviews active SMTP hostnames, security encryption ports, and default sender addresses with credentials securely redacted. | --- ## 1. Module Overview (Technical) ### What Are Email Settings? Email Settings is an **SMTP configuration module** that manages outgoing email server profiles. It supports multiple SMTP configurations with authentication, encryption (SSL/TLS), and includes test functionality and email delivery logs. ### Architecture ``` β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚ Email Settings Architecture β”‚ β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€ β”‚ β”‚ β”‚ Email Configuration Profiles β”‚ β”‚ β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚ β”‚ β”‚ Profile: Company SMTP β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ Basic Settings: β”‚ β”‚ β”‚ β”‚ β”œβ”€ Host: smtp.company.com β”‚ β”‚ β”‚ β”‚ β”œβ”€ Port: 587 β”‚ β”‚ β”‚ β”‚ └─ TLS: Enabled β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ Authentication: β”‚ β”‚ β”‚ β”‚ β”œβ”€ Method: Login β”‚ β”‚ β”‚ β”‚ β”œβ”€ Username: noreply@company.com β”‚ β”‚ β”‚ β”‚ └─ Password: ******** β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ Email Settings: β”‚ β”‚ β”‚ β”‚ β”œβ”€ From Email: noreply@company.com β”‚ β”‚ β”‚ β”‚ β”œβ”€ From Name: Company PBX β”‚ β”‚ β”‚ β”‚ └─ Reply To: support@company.com β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ Status: βœ“ Active, ⭐ Default β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β”‚ β”‚ β”‚ β”‚ β”‚ β–Ό Used by system β”‚ β”‚ β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚ β”‚ β”‚ Email Sender Service β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ Sends emails for: β”‚ β”‚ β”‚ β”‚ β”œβ”€ Voicemail notifications β”‚ β”‚ β”‚ β”‚ β”œβ”€ Fax-to-email β”‚ β”‚ β”‚ β”‚ β”œβ”€ System alerts β”‚ β”‚ β”‚ β”‚ β”œβ”€ Password resets β”‚ β”‚ β”‚ β”‚ └─ User notifications β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β”‚ β”‚ β”‚ β”‚ β”‚ β–Ό Logged β”‚ β”‚ β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚ β”‚ β”‚ Email Logs β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”œβ”€ Pending β”‚ β”‚ β”‚ β”‚ β”œβ”€ Sent β”‚ β”‚ β”‚ β”‚ β”œβ”€ Failed β”‚ β”‚ β”‚ β”‚ └─ Bounced β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β”‚ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β”‚ β”‚ β”‚ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ ``` --- ## 2. Module Overview (Commercial/Business) ### Business Value Email Settings provides **reliable email delivery**: | Without Email Settings | With Email Settings | |------------------------|---------------------| | No notifications | Email alerts | | No voicemail email | VM to email | | No fax delivery | Fax to email | | Unknown status | Delivery logs | ### Use Cases 1. **Voicemail Notifications** - Email new voicemails - Audio attachments 2. **System Alerts** - Storage warnings - CPU alerts - Security notifications 3. **Fax to Email** - Receive faxes as PDF - Email delivery 4. **User Notifications** - Password resets - Account alerts ### Feature Highlights | Feature | Benefit | |---------|---------| | **Multiple Profiles** | Different SMTP servers | | **SSL/TLS** | Secure transmission | | **Authentication** | Login, Plain, OAuth2 | | **Test Function** | Verify before use | | **Email Logs** | Delivery tracking | | **Default Profile** | Fallback configuration | --- ## 3. Module Overview (End User/Administrator) ### What Can You Do? - Create SMTP server configurations - Set encryption (SSL/TLS) - Configure authentication - Set sender information - Test email delivery - View email logs - Set default profile ### Email Settings Interface ``` β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚ Email Settings β”‚ β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€ β”‚ β”‚ β”‚ Configure email server settings for system notifications β”‚ β”‚ β”‚ β”‚ [+ Add Configuration] β”‚ β”‚ β”‚ β”‚ β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚ β”‚ β”‚ Profile Name β”‚ Host β”‚ Status β”‚ Default β”‚ β”‚ β”‚ β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€ β”‚ β”‚ β”‚ Gmail SMTP β”‚ smtp.gmail.com β”‚ ● Active β”‚ ⭐ β”‚ β”‚ β”‚ β”‚ SendGrid β”‚ smtp.sendgrid.net β”‚ ● Active β”‚ β”‚ β”‚ β”‚ β”‚ Office365 β”‚ smtp.office365.comβ”‚ β—‹ Inactiveβ”‚ β”‚ β”‚ β”‚ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β”‚ β”‚ β”‚ β”‚ [πŸ“‹ View Logs] β”‚ β”‚ β”‚ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ ``` ### Add/Edit Configuration ``` β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚ Edit Configuration: Gmail SMTP β”‚ β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€ β”‚ β”‚ β”‚ β–Ό Basic Settings β”‚ β”‚ β”‚ β”‚ Profile Name: [Gmail SMTP ] β”‚ β”‚ Friendly name for this email configuration β”‚ β”‚ β”‚ β”‚ SMTP Host: [smtp.gmail.com ] β”‚ β”‚ SMTP server hostname or IP address β”‚ β”‚ β”‚ β”‚ Port: [587 ] β”‚ β”‚ 587 for TLS, 465 for SSL, 25 for plain β”‚ β”‚ β”‚ β”‚ Use SSL Encryption: ☐ β”‚ β”‚ Use SSL encryption (port 465) β”‚ β”‚ β”‚ β”‚ Use TLS: βœ“ β”‚ β”‚ Use STARTTLS encryption (port 587) β”‚ β”‚ β”‚ β”‚ ──────────────────────────────────────────────────────────────│ β”‚ β”‚ β”‚ β–Ό Authentication β”‚ β”‚ β”‚ β”‚ Auth Method: [Login β–Ό] β”‚ β”‚ None | Login | Plain | OAuth2 β”‚ β”‚ β”‚ β”‚ Username: [noreply@company.com ] β”‚ β”‚ Account username or email address β”‚ β”‚ β”‚ β”‚ Password: [β€’β€’β€’β€’β€’β€’β€’β€’β€’β€’β€’β€’β€’β€’β€’β€’ ] β”‚ β”‚ Password or app-specific password β”‚ β”‚ β”‚ β”‚ ──────────────────────────────────────────────────────────────│ β”‚ β”‚ β”‚ β–Ό Email Settings β”‚ β”‚ β”‚ β”‚ From Email: [noreply@company.com ] β”‚ β”‚ The email address that appears as sender β”‚ β”‚ β”‚ β”‚ From Name: [Company PBX ] β”‚ β”‚ The name displayed as the sender β”‚ β”‚ β”‚ β”‚ Reply To: [support@company.com ] β”‚ β”‚ Where replies should be directed β”‚ β”‚ β”‚ β”‚ ──────────────────────────────────────────────────────────────│ β”‚ β”‚ β”‚ β–Ό Advanced Settings β”‚ β”‚ β”‚ β”‚ Connection Timeout: [60000 ] ms β”‚ β”‚ Greeting Timeout: [30000 ] ms β”‚ β”‚ Socket Timeout: [60000 ] ms β”‚ β”‚ β”‚ β”‚ ──────────────────────────────────────────────────────────────│ β”‚ β”‚ β”‚ β–Ό Status Settings β”‚ β”‚ β”‚ β”‚ Enable Profile: βœ“ β”‚ β”‚ Enable this configuration for sending emails β”‚ β”‚ β”‚ β”‚ Set as Default: βœ“ β”‚ β”‚ Use this as the default configuration β”‚ β”‚ β”‚ β”‚ [Test Configuration] [Save] [Cancel] β”‚ β”‚ β”‚ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ ``` ### Test Configuration ``` β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚ Test Email Configuration β”‚ β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€ β”‚ β”‚ β”‚ Enter an email address to send a test message β”‚ β”‚ β”‚ β”‚ Test Email Address: [admin@company.com ] β”‚ β”‚ β”‚ β”‚ [Send Test] β”‚ β”‚ β”‚ β”‚ βœ“ Test Successful β”‚ β”‚ Test email sent successfully β”‚ β”‚ β”‚ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ ``` ### Email Logs ``` β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚ Email Logs β”‚ β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€ β”‚ β”‚ β”‚ View email sending history and status β”‚ β”‚ β”‚ β”‚ Filters: β”‚ β”‚ Status: [All statuses β–Ό] From: [ ] To: [ ] β”‚ β”‚ β”‚ β”‚ [πŸ” Search logs...] β”‚ β”‚ β”‚ β”‚ β”Œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β” β”‚ β”‚ β”‚ Date β”‚ To β”‚ Subject β”‚ Status β”‚ β”‚ β”‚ β”œβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”Όβ”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€ β”‚ β”‚ β”‚ 2025-01-16 β”‚ user@company.com β”‚ New Voicemailβ”‚ ● Sent β”‚ β”‚ β”‚ β”‚ 2025-01-16 β”‚ admin@company.com β”‚ System Alert β”‚ ● Sent β”‚ β”‚ β”‚ β”‚ 2025-01-15 β”‚ bad@invalid.com β”‚ Notification β”‚ βœ— Failed β”‚ β”‚ β”‚ β”‚ 2025-01-15 β”‚ user@company.com β”‚ Fax Received β”‚ ● Sent β”‚ β”‚ β”‚ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ β”‚ β”‚ β”‚ β””β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”€β”˜ ``` ### Quick Tips > [!TIP] > **Test Before Use**: Always test configuration before going live. > [!TIP] > **App Passwords**: Use app-specific passwords for Gmail/Office365. > [!NOTE] > **Password Storage**: Passwords are stored encrypted. --- ## 4. Configuration Sections ### Basic Settings | Field | Description | |-------|-------------| | **Profile Name** | Identifier | | **SMTP Host** | Server address | | **Port** | SMTP port | | **Use SSL** | SSL encryption (465) | | **Use TLS** | STARTTLS (587) | ### Authentication | Field | Description | |-------|-------------| | **Auth Method** | None, Login, Plain, OAuth2 | | **Username** | Login username | | **Password** | Login password | ### Email Settings | Field | Description | |-------|-------------| | **From Email** | Sender address | | **From Name** | Sender display name | | **Reply To** | Reply destination | ### Advanced Settings | Field | Description | |-------|-------------| | **Connection Timeout** | Connect wait (ms) | | **Greeting Timeout** | Server greeting wait (ms) | | **Socket Timeout** | Operation wait (ms) | ### Status Settings | Field | Description | |-------|-------------| | **Enable Profile** | Active/Inactive | | **Set as Default** | System default | --- ## 5. Settings Reference ### Common SMTP Servers | Provider | Host | Port | Encryption | |----------|------|------|------------| | Gmail | smtp.gmail.com | 587 | TLS | | Office 365 | smtp.office365.com | 587 | TLS | | SendGrid | smtp.sendgrid.net | 587 | TLS | | Amazon SES | email-smtp.{region}.amazonaws.com | 587 | TLS | | Mailgun | smtp.mailgun.org | 587 | TLS | ### Port Guide | Port | Encryption | Use Case | |------|------------|----------| | 25 | None | Legacy (not recommended) | | 465 | SSL | Implicit SSL | | 587 | TLS | STARTTLS (recommended) | | 2525 | TLS | Alternative TLS | ### Email Log Statuses | Status | Meaning | |--------|---------| | **Pending** | Queued for delivery | | **Sent** | Successfully delivered | | **Failed** | Delivery failed | | **Bounced** | Recipient rejected | --- ## 6. Common Scenarios & Examples ### Scenario 1: Gmail SMTP 1. Add Configuration 2. Name = "Gmail SMTP" 3. Host = smtp.gmail.com 4. Port = 587 5. Enable TLS 6. Auth = Login 7. Username = your@gmail.com 8. Password = App Password (not regular password) 9. Test and Save ### Scenario 2: Office 365 1. Add Configuration 2. Name = "Office365" 3. Host = smtp.office365.com 4. Port = 587 5. Enable TLS 6. Auth = Login 7. Use Microsoft account credentials 8. Test and Save ### Scenario 3: SendGrid 1. Add Configuration 2. Name = "SendGrid" 3. Host = smtp.sendgrid.net 4. Port = 587 5. Enable TLS 6. Auth = Login 7. Username = apikey 8. Password = SendGrid API Key 9. Test and Save ### Scenario 4: Multiple Profiles 1. Create primary SMTP (Gmail) 2. Set as Default 3. Create backup SMTP (SendGrid) 4. Keep as secondary 5. Both profiles available --- ## Model Context Protocol (MCP) AI Integration The Ring2All PBX platform provides Model Context Protocol (MCP) tools for inspecting outgoing SMTP server configurations and deliverability settings. ### MCP Tools Reference | Tool Name | Operation | Description | Risk Level | |-----------|-----------|-------------|------------| | `get_email_settings` | Read | Retrieves outgoing SMTP configuration (host, port, TLS security, sender address) with passwords redacted. | Low | ### JSON Schema Definitions #### `get_email_settings` ```json { "name": "get_email_settings", "description": "Retrieves outgoing SMTP email server configuration with passwords securely redacted.", "parameters": { "type": "object", "properties": {} } } ``` ### Natural Language Prompt Examples #### English - *"What SMTP host and port are configured for outgoing PBX notifications?"* - *"Check if TLS encryption is enabled on the outgoing mail server."* - *"What sender email address is used when dispatching voicemail-to-email notifications?"* #### Spanish - *"ΒΏCuΓ‘l es el servidor SMTP y puerto configurado para enviar correos?"* - *"Verifica si el servidor de correo saliente tiene habilitado cifrado TLS."* - *"Consulta la direcciΓ³n de remitente ('From') configurada para las alertas del sistema."* ### Enterprise Safeguards & Guardrails 1. **Password Redaction**: SMTP passwords and API secrets are strictly redacted and replaced with security masks (`[PROTECTED]`). 2. **Read-Only Inspection**: AI assistants can verify server readiness without exposing mail dispatch endpoints to unauthorized mass email spam. --- ## 7. Limitations & Important Notes ### Technical Notes > [!NOTE] > **App Passwords**: Gmail/Office365 require app-specific passwords. > [!NOTE] > **Rate Limits**: SMTP providers have sending limits. > [!WARNING] > **SPF/DKIM**: Configure DNS for best deliverability. ### Best Practices 1. **App Passwords**: Use for Gmail/Microsoft 2. **TLS**: Always use encryption 3. **Test First**: Verify before production 4. **Monitor Logs**: Check for failures 5. **Backup Profile**: Have secondary SMTP ### Gmail Requirements | Requirement | Action | |-------------|--------| | 2FA Enabled | Enable two-factor auth | | App Password | Generate app-specific password | | Less Secure Apps | Not needed with app passwords | --- ## 8. Troubleshooting Tips ### Common Issues | Symptom | Possible Cause | Solution | |---------|---------------|----------| | Connection timeout | Wrong host/port | Verify settings | | Auth failed | Wrong credentials | Check username/password | | TLS error | Wrong encryption | Match port to encryption | | Test fails | Firewall blocking | Check outbound port | ### Test SMTP Connection ```bash # Test port connectivity telnet smtp.gmail.com 587 # Test with OpenSSL openssl s_client -starttls smtp -connect smtp.gmail.com:587 ``` ### Check Logs ```sql SELECT recipient_email, subject, status, error_message, sent_at FROM public.email_logs ORDER BY sent_at DESC LIMIT 20; ``` --- ## 9. Glossary | Term | Definition | |------|------------| | **SMTP** | Simple Mail Transfer Protocol | | **TLS** | Transport Layer Security | | **SSL** | Secure Sockets Layer | | **STARTTLS** | TLS upgrade command | | **App Password** | Single-use app credential | | **SPF** | Sender Policy Framework | --- *Documentation last updated: January 2026*