I use the PHP mail () function to send emails from a Linux server, but using Exchange as the primary MTA. To achieve this, sendmail was configured to send everything to the local Exchange server, which then sends emails.
This works correctly, but the PHP script seems to wait until the timeout ends. I thought that maybe he is waiting for a response from sendmail that does not come, is it just a relay?
I specified the php.ini command-line option for "sendmail_path" -odb, which should start sendmail with the background delivery mode, which means to disable emails in a separate process and return immediately. But it still takes 30 seconds to complete the PHP script.
Does anyone have any idea? I'm a bit stumped. Thanks.
me_here
source
share