Apologies if this has been covered before, but my qmail smtp server is acting very slow. If I telnet to port 25 on localhost it's quick, but if I do the same from a remote machine It takes ages to respond. I'm guessing it's a DNS problem, but the server's name resolves OK, as does the machine I'm coming in from. Does anybody have any ideas? Your help would be very much appreciated.
1) Make sure the machine is resolving hosts properly. Consider using a caching DNS server locally on the machine to speed up queries (such as djbdns). Make sure to put 127.0.0.1 as the first line of your /etc/resolv.conf if you install a local caching DNS.
2) Check your rbl setups as mentioned.
3) How big is your mail queue (run qmail-qstat as root from a shell prompt)? Qmail can run slower if the mail queue is large (but usually not unless the queue size is 10's of thousands or 100's of thousands in size).
Also, it's generally recommended qmail runs behind ucspi-tcp and not xinetd for better performance, but I am not familiar with Plesk's setup.
Last edited by BigGorilla; 06-21-2004 at 05:38 PM.
The queue size is extremely small as of now. This dedicated box only has one site on it. Not alot of mails go through it. As for my resolv.conf file. Everytime I edit it, it changed. Probably plesk doing that.
Oh goodness. This was my fault I put that in the lines on its own, sorry! I put -Rt0 before the other commands and that seems to work. Sorry to have put you out of your way guys. I really do appreciate the help. I'm all fixed up!