Hello,
Wanted to ask for some guidance on configuring the Simultaneous Connections and Idle Timeout parameters, especially for untrusted or Public-Facing SMTP Servers.
Didn't find anything on the web, so asked ChatGPT, and this is his response. But I wouldn't take it for granted, so I'm here for some expert opinion
Scenario: An internal mail server handles high-volume email relay, such as sending newsletters, transactional messages, or processing bulk emails.
Max Simultaneous Connections: 20–50
Rationale: High-volume mail servers may open multiple simultaneous connections to efficiently deliver a large number of emails. A higher number allows for quicker throughput.
Reference: FortiMail’s Session Profile Configuration suggests adjusting connection limits based on your mail system’s throughput requirements.
Idle Timeout: 300–600 seconds (5–10 minutes)
Rationale: Allows for temporary pauses while the server processes mail, but drops idle connections to optimize resources.
Scenario: External trusted mail servers that send automated system or transactional emails regularly through FortiMail.
Max Simultaneous Connections: 10–20
Rationale: A moderate limit ensures that trusted external servers can send mail efficiently without overloading FortiMail, while still safeguarding resources.
Reference: FortiMail’s Session Profile Configuration offers insights into limiting connections from external sources to prevent abuse.
Idle Timeout: 300 seconds
Rationale: Prevents idle connections from consuming resources for long periods and helps to manage connection slots effectively.
Scenario: FortiMail serving as an MX server to receive email from the broader internet.
Max Simultaneous Connections: 5–10
Rationale: Restricting the number of concurrent connections from untrusted sources helps mitigate potential spam or DoS attacks. Lower limits reduce the risk of resource exhaustion.
Reference: FortiMail Connection Limits ensure efficient handling of public-facing traffic, helping to prevent overload from unknown sources.
Idle Timeout: 120–300 seconds
Rationale: A shorter idle timeout minimizes the impact of potentially malicious or unresponsive connections, freeing up server resources quickly.
One day I had a problem with a remote server, and since then here is what I use as solution for timeouts.
config system mailserver
set timeout-connect 60
set timeout-greeting 120
end
I set max concurrent connections per client to 10.
User | Count |
---|---|
2276 | |
1236 | |
772 | |
452 | |
398 |
The Fortinet Security Fabric brings together the concepts of convergence and consolidation to provide comprehensive cybersecurity protection for all users, devices, and applications and across all network edges.
Copyright 2025 Fortinet, Inc. All Rights Reserved.