By nmapsy
In my previous hosting setup I used the sendmail command to send email when I needed to notify myself about system occurrences.
But I’ve been trying it out in DigitalOcean, and it consistently takes almost exactly 1 minute to execute.
Is this expected? Maybe an intentional rate-limiting measure? That would be fine, but it causes certain actions on my site to time out. I could execute the command in the background, but I’d like the exit status to tell the user if there was a problem (e.g. if they’re using a “contact admin” form).
So: what’s going on, and is there a way to mitigate it?
Platform: Ubuntu 12.04.5 32-bit kernel 3.2.0-24-virtual ip 198.211.116.82 sendmail 8.14.4
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Try checking your hosts file: sudo nano /etc/hosts
The first uncommented line will probably say this if you haven’t made any configuration changes: 127.0.0.1 localhost yourservername
After localhost, add in localhost.localdomain so you end up with 127.0.0.1 localhost localhost.localdomain yourservername
This should do the trick
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.