I just installed php, mysql, nginx, sendmail on debian 6.
Now the PHP pages work fine. But when I try to use a simple mail()
test:
Example: mail($to, $sub, $msg)
it takes too long to finish (around 30+secs) then get I 504 Gateway Time-out
in my browser.
Funny thing is the email is actually sent.
BTW this is the error from the log:
upstream timed out (110: Connection timed out) while reading response header from upstream
Anybody knows what's causing this error?