Email Authentication Troubleshooting

Version: 1.1
Last Updated: 2025-01-27
Owner: Technical Operations
Status: Active Guide


Overview

This guide covers email authentication for pipeline services workflows. CURRENT STATUS: Zixly has migrated from SMTP to Microsoft Outlook OAuth2 API for enhanced security and reliability.

✅ MIGRATION COMPLETED: Microsoft Outlook OAuth2 API is now active and configured.


Current Microsoft Outlook OAuth2 Configuration

Active Configuration:

Benefits of OAuth2 Migration:


Legacy SMTP Error Messages (Historical Reference)

Error: “535 5.7.139 Authentication unsuccessful, basic authentication is disabled”

Cause: Microsoft has disabled basic authentication for security reasons.

Solution: ✅ RESOLVED - Migrated to Microsoft Outlook OAuth2 API (no longer applicable).

Error: “SSL routines:tls_validate_record_header:wrong version number”

Cause: Incorrect SSL/TLS configuration - trying to use SSL on port 587.

Solution: ✅ RESOLVED - Migrated to Microsoft Outlook OAuth2 API (no longer applicable).

Error: “Invalid login” or “Authentication failed”

Cause: Incorrect credentials or authentication method.

Solution: ✅ RESOLVED - Migrated to Microsoft Outlook OAuth2 API (no longer applicable).


Microsoft Outlook OAuth2 Setup (Current Active Method)

✅ CURRENT STATUS: OAuth2 Configuration Active

Configuration Details:

Benefits of OAuth2 vs. App Passwords

OAuth2 Advantages:

Legacy App Password Method (No longer used):


Testing Microsoft Outlook OAuth2 Configuration

Method 1: pipeline services Credential Test

  1. Go to pipeline services → Settings → Credentials
  2. Edit “Microsoft Outlook OAuth2 API” credential
  3. Click “Test” button
  4. Verify “Connection successful” message

Method 2: Workflow Test

  1. Create a simple pipeline services workflow
  2. Add “Microsoft Outlook” node
  3. Configure with “Microsoft Outlook OAuth2 API” credential
  4. Send test email to yourself
  5. Verify email delivery

Method 3: OAuth2 Token Validation

# Check pipeline services logs for OAuth2 authentication
docker-compose -f docker-compose.pipeline services.yml logs pipeline services | grep -i oauth

# Check for successful token refresh
docker-compose -f docker-compose.pipeline services.yml logs pipeline services | grep -i "token refresh"

Alternative Email Providers

Advantages: Reliable, well-documented, free

Setup Steps:

  1. Enable 2FA in Google Account
  2. Generate app password
  3. Configure pipeline services with Gmail SMTP

Configuration:

Documentation: Gmail App Passwords

SendGrid (Professional Option)

Advantages: High deliverability, analytics, free tier

Setup Steps:

  1. Create SendGrid account
  2. Generate API key
  3. Configure pipeline services with SendGrid SMTP

Configuration:

Documentation: SendGrid SMTP Setup

Email Provider Comparison

Provider Free Tier Setup Complexity Deliverability Documentation
Outlook/Hotmail Yes Medium Good Limited
Gmail Yes Easy Excellent Excellent
SendGrid 100 emails/day Easy Excellent Excellent
Mailgun 5,000 emails/month Medium Excellent Good

Troubleshooting Checklist

Before Contacting Support

  1. Verify 2FA is Enabled:
    • Check Microsoft account security settings
    • Ensure two-factor authentication is active
  2. Check App Password:
    • Verify app password was generated correctly
    • Ensure app password is used (not regular password)
    • Check password format (xxxx-xxxx-xxxx-xxxx)
  3. Verify SMTP Settings:
    • Host: smtp-mail.outlook.com
    • Port: 587
    • Security: STARTTLS (not SSL)
    • Username: Full email address
  4. Test Network Connectivity:
    • Check if port 587 is accessible
    • Verify firewall settings
    • Test with telnet command
  5. Check pipeline services Logs:
    docker-compose -f docker-compose.pipeline services.yml logs pipeline services | grep -i smtp
    

Common Issues and Solutions

Issue: App password not working

Issue: Connection timeout

Issue: SSL/TLS errors

Issue: Authentication still failing


Advanced Configuration

Custom SMTP Settings

For advanced users who need custom SMTP configuration:

# docker-compose.yml environment variables
SMTP_HOST: smtp-mail.outlook.com
SMTP_PORT: 587
SMTP_SECURE: false
SMTP_USER: your_email@domain.com
SMTP_PASSWORD: your_app_password_here

pipeline services Environment Variables

Add to pipeline services container environment:

- SMTP_HOST=smtp-mail.outlook.com
- SMTP_PORT=587
- SMTP_SECURE=false
- SMTP_USER=your_email@domain.com
- SMTP_PASSWORD=your_app_password

Security Best Practices

Password Management

Network Security

Account Security


Getting Help

Self-Service Resources

  1. Check this guide for common solutions
  2. Review pipeline services logs for specific error messages
  3. Test with alternative email providers
  4. Verify network connectivity

When to Contact Support

Contact support if:

Support Information


Document Version: 1.1
Last Updated: 2025-01-27
Owner: Zixly Technical Operations
Review Cycle: Monthly

Recent Updates: