Question

Wordpress is not sending emails

Posted January 20, 2019 2.9k views
UbuntuWordPressEmail

Hello, I need some directions, please. I have a web server successfully running on Ubuntu 14.04. LAMP is properly configured. Everything works flawless. Recently, I decided to try Wordpress. I manually installed Wordpress 5.0.3. Everything is working just fine, except for the fact that I tryed to change the admin e-mail in Wordpress and it says I’ll receive a confirmation e-mail, which never arrives. I’m confused. I have no mail server. What is happening exactly and what are the next steps I should take?

1 comment
  • I’m having the same issue, and I think I’ve narrowed it down after some hours of playing around. If I am logged in, I never get an email, even if I try to reset the password. However, the PHP emailer is working because anonymous comments do send emails. Also, I get notified when others create new accounts. That is the extent of it, though. What is also strange is that I can use the mail command to send email, but sendmail (from postfix) never does. Do you see the same thing?

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.

×
2 answers

Hello,

I would recommend using an SMTP plugin like Easy WP SMTP. This would allow you to specify an SMTP server like Gmail, that way your Wordpress emails would be sent through Gmail’s SMTP server rather than just plain PHP mail.

This would also increase the delivery rate of your emails in general.

Hope that this helps!
Regards,
Bobby

@bobbyiliev

hi bobby,

what if we are hosting tens of wordpress sites for our clients on one of our droplets which we cannot log in to and install an wp smtp plugin?

we still need to fix the php mailer issue, dont we?

from the output of “nc -vz smtp.gmail.com 25”, we got “Connection to smtp.gmail.com 25 port [tcp/smtp] succeeded!” which means at least the droplet is able to communicate over the ports required to send emails externally.

from the output of “tail -20 /var/log/mail.log” below, we got some deferred emails sent from some of our clients. will those deferred emails prevent the droplet from sending other emails? any idea?

Dec 1 08:24:26 AzinityServerCPU2 postfix/smtp[22043]: 30067409CB: to=info@kennethchaucpa.com, relay=mail8.internad.hk[202.130.104.18]:25, delay=0.82, delays=0.02/0.01/0.21/0.58, dsn=2.6.0, status=sent (250 2.6.0 1048 bytes received in 00:00:00; Message id 201912011624254622 accepted for delivery)
Dec 1 08:24:26 AzinityServerCPU2 postfix/qmgr[1868]: 30067409CB: removed
Dec 1 08:26:03 AzinityServerCPU2 postfix/pickup[21887]: C9B23409CB: uid=33 from=<www-data>
Dec 1 08:26:03 AzinityServerCPU2 postfix/cleanup[22041]: C9B23409CB: message-id=86584e93c7b362c12461f14b930162b3@www.czdcpa.com
Dec 1 08:26:03 AzinityServerCPU2 postfix/qmgr[1868]: C9B23409CB: from=www-data@azinity.com, size=1031, nrcpt=1 (queue active)
Dec 1 08:26:24 AzinityServerCPU2 postfix/smtp[22043]: C9B23409CB: to=winnie@czdcpa.com, relay=mail.czdcpa.com[192.186.255.164]:25, delay=21, delays=0.01/0/21/0.19, dsn=5.0.0, status=bounced (host mail.czdcpa.com[192.186.255.164] said: 550 Access denied - Invalid HELO name (See RFC2821 4.1.1.1) (in reply to MAIL FROM command))
Dec 1 08:26:24 AzinityServerCPU2 postfix/cleanup[22041]: F09AF409D9: message-id=20191201082624.F09AF409D9@AzinityServerCPU2
Dec 1 08:26:24 AzinityServerCPU2 postfix/qmgr[1868]: F09AF409D9: from=<>, size=2998, nrcpt=1 (queue active)
Dec 1 08:26:24 AzinityServerCPU2 postfix/bounce[22049]: C9B23409CB: sender non-delivery notification: F09AF409D9
Dec 1 08:26:24 AzinityServerCPU2 postfix/qmgr[1868]: C9B23409CB: removed
Dec 1 08:26:24 AzinityServerCPU2 postfix/local[22050]: F09AF409D9: to=www-data@azinity.com, relay=local, delay=0.01, delays=0/0.01/0/0, dsn=2.0.0, status=sent (delivered to maildir)
Dec 1 08:26:24 AzinityServerCPU2 postfix/qmgr[1868]: F09AF409D9: removed
Dec 1 08:26:55 AzinityServerCPU2 postfix/qmgr[1868]: 631CA409C8: from=www-data@azinity.com, size=1800, nrcpt=2 (queue active)
Dec 1 08:26:55 AzinityServerCPU2 postfix/smtp[22043]: 631CA409C8: host mx-apac.mail.gm0.yahoodns.net[106.10.248.74] said: 421 4.7.0 [TSS04] Messages from 139.59.96.33 temporarily deferred due to user complaints - 4.16.55.1; see https://help.yahoo.com/kb/postmaster/SLN3434.html (in reply to MAIL FROM command)
Dec 1 08:26:55 AzinityServerCPU2 postfix/smtp[22043]: 631CA409C8: lost connection with mx-apac.mail.gm0.yahoodns.net[106.10.248.74] while sending RCPT TO
Dec 1 08:26:55 AzinityServerCPU2 postfix/smtp[22043]: 631CA409C8: to=billionapex@yahoo.com.hk, relay=mx-apac.mail.gm0.yahoodns.net[106.10.248.73]:25, delay=143389, delays=143389/0/0.03/0.2, dsn=4.7.0, status=deferred (host mx-apac.mail.gm0.yahoodns.net[106.10.248.73] said: 421 4.7.0 [TSS04] Messages from 139.59.96.33 temporarily deferred due to user complaints - 4.16.55.1; see https://help.yahoo.com/kb/postmaster/SLN3434.html (in reply to MAIL FROM command))
Dec 1 08:56:54 AzinityServerCPU2 postfix/qmgr[1868]: 6EFF63F146: from=www-data@azinity.com, size=2413, nrcpt=2 (queue active)
Dec 1 08:56:54 AzinityServerCPU2 postfix/smtp[26774]: 6EFF63F146: host mx-apac.mail.gm0.yahoodns.net[106.10.248.74] said: 421 4.7.0 [TSS04] Messages from 139.59.96.33 temporarily deferred due to user complaints - 4.16.55.1; see https://help.yahoo.com/kb/postmaster/SLN3434.html (in reply to MAIL FROM command)
Dec 1 08:56:54 AzinityServerCPU2 postfix/smtp[26774]: 6EFF63F146: lost connection with mx-apac.mail.gm0.yahoodns.net[106.10.248.74] while sending RCPT TO
Dec 1 08:56:56 AzinityServerCPU2 postfix/smtp[26774]: 6EFF63F146: to=billionapex@yahoo.com.hk, relay=mx-apac.mail.gm0.yahoodns.net[106.10.248.73]:25, delay=214684, delays=214682/0.04/1.6/0, dsn=4.7.0, status=deferred (host mx-apac.mail.gm0.yahoodns.net[106.10.248.73] said: 421 4.7.0 [TSS04] Messages from 139.59.96.33 temporarily deferred due to user complaints - 4.16.55.1; see https://help.yahoo.com/kb/postmaster/SLN3434.html (in reply to MAIL FROM command))

br,
tom

Submit an Answer