Hardware RequirementsI believe that the SME 7.x hardware requirements are significantly higher than they were for SME 6.x. At least, after I loaded SME 7 onto a PIII / 933MHz with 256MB RAM that I would have expected to work fine w/ SME 6, I found frequent system slowdowns and other problems.
When I finally looked up the hardware requirements, I found:
Note that we do not believe such a system will provide satisfactory performance for features such as webmail, remote access via PPTP, Virus and Spam Scanners, which are cpu intensive will not perform well on this platform. To utilize all the features of SME Server 7.0, please have a look at the 'Recommended' Hardware Requirements.
The 'Recommended' configuration referred to includes a 1.5GHz CPU and at least 512MB RAM...
Diagnostic StepsOn trying the test you refer to at 'mxtoolbox.com' I had a 17 second transaction time on the first connection to one of my servers, which dropped to 1.7 seconds on the second and all subsequent checks. My other 3 active SME servers all responded within 3 seconds on the first attempt.
This leads me to believe the problem may be in the DNSBL or RHSBL checking processes - the first connection takes a while as the DNS server looks up the relevant information, then runs quickly once the DNS info is cached locally. (Note: there has been a DNS cache update released within the last couple days that increases the DNS cache size by a factor of 5 or 10).
I found that I would need to increase the qpsmtpd 'LogLevel' if I wanted to find the exact source of the delay, but it is now too late since all of my servers respond quickly.
If you are still seeing extra long response times, install the latest updates using
yum update. If you're still seeing long response times, try this:
config setprop qpsmtpd LogLevel 8
signal-event email-update
sv restart qpsmtpd
Then run the test from 'mxtoolbox.com', then examine /var/log/qpsmtpd/current.
If you can't find the source of the delay, I suggest you open a bug report and *upload* (as an attachment) the sections of your qpsmtpd log related to the interaction with 'mxtoolbox.com'.
If you're unaware, the 2nd column in /var/log/qpsmtpd/current is the i-node number used for any given connection, so you can easily find the lines related to 'mxtoolbox.com' by first searching for 'mxtoolbox.com', then noting the number in the 2nd column of that line and searching for that number through the rest of the log file. (Since these are i-node references, the numbers will be reused - but it should be easy to figure out which ones relate to the 'mxtoolbox.com' connection).
Once you're done testing with your elevated LogLevel, be sure to change it back or your log files will fill up very quickly! The SME default LogLevel for qpsmtpd is 6:
config setprop qpsmtpd LogLevel 6
signal-event email-update
sv restart qpsmtpd
Other ThoughtsThere is at least one qpsmtpd plugin available whose specific purpose is to delay the smtp connection - check_earlytalker, for example, inserts a 1 second delay by default, but this delay could be increased to any amount using custom templates. (the results would show in /var/service/qpsmtpd/config/peers/0).
I *think* that some of the RBL providers insert delays on their responses if they think you're making too many requests - so if your server is really busy you might get odd delays.
Some other SMTP agents behave as though 'greylisting' is simply the act of delaying the initial helo. I use one such (Kerio Mail Server) at one site - which by default inserts a 10 second delay in every connection. Exchange 2003 can also be configured to insert a delay - I have one site configured with a 15 second delay with no adverse impact on their email.
ConclusionsUnless you're seeing actual mail flow problems through your SME 7, there is nothing wrong with a 10-12 second smtp response time.
You should install all of the latest updates.
You should verify your hardware capacity (On my inadequate hardware I turn off spamassassin with
config setprop spamassassin disabled to keep my servers from locking up on busy days...).
Since I think the delay identified by 'mxtoolbox.com' is in the DNS lookups, you should make sure the SME server is using itself for DNS and not forwarding lookups to another server. If DNS is forwarded to another server, make sure that
that server is responding in a timely manner.
If your hardware is adequate and you have installed all the latest updates and your DNS is copacetic, increase your qpsmtpd LogLevel, open a bug, and upload some log info...