@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....
Sep 30 16:00:01 saturn sm-msp-queue[12177]: My unqualified host name (saturn) unknown; sleeping for retry
Sep 30 16:01:01 saturn sm-msp-queue[12177]: unable to qualify my own domain name (saturn) -- using short name
Comments
Anything in your php log files?
- Spam
- Abuse
- Troll
0 • Disagree Agree ThanksI 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]
- Spam
- Abuse
- Troll
0 • Disagree Agree Thankscat /var/log/php5-fpm.log shows nothing besides restarts
- Spam
- Abuse
- Troll
0 • Disagree Agree ThanksYou'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.
Freelance Linux/Unix consultant, contact me if you need help!
- Spam
- Abuse
- Troll
0 • Disagree Agree Thanks- Spam
- Abuse
- Troll
0 • Disagree Agree ThanksNothing 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.
Freelance Linux/Unix consultant, contact me if you need help!
- Spam
- Abuse
- Troll
0 • Disagree Agree ThanksThis isn't WHMCS by any chance?
- Spam
- Abuse
- Troll
0 • Disagree Agree Thanks@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..
- Spam
- Abuse
- Troll
0 • Disagree Agree ThanksNope :(
- Spam
- Abuse
- Troll
0 • Disagree Agree ThanksMay it have something to do with changing the VPS hostname?
- Spam
- Abuse
- Troll
0 • Disagree Agree Thanksthe configuration is in the pool directory probably something like /etc/php/fpm/pool.d/www.conf
- Spam
- Abuse
- Troll
0 • Disagree Agree ThanksThis 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.
Freelance Linux/Unix consultant, contact me if you need help!
- Spam
- Abuse
- Troll
0 • Disagree Agree ThanksTry using mail() in cli. for example, php -r "mail(...);" and try to find out it works or not.
- Spam
- Abuse
- Troll
0 • Disagree Agree ThanksDoes sendmail actually start ?
If its not running that would explain the timeout for php and we can shift focus to troubleshooting sendmail. Instead.
- Spam
- Abuse
- Troll
0 • Disagree Agree ThanksYou can try out other mail transfer agents too, if the problem is indeed with Sendmail.
Freelance Linux/Unix consultant, contact me if you need help!
- Spam
- Abuse
- Troll
0 • Disagree Agree Thanks@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 :<
- Spam
- Abuse
- Troll
0 • Disagree Agree ThanksDoes 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....
- Spam
- Abuse
- Troll
0 • Disagree Agree Thanks- Spam
- Abuse
- Troll
0 • Disagree Agree Thanks@sleddog ding ding ding! Updated /etc/hosts and it worked, thanks!
- Spam
- Abuse
- Troll
0 • Disagree Agree ThanksLol, 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 :)
Freelance Linux/Unix consultant, contact me if you need help!
- Spam
- Abuse
- Troll
0 • Disagree Agree ThanksCool you fixed it :)
- Spam
- Abuse
- Troll
0 • Disagree Agree Thanks