@Wintereise No way it's overloaded, only happens when mail is sent. SMTP mail works fine. service sendmail restart also hangs for several minutes. Also, can't find php5-fpm.conf..
@MikHo yeah, it just takes a few minutes for it to start up
@Wintereise anything you would recommend? Something that would require little setting up on my end, as all I wish to do is send mail without pages dying :<
Does the maillog show any warnings/errors, especially when you restart sendmail?
I haven't used sendmail for years, but if the old hostname is set in the sendmail config, and that hostname no longer resolves, then there will likely be issues with sendmail....
Comments
Anything in your php log files?
I think it has something to do with the sendmail package (this is Ubuntu 12.04 x86 btw)
service sendmail restart
It takes about 2 minutes for the following to say [OK]
cat /var/log/php5-fpm.log shows nothing besides restarts
You're checking the wrong log.
Anyway, fpm echos errors to stdout, so nginx catches them on the fcgi interface.
Look at your error log for that specific vhost in nginx.
Nothing specific about mailing?
Could it be that it's simply being overloaded? (Though, I guess that'd notify you in php5-fpm.log)
I think you can change the verbosity of the log in php5-fpm.conf, try doing that.
This isn't WHMCS by any chance?
@Wintereise No way it's overloaded, only happens when mail is sent. SMTP mail works fine. service sendmail restart also hangs for several minutes. Also, can't find php5-fpm.conf..
/var/lib/dpkg/info/php5-fpm.conffiles
Nope
May it have something to do with changing the VPS hostname?
the configuration is in the pool directory
probably something like /etc/php/fpm/pool.d/www.conf
This is the directive I was talking about. And no, you don't have this in the pool config, but rather the global php-fpm configuration file.
For me, it's
there.
Try using mail() in cli. for example, php -r "mail(...);" and try to find out it works or not.
Does sendmail actually start ?
If its not running that would explain the timeout for php and we can shift focus to troubleshooting sendmail. Instead.
You can try out other mail transfer agents too, if the problem is indeed with Sendmail.
@Wintereise it was actually where @qjq said it was, should I be setting it to error or debug?
@likexian it hangs just as long
@MikHo yeah, it just takes a few minutes for it to start up
@Wintereise anything you would recommend? Something that would require little setting up on my end, as all I wish to do is send mail without pages dying :<
Does the maillog show any warnings/errors, especially when you restart sendmail?
I haven't used sendmail for years, but if the old hostname is set in the sendmail config, and that hostname no longer resolves, then there will likely be issues with sendmail....
Sep 30 16:01:01 saturn sm-msp-queue[12177]: unable to qualify my own domain name (saturn) -- using short name
@sleddog ding ding ding! Updated /etc/hosts and it worked, thanks!
Lol, I believe the sendmail installer (when run via apt) actually tells you if your server hostname resolves and if it should be updated.
Glad to see you've gotten it fixed though
Cool you fixed it