Web Hosting Talk







View Full Version : Takes a long time to connect to mail server?


BPWEB
07-21-2002, 12:06 PM
Hi

I have a problem with our mail server where it sometimes take some of our users 30 seconds to connect to send/recieve mail and also somethimes connecting in FTP.

I understand this is due to our server is having a problem doing a
reverse lookup on the users IP address (usally people using ADSL have this problem). It seems a stange thing as if the reverse lookup fails it just times out after 30 seconds and let them connect.

Does anyone know how to stop this?

Nick

Server is a Linux Redhat 7.2 / send mail etc......

chirpy
07-21-2002, 12:16 PM
Is the reverse DNS of your server, from your server, correct?

[edited after rereading the initial post]

Noldar
07-21-2002, 01:23 PM
Try adding/changing the following line in your sendmail.cf

O Timeout.ident=0s

What ftp server are you running? If it's proftp you can add/change the following in you proftpd.conf.

UseReverseDNS off
IdentLookups off

Richard

BPWEB
07-21-2002, 06:08 PM
Thanks for that, it seems to have sorted sending mail and the FTP but doesn't solve the problem that it takes a while for some people to connect to revieve mail (pop3).

It is definatly something to do with a person using a computer that is connected using a connection that uses NAT so there IP is hidden. Although not all people using NAT's seem to be affected.

Anyone got anymore ideas?

Thanks

Nick

arfarf
07-22-2002, 08:35 AM
If it's a DNS problem, may times you can work around it by using the IP address as your POP & SMTP servers.

Noldar
07-22-2002, 08:54 AM
I forgot a file :D

Change /etc/xinetd.d/ipop3 so that the following lines look like this:

log_on_success +=
log_on_failure +=

There should be nothing after the +=

Richard

mdrussell
07-22-2002, 09:09 AM
For FTP, set:

IdentLookups off
UseReverseDNS off

In proftpd.conf

This should speed up login time.

BPWEB
07-22-2002, 01:50 PM
cheers Noldar I think that might have fixed it : )