fallback_hostname in smtp_handler

This commit is contained in:
nahakubuilde
2025-06-07 08:59:00 +01:00
parent 0a4abe0162
commit 9172e18ffb

View File

@@ -96,7 +96,8 @@ class EnhancedCustomSMTPHandler:
try: try:
settings = load_settings() settings = load_settings()
server_hostname = settings.get('Server', 'helo_hostname', fallback='mail.netbro.uk') fallback_hostname = settings.get('Server', 'HOSTNAME', fallback='localhost')
server_hostname = settings.get('Server', 'helo_hostname', fallback=fallback_hostname)
logger.debug(f"Processing headers for message {message_id}") logger.debug(f"Processing headers for message {message_id}")