SMTP send mail error

Get help with installation and running phpBB 3.3.x here. Please do not post bug reports, feature requests, or extension related questions here.
User avatar
c64persian
Registered User
Posts: 87
Joined: Tue Sep 18, 2012 11:58 pm
Location: instagram:c64persian

SMTP send mail error

Post by c64persian »

Hello,

I was using the Gmail smtp service, which has been disabled for phpbb and show error message in log
I have now set up the smtp server on mailtrap.io
But again, the same error message as before is displayed:
phpbb3.3.11

Code: Select all

» EMAIL/SMTP
/forum/adm/index.php?i=acp_board&mode=email


Backtrace

Connecting to sandbox.smtp.mailtrap.io:587
LINE: 1205 <- 220 smtp.mailtrap.io ESMTP ready

# EHLO
LINE: 1552 <- 501 5.5.4 Invalid argument

# HELO
LINE: 1562 <- 501 5.5.4 Invalid argument
Which file is meant by line 1562 in this message?
Does anyone have a solution to this problem?
User avatar
c64persian
Registered User
Posts: 87
Joined: Tue Sep 18, 2012 11:58 pm
Location: instagram:c64persian

Re: SMTP send mail error

Post by c64persian »

I have now set up the hotmail smtp on port 587

Code: Select all

Backtrace

Connecting to smtp-mail.outlook.com:587
LINE: 1205 <- 220 LO4P123CA0056.outlook.office365.com Microsoft ESMTP MAIL Service ready at Fri, 5 Jul 2024 14:48:22 +0000

# EHLO
LINE: 1552 <- 250-LO4P123CA0056.outlook.office365.com Hello [185.27.134.47]

LINE: 1552 <- 250-SIZE 157286400

LINE: 1552 <- 250-PIPELINING

LINE: 1552 <- 250-DSN

LINE: 1552 <- 250-ENHANCEDSTATUSCODES

LINE: 1552 <- 250-STARTTLS

LINE: 1552 <- 250-8BITMIME

LINE: 1552 <- 250-BINARYMIME

LINE: 1552 <- 250-CHUNKING

LINE: 1552 <- 250 SMTPUTF8

# STARTTLS
LINE: 1605 <- 220 2.0.0 SMTP server ready

# EHLO
LINE: 1552 <- 250-LO4P123CA0056.outlook.office365.com Hello [185.27.134.47]

LINE: 1552 <- 250-SIZE 157286400

LINE: 1552 <- 250-PIPELINING

LINE: 1552 <- 250-DSN

LINE: 1552 <- 250-ENHANCEDSTATUSCODES

LINE: 1552 <- 250-AUTH LOGIN XOAUTH2

LINE: 1552 <- 250-8BITMIME

LINE: 1552 <- 250-BINARYMIME

LINE: 1552 <- 250-CHUNKING

LINE: 1552 <- 250 SMTPUTF8

# AUTH LOGIN
LINE: 1686 <- 334 VXNlcm5hbWU6

# Omitting sensitive information
LINE: 1692 <- 334 UGFzc3dvcmQ6

# Omitting sensitive information
Last edited by c64persian on Tue Jul 23, 2024 3:40 pm, edited 2 times in total.
User avatar
Noxwizard
Support Team Leader
Support Team Leader
Posts: 10582
Joined: Mon Jun 27, 2005 8:41 pm
Location: Texas, USA
Name: Patrick Webster

Re: SMTP send mail error

Post by Noxwizard »

Your log for outlook.com appears to be truncated.
[Support Template] - [Read Before Posting] - [phpBB Knowledge Base]
Do not contact me for private support, please share the question in our forums.
User avatar
c64persian
Registered User
Posts: 87
Joined: Tue Sep 18, 2012 11:58 pm
Location: instagram:c64persian

Re: SMTP send mail error

Post by c64persian »

Noxwizard wrote: Fri Jul 05, 2024 8:51 pm Your log for outlook.com appears to be truncated.
That's all it shows on the error log page
User avatar
ssl
Registered User
Posts: 1979
Joined: Sat Feb 08, 2020 2:15 pm
Location: Le Lude, Pays de la Loire - France
Name: Fred Rimbert

Re: SMTP send mail error

Post by ssl »

Why don't you use your domain name as your email address, and set up SMTP with it?
Sorry for my English ... I do my best! :anger_right:

:point_right_tone3: phpBB: 3.3.13 | PHP: 8.3.9
:point_right_tone4: [Kill spam on phpBB] - [Some French translation of extensions]
"Mistress, Mistress someone is bothering me in pm"
User avatar
Mick
Support Team Member
Support Team Member
Posts: 26828
Joined: Fri Aug 29, 2008 9:49 am

Re: SMTP send mail error

Post by Mick »

Have you tried one of the online Mail checkers? There are more.
  • "The more connected we get the more alone we become” - Kyle Broflovski© 🇬🇧
User avatar
c64persian
Registered User
Posts: 87
Joined: Tue Sep 18, 2012 11:58 pm
Location: instagram:c64persian

Re: SMTP send mail error

Post by c64persian »

ssl wrote: Thu Jul 11, 2024 7:17 am Why don't you use your domain name as your email address, and set up SMTP with it?
I am on free host with subdomain
User avatar
c64persian
Registered User
Posts: 87
Joined: Tue Sep 18, 2012 11:58 pm
Location: instagram:c64persian

