Hi,

So I have Drupal working for sending email. I am using a standard LAMP setup in a virtual private server. However, the only problem is that it is quite slow to actually do the send, as a result the New Account Registration, Password Retrieval, and any other features in Drupal that send email block for about 20-30 seconds before completing. The email does eventually get sent by the way, and then the page finally finishes loading. I can confirm receipt of the email.

Since everything else runs quite quickly, this makes me conclude that it must have something to do with the sending of email.

Does anyone have any ideas what it could be? I assume it must be some kind of configuration problem.

Thanks and much appreciated--

Comments

phagetron1’s picture

anybody??

mtbradle’s picture

I have been having this issue as well. Anyone with a solution?

wpopielarczyk’s picture

I'm experiencing the same thing. I'm hoping you guys could provide your configurations to see if there are any similarities.

I'm running:
-drupal 6.10
-mysql 5.1.32
-php 5.2.9-1
-iis 7
-windows server 2008 web

vm’s picture

investigate smtp.module and set up drupal to send mail through smtp rather than php sendmail() ?

drupaul.z’s picture

to ubuntu:
sudo nano /etc/hosts
add a line:127.0.0.1 paul paul.localdomain
paul is my machine name.

if your computer is a web server,

paul.localdomain should be your domain name.

to centOS:
add a line:127.0.0.1 localhost.localdomain localhost

phagetron1’s picture

Got it to work -- thanks!

philipz’s picture

Thank you so much! This was killing me and solved the problem immediately.

chawl’s picture

Especially try #3 on this page if FQDN solution also fails.

I had gone nuts till I found.

wikibi’s picture

Should add use the find hostname command (# hostname for ubuntu) to make sure you insert the correct hostname for your server. Thanks! Worked for me.

Joe_Smith’s picture

The post by drupaul.z on June 16, 2010 at 4:49am worked for me.

To find your machine name, you can type in "hostname" in your Ubuntu command line.

So to repeat, if your machine name is "abc" and your website's domain name is "xyz.com", then you add the following line to your /etc/hosts file":

127.0.0.1 abc abc.xyz.com