PyMTA initial upload

This commit is contained in:
nahakubuilde
2025-05-30 06:15:06 +01:00
commit bed5477a19
15 changed files with 2061 additions and 0 deletions

25
config.py Normal file
View File

@@ -0,0 +1,25 @@
"""
Configuration settings for the SMTP server.
"""
# Server settings
SMTP_PORT = 4025
SMTP_TLS_PORT = 40587
HOSTNAME = 'localhost'
# Database settings
DATABASE_URL = 'sqlite:///smtp_server.db'
# Logging settings
LOG_LEVEL = 'INFO'
# Email relay settings
RELAY_TIMEOUT = 10
# TLS settings
TLS_CERT_FILE = 'server.crt'
TLS_KEY_FILE = 'server.key'
# DKIM settings
DKIM_SELECTOR = 'default'
DKIM_KEY_SIZE = 2048