PDA

View Full Version : smtp really slow when sending message from local client


ozzy_cow
04-01-2004, 02:43 PM
Hi,

I got qmail working, qmailrocks.org rocks! I'm just having this one problem. I can send out and receive emails using squirrel mail fine. It's running on a pretty fast server so every page takes about one, two seconds to load. However, when I try to use local client (mozilla thunderbird) and set it to qmail's smtp server it takes to send one small plain text message about 20-30 seconds!

Thunderbird is just sitting there saying "sending mail" and there is no activity on the network, then after about 20 seconds the email gets sent. I tried Ms Outlook with the same results.

When I try to use my ISP's smtp servers, it takes about one second to send the email. The problem is that I travel and my isp allows their smtp servers only when you are on their network

any help would be greatly appreciated,

Bookworm
04-01-2004, 04:27 PM
I've seen that problem - it's really common. Has to do with the DNS not resolving quite right - it's trying to ID your connection, and times out.

I don't recall the fix - it's on the qmail mailing list archives (not the qmailrocks archives, but the main qmail.org ones)

BW

ozzy_cow
04-06-2004, 09:45 PM
You were right!
http://lifewithqmail.org/lwq.html#smtp-slow

:-) thanks so much!

For those interested, here's what I did:

in the file
/var/qmail/supervise/qmail-smtpd/run

find the following line:
/usr/local/bin/tcpserver

then just add -H to one of the arguments

reboot the server, and everything is much faster now!

if anyone has any ideas on how to fix the timing out issue... let me know. do you have to open some ports on your firewall or something?

ozzy_cow
04-06-2004, 11:00 PM
BTW, the problem with SMTP being so slow is that there is no reverse DNS for my server. After talking to my friendly neighborhood sysadmin, quick call to my ISP and they set it up for me.