# Email Feature Configuration - Development Environment # Settings optimized for local development and testing [features] email = true # Email Configuration - Development [email] enabled = true from_email = "dev@localhost" from_name = "Rustelo App Dev" reply_to = "dev-noreply@localhost" default_provider = "console" # "smtp", "sendgrid", "console" # SMTP Configuration - Development (usually disabled) [email.smtp] host = "localhost" port = 1025 # MailHog or similar local SMTP server username = "" password = "" use_tls = false use_starttls = false timeout = 30 pool_size = 2 # SendGrid Configuration - Development (usually disabled) [email.sendgrid] api_key = "dev-sendgrid-key" endpoint = "https://api.sendgrid.com/v3/mail/send" timeout = 30 # Console Provider - Development (primary) [email.console] enabled = true log_level = "debug" save_to_file = true output_dir = "logs/emails" pretty_print = true # Email Templates - Development [email.templates] template_dir = "templates/email" default_language = "en" supported_languages = ["en"] cache_templates = false # Disable caching for development reload_on_change = true # Enable hot reload # Template Configuration - Development [email.templates.welcome] subject = "Welcome to {{app_name}} (DEV)" template = "welcome.hbs" text_template = "welcome.txt" [email.templates.password_reset] subject = "Password Reset Request (DEV)" template = "password_reset.hbs" text_template = "password_reset.txt" expiration = 7200 # 2 hours for development [email.templates.email_verification] subject = "Verify Your Email Address (DEV)" template = "email_verification.hbs" text_template = "email_verification.txt" expiration = 86400 # 24 hours [email.templates.two_factor] subject = "Two-Factor Authentication Code (DEV)" template = "two_factor.hbs" text_template = "two_factor.txt" expiration = 600 # 10 minutes # Email Queue Configuration - Development [email.queue] enabled = false # Disable queue for immediate sending in dev max_retry_attempts = 1 retry_delay = 10 # seconds batch_size = 5 processing_interval = 10 # seconds # Rate Limiting - Relaxed for development [email.rate_limiting] max_emails_per_minute = 1000 max_emails_per_hour = 10000 max_emails_per_day = 100000 burst_limit = 100 # Email Validation - Relaxed for development [email.validation] check_mx_records = false check_disposable_domains = false allowed_domains = [] # Allow all domains blocked_domains = [] # No blocked domains # Bounce Handling - Disabled for development [email.bounce_handling] enabled = false webhook_url = "/webhooks/email/bounce" webhook_secret = "dev-webhook-secret" max_bounce_rate = 1.0 # 100% auto_suppress_bounces = false # Email Analytics - Disabled for development [email.analytics] track_opens = false track_clicks = false track_deliveries = false track_bounces = false track_complaints = false # Security Settings - Relaxed for development [email.security] enable_dkim = false dkim_selector = "default" dkim_private_key_path = "" enable_spf = false enable_dmarc = false # Internationalization - Simple for development [email.i18n] auto_detect_language = false fallback_language = "en" timezone = "UTC" date_format = "%Y-%m-%d %H:%M:%S" # Development Settings [email.development] intercept_emails = false intercept_to = "developer@localhost" log_all_emails = true fake_send = false show_preview = true