On my local machine everything is sent without delay. On ams1 droplet I have a delay in 2-16 secs to send email. And then it’s delivered almost instantly.
Here’s debug output:
<-- 220 smtp4h.mail.yandex.net ESMTP (Want to use Yandex.Mail for your domain? Visit http://pdd.yandex.ru) –> EHLO localhost <-- 250-smtp4h.mail.yandex.net <-- 250-8BITMIME <-- 250-PIPELINING <-- 250-SIZE 42991616 <-- 250-STARTTLS <-- 250-AUTH LOGIN PLAIN <-- 250-DSN <-- 250 ENHANCEDSTATUSCODES –> STARTTLS <-- 220 Go ahead TLS certificate information: Owner: Common Name: smtp.yandex.ru Organization: Yandex LLC Organizational unit: ITO Locality: Moscow State or Province: Russian Federation Country: RU Issuer: Common Name: Certum Level IV CA Organization: Unizeto Technologies S.A. Organizational unit: Certum Certification Authority Country: PL Validity: Activation time: Tue Dec 10 10:22:38 2013 Expiration time: Fri Dec 9 10:22:38 2016 –> EHLO localhost <-- 250-smtp4h.mail.yandex.net <-- 250-8BITMIME <-- 250-PIPELINING <-- 250-SIZE 42991616 <-- 250-AUTH LOGIN PLAIN <-- 250-DSN <-- 250 ENHANCEDSTATUSCODES –> AUTH PLAIN **** <-- 235 2.7.0 Authentication successful. –> MAIL FROM:firstname.lastname@example.org –> RCPT TO:email@example.com –> DATA <-- 250 2.1.0 firstname.lastname@example.org ok <-- 250 2.1.5 email@example.com recipient ok <-- 354 Enter mail, end with “.” on a line by itself –> From: A firstname.lastname@example.org –> To: B email@example.com –> Subject: Hello World –> –> This email was sent using MSMTP via Yandex. –> . <-- 250 2.0.0 Ok: queued on smtp4h.mail.yandex.net as K7lMcNOMQ2-BdH0wg0R –> QUIT <-- 221 2.0.0 Closing connection.
I’ve tried different options in .msmtp_php, but these give min delay. Any suggedtions how can I send emails without delay at all?
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!
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.
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.
Click below to sign up and get $200 of credit to try our products over 60 days!