feat: add verify_ssl option for SMTP connections#105
Merged
Wh1isper merged 4 commits intoai-zerolab:mainfrom Jan 19, 2026
Merged
feat: add verify_ssl option for SMTP connections#105Wh1isper merged 4 commits intoai-zerolab:mainfrom
Wh1isper merged 4 commits intoai-zerolab:mainfrom
Conversation
Add MCP_EMAIL_SERVER_SMTP_VERIFY_SSL environment variable to disable SSL certificate verification for SMTP connections. Useful for local mail servers with self-signed certificates (e.g., ProtonMail Bridge). Defaults to true (verify certificates). Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. 📢 Thoughts on this report? Let us know! |
- Add MCP_EMAIL_SERVER_SMTP_VERIFY_SSL to environment variables table - Add usage section for self-signed certificates (e.g., ProtonMail Bridge) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
for more information, see https://pre-commit.ci
- Add _create_smtp_ssl_context() module-level helper for creating permissive SSL context when verify_ssl=False - Add _get_smtp_ssl_context() method to EmailClient - Pass tls_context to aiosmtplib.SMTP in send_email() - Add tests for SSL context creation This enables the verify_ssl config option (added in ccb2c0b) to actually take effect when sending emails, allowing use of self-signed certificates like those from Proton Mail Bridge. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
jbkjr
pushed a commit
to jbkjr/mcp-email-server
that referenced
this pull request
Jan 25, 2026
Merged latest upstream changes including: - verify_ssl option for SMTP connections (PR ai-zerolab#105) - Batch fetch emails performance optimization (PR ai-zerolab#107) - Pre-commit updates Preserved local features: - Folder management tools - Label management tools (ProtonMail) - Mark emails as read/unread - Improved mailbox parameter descriptions Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
verify_sslfield toEmailServermodel (defaults totrue)MCP_EMAIL_SERVER_SMTP_VERIFY_SSLenvironment variable supportsmtp_verify_sslparameter inEmailSettings.init()andfrom_env()This allows disabling SSL certificate verification for SMTP connections, which is useful for local mail servers with self-signed certificates (e.g., ProtonMail Bridge).
Test plan
MCP_EMAIL_SERVER_SMTP_VERIFY_SSL=false🤖 Generated with Claude Code