A command-line tool to diagnose and troubleshoot scan-to-email issues by analyzing SMTP configurations and testing email delivery. Available in both Bash and PowerShell versions.
- Interactive menu-driven interface
- Email address validation
- DNS record analysis (MX, A, TXT records)
- SMTP connection testing
- Test email sending capability
- Comprehensive troubleshooting guide
- Color-coded results for better visibility
- Configuration management
- Logging system
- Progress indicators
- Help system
- No external dependencies required
- Bash shell (version 4.0 or higher)
- Basic Unix tools (nslookup, telnet, timeout)
- These tools are typically pre-installed on most Unix-like systems
- PowerShell 5.1 or higher
- Windows 7/8/10/11 or Windows Server 2008 R2 or later
- .NET Framework 4.5 or later
- Clone this repository:
git clone https://github.com/se7enb2st/SMTP-Analyzer.git
cd SMTP-Analyzer- Make the script executable:
chmod +x smtp_analyzer.sh- Clone this repository:
git clone https://github.com/se7enb2st/SMTP-Analyzer.git
cd SMTP-Analyzer- Set execution policy (if needed):
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUserRun the script:
./smtp_analyzer.shRun the script:
.\smtp_analyzer.ps1The interactive menu provides the following options:
-
Quick Test (All Checks)
- Performs all available checks in sequence
- Validates email addresses
- Checks DNS records
- Tests SMTP connection
- Attempts to send a test email
- Shows progress indicators
-
Check Email Format
- Validates email address syntax
- Provides immediate feedback
- Color-coded results
-
Check DNS Records
- Checks MX records
- Checks A records
- Checks TXT records
- Provides detailed DNS information
- Shows progress indicators
-
Test SMTP Connection
- Tests server reachability
- Verifies port accessibility
- Checks connection establishment
- Shows progress indicators
-
Test Email Sending
- Tests SMTP authentication
- Attempts to send a test email
- Provides detailed feedback
- Shows progress indicators
-
Troubleshooting Guide
- Shows comprehensive troubleshooting steps
- Provides solutions for common issues
- Offers best practices and tips
-
Settings
- Configure tool options
- Enable/disable logging
- Change default port
- Adjust timeout settings
- Enable/disable SSL
- Customize test email content
-
View Log
- Display recent log entries
- View operation history
- Track errors and successes
-
Help
- Show detailed help information
- Explain all menu options
- List common issues
- Provide usage tips
-
Exit
- Close the program
- Color-coded output for better visibility
- Step-by-step guidance
- Immediate feedback on each operation
- Progress indicators for long-running operations
- Pause between operations for better readability
- Detailed error messages
- Comprehensive troubleshooting guide
- Configuration management
- Logging system
- Help system
The tool can be configured through the Settings menu or by editing the configuration file:
- Configuration file:
smtp_analyzer.conf - Log file:
smtp_analyzer.log
- Configuration file:
smtp_analyzer.json - Log file:
smtp_analyzer.log
Configurable options include:
- Default SMTP port
- Connection timeout
- Logging enabled/disabled
- SSL enabled/disabled
- Test email subject and body
The built-in troubleshooting guide provides solutions for:
- Email format issues
- DNS configuration problems
- SMTP connection failures
- Email sending issues
- General tips and best practices
Feel free to submit issues and enhancement requests!