Sending emails take a lot of time
Added by Marco D'Arienzo almost 16 years ago
Hi
Does anyone also experienced that creating a new issue or updating an issue or creating news ... takes a lot of time. We have to wait about 10 sec till the issue is created. Our guess is, that sending emails takes so much time, but why?
here our environment:
Ruby version 1.8.5 (i386-linux)
RubyGems version 1.2.0
Rails version 2.1.1
Active Record version 2.1.1
Action Pack version 2.1.1
Active Resource version 2.1.1
Action Mailer version 2.1.1
Active Support version 2.1.1
Environment production
Database adapter mysql
Database schema version 92
Replies (6)
RE: Sending emails take a lot of time - Added by Yassen Damyanov almost 16 years ago
(Just trying to help although I am not sure I really can.)
or creating news ... takes a lot of time
Is news creation associated with email sending? If not, then your issue is not related to email sending.
You have to trace your application and see what happens and when (watching the logs in ./log/ may help).
One particular source of delays (more often than not) for me has been misconfigured DNS. A network operation (like finding the SMTP server IP address) forces the system to query the DNS and after that times out, it manages to get the correct IP somehow, but a delay has been created. So checking and testing how your DNS works seems a good idea to me.
Hope to be of help,
yassen
RE: Sending emails take a lot of time - Added by Marco D'Arienzo almost 16 years ago
Hi yassen
thanks for your answer.
We also presume that the problem is caused by misconfigered DNS or bad mail configuration. I hoped that somebody has also a same problem and came up with a solution like a background job for sending emails.
But as you proposed, I think I will go spending some time to check and test our DNS at first.
by
marco
RE: Sending emails take a lot of time - Added by Yassen Damyanov almost 16 years ago
My mail server is within the same local area net and sending mails is absolutely instant.
What is your configuration? I can advice you in setting up a local SMTP server that, even if not legitimate, may know a legitimate mail exchanger (and the mail exchanger needs to know it as well) and your problem will be solved (if THAT is your problem at all).
Let me know if I can be of any further help.
yassen
RE: Sending emails take a lot of time - Added by Christophe Meessen almost 16 years ago
Some providers use a spam defense strategy called grey listing that delays accepting mails.
Just another thing to check if it applies to your context.
RE: Sending emails take a lot of time - Added by Dmitry Kochin almost 16 years ago
I experience the same problem. My SMTP server is at the same local network.
I tried to use IP address instead of domain name, but it didn't help.
What can I do to diagnose the problem?
RE: Sending emails take a lot of time - Added by Dmitry Kochin almost 16 years ago
The poblem solved. It actually was in misconfigured DNS.
Now all emails are fast :)