Re: SMTP send mail error

Post by c64persian »

Mick wrote: Thu Jul 11, 2024 8:31 am Have you tried one of the online Mail checkers? There are more.
I registered on this site

But I did not find the smtp settings
User avatar
c64persian
Registered User
Posts: 87
Joined: Tue Sep 18, 2012 11:58 pm
Location: instagram:c64persian

Re: SMTP send mail error

Post by c64persian »

nobody knows a free smtp service works on phpbb?
User avatar
janus_zonstraal
Registered User
Posts: 6592
Joined: Sat Aug 30, 2014 1:30 pm

Re: SMTP send mail error

Post by janus_zonstraal »

Better spend 15$/y for a good host.
Sorry! My English is bat ;) !!!
User avatar
thecoalman
Community Team Member
Community Team Member
Posts: 6304
Joined: Wed Dec 22, 2004 3:52 am
Location: Pennsylvania, U.S.A.

Re: SMTP send mail error

Post by thecoalman »

If you copy and pasted the credentials make sure there is no extra spaces, line breaks etc.

It's also possible the IP for your server is on blacklist.

https://mxtoolbox.com/blacklists.aspx
“Results! Why, man, I have gotten a lot of results! I have found several thousand things that won’t work.”

Attributed - Thomas Edison
User avatar
c64persian
Registered User
Posts: 87
Joined: Tue Sep 18, 2012 11:58 pm
Location: instagram:c64persian

Re: SMTP send mail error

Post by c64persian »

thecoalman wrote: Mon Jul 22, 2024 1:55 pm If you copy and pasted the credentials make sure there is no extra spaces, line breaks etc.

It's also possible the IP for your server is on blacklist.

https://mxtoolbox.com/blacklists.aspx
Until a few months ago, the Google smtp was working fine
my free server is byethost14.com

I have now set up the yahoo smtp on port 587

Code: Select all

Email error
» EMAIL/SMTP
/forum/adm/index.php?i=acp_board&mode=email
Ran into problems sending email at Line 1567. Response: 501 5.5.4 Domain address required: HELO 

Backtrace

Connecting to smtp.mail.yahoo.com:587
LINE: 1210 <- 220 smtp.mail.yahoo.com ESMTP ready

# EHLO
LINE: 1557 <- 501 5.5.4 Domain address required: EHLO

# HELO
LINE: 1567 <- 501 5.5.4 Domain address required: HELO 
yahoo smtp port 465

Code: Select all

Email error
» EMAIL/SMTP
/forum/adm/index.php?i=acp_board&mode=email

Could not get mail server response codes.
Backtrace

Connecting to smtp.mail.yahoo.com:465
User avatar
thecoalman
Community Team Member
Community Team Member
Posts: 6304
Joined: Wed Dec 22, 2004 3:52 am
Location: Pennsylvania, U.S.A.

Re: SMTP send mail error

Post by thecoalman »

The ability to send email is tightly controlled on paid hosts . If you are on a free host they usually severely limit it. Since all these services are failing it's likely the host is blocking it.

Honestly hosting is fairly cheap for small web site, there is plans for less than $5 a month. You should consider getting one.
“Results! Why, man, I have gotten a lot of results! I have found several thousand things that won’t work.”

Attributed - Thomas Edison
User avatar
Noxwizard
Support Team Leader
Support Team Leader
Posts: 10582
Joined: Mon Jun 27, 2005 8:41 pm
Location: Texas, USA
Name: Patrick Webster

Re: SMTP send mail error

Post by Noxwizard »

peyman974 wrote: Tue Jul 23, 2024 3:27 pm

Code: Select all

# EHLO
LINE: 1557 <- 501 5.5.4 Domain address required: EHLO

# HELO
LINE: 1567 <- 501 5.5.4 Domain address required: HELO
This is the same error you were getting earlier. From the error, it sounds like your host's domain isn't getting sent properly (or at all).

We try to determine it this way:

Code: Select all

		// Here we try to determine the *real* hostname (reverse DNS entry preferrably)
		$local_host = $user->host;    // Comes from $request->server('SERVER_NAME')

		if (function_exists('php_uname'))
		{
			$local_host = php_uname('n');

			// Able to resolve name to IP
			if (($addr = @gethostbyname($local_host)) !== $local_host)
			{
				// Able to resolve IP back to name
				if (($name = @gethostbyaddr($addr)) !== $addr)
				{
					$local_host = $name;
				}
			}
		}
If we follow through that, it's a forward lookup on your host, followed by a reverse lookup. For byethost14.com, the forward lookup does not provide an address, so reverse lookup fails. This means it uses whatever `php_uname('n')` returns for your host.

Put this on your host and run it and post the results:

Code: Select all

<?php
echo 'Server name: ' . $_SERVER['SERVER_NAME'] . '<br />';
echo 'uname: ' . php_uname('n') . '<br />';
echo 'A record: ' . gethostbyname(php_uname('n'));
[Support Template] - [Read Before Posting] - [phpBB Knowledge Base]
Do not contact me for private support, please share the question in our forums.
User avatar
c64persian
Registered User
Posts: 87
Joined: Tue Sep 18, 2012 11:58 pm
Location: instagram:c64persian

Re: SMTP send mail error

Post by c64persian »

Put this on your host and run it and post the results:
Server name: c64persian.66ghz.com
uname: empty
A record: empty

Return to “[3.3.x] Support Forum”