Hello , I am using a LAMP stack for a small test website. I have a form where I send few informations using sendmail

  • Posted on April 12, 2020
  • PHP
  • zeppyAsked by zeppy

I have configured sendmail using a procedure described in below : Configure Sendmail to Relay Emails through Gmail SMTP.

It works but it takes a loooong time , almost a minute to run and send the mail. Is this something caused by a wrong configuration or any other issue ? Any tip on how to make it faster ? Thank you very much! Any one has experience using zoho mail with digital Ocean ? Thank you!

Some additional info :

  1. Configure Sendmail with SMART_HOST

Now add following configuration lines into your configuration file below “MAILER” definition.

 define(`RELAY_MAILER_ARGS', `TCP $h 587')dnl
 define(`ESMTP_MAILER_ARGS', `TCP $h 587')dnl
 define(`confAUTH_OPTIONS', `A p')dnl
 FEATURE(`authinfo',`hash -o /etc/mail/authinfo/smtp-auth.db')dnl

In the next step we will need to re-build sendmail’s configuration. To do that execute:

make -C /etc/mail
  1. Verify Setup

After completing all the above configuration’s, reload the sendmail service to apply changes.

sudo service sendmail reload

Submit an answer

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!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.


Have you checked if port 587 is open for outgoing connections?

And what happens if you run:

  1. telnet 587