I’ve recently switched our servers from Apache to NGINX. While testing our WP Form Builder Add-on, I found that my web server took pretty long time for the mail function to process, however, on the local server, everything works pretty smooth.

While digging Google, I found the solution which fixed this issue. If you are facing the same problem, follow the steps below to resolve it.

Log in to your server via SSH as root user and run the following command:

nano /etc/hosts

You will find an entry which looks like this localhost

All you need to do is add localhost.localdomain after this so it should look like this: localhost localhost.localdomain

Press CTRL+X and then Y to save the file. Now, your server mail should process in nanoseconds.

Sometimes, a small fix with a few characters here and there can waste hours. I thought I’d share this here so that it will save some of your time.

Mohit Aneja
I am an experienced designer and developer with a solid knowledge & experience of current web and mobile technology. I am a problem solver at heart and strive to develop the most effective solutions at the highest of standards and current technology.

  • Stay up-to-date!
    Join our mailing list to receive product updates & announcements. Every month we give away FREE Licenses to our lucky subscribers.

    No Spam Ever!

Stay up-to-date!

Get notified of product updates, new products and freebies.