Hi,
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:bob@domain.com –> RCPT TO:test@domain.com –> DATA <-- 250 2.1.0 bob@domain.com ok <-- 250 2.1.5 test@domain.com recipient ok <-- 354 Enter mail, end with “.” on a line by itself –> From: A bob@domain.com –> To: B test@domain.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!
You don’t seem to be setting a TLS certificate. If you’re not using it anyways, you might want to set “tls_starttls off”
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.