Sendmail on Debian 8 - sent emails are incredibly slow

I'm finishing up a PHP LEMP site and am currently testing site emails. While they do (eventually) get delivered to me, they take up to a half hour or more. I'm using Google as the mail server in my DNS records (link to a screenshot of my settings on imgur).

Is this normal? Is it an artifact of using Google's SMTP for my own uses? Or is it due to sendmail itself? Should I just bite the bullet and install a mail server on the same machine as my web server? I really need sent emails to be snappy for the people who are going to potentially use my site.

1 Reply

Hey there,

This sounds like it may be an issue with Sendmail itself.

You may have Sendmail configured to queue mail outgoing and send the mail at regular intervals. You can view your full mail queue with mailq.

Here are some guides to assist you in your Sendmail configuration:
Configure Sendmail to use gmail relay
Sendmail Configuration by Red Hat

I have also seen this occur on systems without a fully qualified domain name. You may need to revisit your Linode configuration to set the hostname:

nano /etc/hosts

We hope that helps.

Sincerely,
Tara T
Linode Support Team

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct