Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I have a simple Wordpress site with the Contact Form 7 plugin. When submitting a form via the site it can takes in excess of 30 seconds to process.

Contact 7 uses Sendmail to deliver the emails (to an external address). Form submission never fails (but is very slow), the rest of the site is fine speed-wise.

Is there a way to profile Sendmail to find out what is taking so long?

The address it its sending to is a Google Mail account and always gets through.

share|improve this question
    
First question is - are you 100% sure that it's sendmail that's being slow? Can/have you perform some debugging on the plugin script to see that it's not hanging on a DB reference or something? –  Mark Henderson Aug 24 '09 at 21:27

2 Answers 2

if you can watch the mail logs in real time, you will see the time between the mail gets into queue and it is actually sent and be sure it is a MTA problem or not

share|improve this answer
up vote 0 down vote accepted

Please see this answer, it was a FQDN problem.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.