I have configured sendmail using a procedure described in below : Configure Sendmail to Relay Emails through Gmail SMTP.
https://tecadmin.net/sendmail-to-relay-emails-through-gmail-stmp/.
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 :
SMART_HOSTNow add following configuration lines into your sendmail.mc configuration file below “MAILER” definition.
define(`SMART_HOST',`[smtp.gmail.com]')dnl
define(`RELAY_MAILER_ARGS', `TCP $h 587')dnl
define(`ESMTP_MAILER_ARGS', `TCP $h 587')dnl
define(`confAUTH_OPTIONS', `A p')dnl
TRUST_AUTH_MECH(`EXTERNAL DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')dnl
define(`confAUTH_MECHANISMS', `EXTERNAL GSSAPI DIGEST-MD5 CRAM-MD5 LOGIN PLAIN')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
After completing all the above configuration’s, reload the sendmail service to apply changes.
sudo service sendmail reload
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!
Hello,
Have you checked if port 587 is open for outgoing connections?
And what happens if you run:
- telnet smtp.gmail.com 587
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.