Add Email Diagnostics tool - verify if email/domain is working
Features:
- Check specific email address or entire domain
- Shows if emails are working with PROOF
- Displays recent activity with timestamps highlighted
- Categorizes: delivered, bounced, rejected, deferred
- Shows last 5 examples of each type from selected time period
- Clear verdict: Working / Partially Working / Has Problems
- Extracts bounce reasons and recommendations
- Saves full report for customer evidence
Usage: Email menu → Option 1 (Email Diagnostics)
Perfect for: 'Customer says they're not receiving emails'
Example output:
✅ EMAIL IS WORKING PROPERLY
Evidence: 15 successful deliveries in last 24 hours
PROOF - Recent deliveries with timestamps shown below
This commit is contained in:
+20
-18
@@ -398,21 +398,22 @@ show_email_menu() {
|
||||
echo ""
|
||||
echo -e "${BOLD}Diagnostics:${NC}"
|
||||
echo ""
|
||||
echo -e " ${CYAN}1)${NC} 📬 Email Deliverability Test - Test sending/receiving"
|
||||
echo -e " ${CYAN}2)${NC} 🔍 Mail Queue Inspector - View stuck emails"
|
||||
echo -e " ${CYAN}3)${NC} 📊 SMTP Connection Test - Verify mail server"
|
||||
echo -e " ${CYAN}4)${NC} 🔐 SPF/DKIM/DMARC Check - Email authentication"
|
||||
echo -e " ${CYAN}1)${NC} 🔍 Email Diagnostics - Verify email/domain is working ⭐"
|
||||
echo -e " ${CYAN}2)${NC} 📬 Email Deliverability Test - Test sending/receiving"
|
||||
echo -e " ${CYAN}3)${NC} 🔍 Mail Queue Inspector - View stuck emails"
|
||||
echo -e " ${CYAN}4)${NC} 📊 SMTP Connection Test - Verify mail server"
|
||||
echo -e " ${CYAN}5)${NC} 🔐 SPF/DKIM/DMARC Check - Email authentication"
|
||||
echo ""
|
||||
echo -e "${BOLD}Troubleshooting:${NC}"
|
||||
echo ""
|
||||
echo -e " ${YELLOW}5)${NC} 🚫 Blacklist Check - Check IP reputation"
|
||||
echo -e " ${YELLOW}6)${NC} 📧 Mail Log Analyzer - Search mail logs"
|
||||
echo -e " ${YELLOW}7)${NC} 🔄 Flush Mail Queue - Clear stuck emails"
|
||||
echo -e " ${YELLOW}6)${NC} 🚫 Blacklist Check - Check IP reputation"
|
||||
echo -e " ${YELLOW}7)${NC} 📧 Mail Log Analyzer - Search mail logs"
|
||||
echo -e " ${YELLOW}8)${NC} 🔄 Flush Mail Queue - Clear stuck emails"
|
||||
echo ""
|
||||
echo -e "${BOLD}Maintenance:${NC}"
|
||||
echo ""
|
||||
echo -e " ${GREEN}8)${NC} 🧹 Clean Mailboxes - Remove old emails"
|
||||
echo -e " ${GREEN}9)${NC} 📈 Mailbox Size Report - Show usage per account"
|
||||
echo -e " ${GREEN}9)${NC} 🧹 Clean Mailboxes - Remove old emails"
|
||||
echo -e " ${GREEN}10)${NC} 📈 Mailbox Size Report - Show usage per account"
|
||||
echo ""
|
||||
echo -e " ${RED}0)${NC} Back to Main Menu"
|
||||
echo ""
|
||||
@@ -426,15 +427,16 @@ handle_email_menu() {
|
||||
read -r choice
|
||||
|
||||
case $choice in
|
||||
1) run_module "email" "deliverability-test.sh" ;;
|
||||
2) run_module "email" "mail-queue-inspector.sh" ;;
|
||||
3) run_module "email" "smtp-connection-test.sh" ;;
|
||||
4) run_module "email" "spf-dkim-dmarc-check.sh" ;;
|
||||
5) run_module "email" "blacklist-check.sh" ;;
|
||||
6) run_module "email" "mail-log-analyzer.sh" ;;
|
||||
7) run_module "email" "flush-mail-queue.sh" ;;
|
||||
8) run_module "email" "clean-mailboxes.sh" ;;
|
||||
9) run_module "email" "mailbox-size-report.sh" ;;
|
||||
1) run_module "email" "email-diagnostics.sh" ;;
|
||||
2) run_module "email" "deliverability-test.sh" ;;
|
||||
3) run_module "email" "mail-queue-inspector.sh" ;;
|
||||
4) run_module "email" "smtp-connection-test.sh" ;;
|
||||
5) run_module "email" "spf-dkim-dmarc-check.sh" ;;
|
||||
6) run_module "email" "blacklist-check.sh" ;;
|
||||
7) run_module "email" "mail-log-analyzer.sh" ;;
|
||||
8) run_module "email" "flush-mail-queue.sh" ;;
|
||||
9) run_module "email" "clean-mailboxes.sh" ;;
|
||||
10) run_module "email" "mailbox-size-report.sh" ;;
|
||||
0) return ;;
|
||||
*) echo -e "${RED}Invalid option${NC}"; sleep 1 ;;
|
||||
esac
|
||||
|
||||
Reference in New Issue
Block a user