PHP and QMail - VERY SLOW

Mail is working normally on my system, send/receive no problems. Telnet to port 25 or 110 is less than a second. This is a RHEL3 box with Plesk 7.5.3 installed

I have the -Rt0 options in /etc/xinetd.d/smtp_psa

The problem is when sending mail through PHP. It works correctly, but it's slow to make the connection. Like 2 minutes or more for the form to come back. I have the following in php.ini

sendmail_path = /usr/sbin/sendmail -t -i

I've also tried:

sendmail_path = /var/qmail/bin/qmail-inject -t -i

but while that allowed the form to come back quickly, I never received any mail.

What is the proper sendmail_path for PHP when using Plesk (I'm on 7.5.3) or how can I speed this up? I don't want the user waiting 2 minutes or more for the form to return. Again, if I leave the default setting (sendmail) it works but takes 2 minutes. If I change it to qmail-inject, the PHP form returns right away, but I never receive the email.

Thanks for any advice.

 

 

 

 

Top