PHPBB Forums Not Sending Out Emails.

Ask questions about dedicated servers here and we and other users will do our best to answer them. Please also refer to the self-help section for tutorials and answers to the most commonly asked questions.
Post Reply
Strizzy
New to forums
New to forums
Posts: 6
https://www.youtube.com/channel/UC40BgXanDqOYoVCYFDSTfHA
Joined: Fri Feb 17, 2017 12:57 pm

PHPBB Forums Not Sending Out Emails.

Post by Strizzy »

I've tried changing the port and various other things such as switching it from tsl to ssl and I'm still getting errors,

I posted the error below but any help would be appreciated.

Code: Select all

» EMAIL/PHP/mail()
/adm/index.php

Errno 2: mail(): Failed to connect to mailserver at "localhost" port 25, verify your "SMTP" and "smtp_port" setting in php.ini or use ini_set() at [ROOT]/includes/functions_messenger.php line 1799
User avatar
Edge100x
Founder
Founder
Posts: 13127
Joined: Thu Apr 18, 2002 11:04 pm
Location: Seattle
Contact:

Re: PHPBB Forums Not Sending Out Emails.

Post by Edge100x »

You may need to install a local mail server, such as ssmtp, to handle outbound email.
Strizzy
New to forums
New to forums
Posts: 6
Joined: Fri Feb 17, 2017 12:57 pm

Re: PHPBB Forums Not Sending Out Emails.

Post by Strizzy »

Like which program should I use exactly to handle the local mail server, because I was trying to use hmail but failed.
User avatar
Edge100x
Founder
Founder
Posts: 13127
Joined: Thu Apr 18, 2002 11:04 pm
Location: Seattle
Contact:

Re: PHPBB Forums Not Sending Out Emails.

Post by Edge100x »

There are many options. The one I previously mentioned is recommended for new Gentoo installs and should also work well on other distributions.
Strizzy
New to forums
New to forums
Posts: 6
Joined: Fri Feb 17, 2017 12:57 pm

Re: PHPBB Forums Not Sending Out Emails.

Post by Strizzy »

Yeah, I see that but I'll report back here on an update.

Because at the moment I have everything running through a Windows Server which is the 2012 R2 one.

And the one you suggested is mostly for unbutu which incompatible with my current setup.
User avatar
Edge100x
Founder
Founder
Posts: 13127
Joined: Thu Apr 18, 2002 11:04 pm
Location: Seattle
Contact:

Re: PHPBB Forums Not Sending Out Emails.

Post by Edge100x »

Ah, Windows. It's less common to see phpBB run from a Windows install, so I was not expecting that.

If you have webhosting with us, you could potentially use it for the outbound email, if it's fairly low volume. You might also try a web search for a Windows email server -- I see that the top Google result is https://www.hmailserver.com/. I haven't tried that one (or any other Windows ones) myself, but it might be worth looking at.
Strizzy
New to forums
New to forums
Posts: 6
Joined: Fri Feb 17, 2017 12:57 pm

Re: PHPBB Forums Not Sending Out Emails.

Post by Strizzy »

Ok I managed to get a mail server setup,

But it's refusing my ports and somebody told me it was because of my host. So is the port 587 blocked by any chance?

because this is the error I'm running into.

Code: Select all

Ran into problems sending email at Line 1553. Response: 535 Authentication failed: Bad username / password 
.
Backtrace
Connecting to smtp.sendgrid.net:2525
LINE: 1096 <- 220 SG ESMTP service ready at ismtpd0003p1lon1.sendgrid.net 

# EHLO 
LINE: 1443 <- 250-smtp.sendgrid.net 

LINE: 1443 <- 250-8BITMIME 

LINE: 1443 <- 250-PIPELINING 

LINE: 1443 <- 250-SIZE 31457280 

LINE: 1443 <- 250-STARTTLS 

LINE: 1443 <- 250-AUTH PLAIN LOGIN 

LINE: 1443 <- 250 AUTH=PLAIN LOGIN 

# STARTTLS
LINE: 1488 <- 220 Begin TLS negotiation now 

# EHLO 
LINE: 1443 <- 250-smtp.sendgrid.net 

LINE: 1443 <- 250-8BITMIME 

LINE: 1443 <- 250-PIPELINING 

LINE: 1443 <- 250-SIZE 31457280 

LINE: 1443 <- 250-STARTTLS 

LINE: 1443 <- 250-AUTH PLAIN LOGIN 

LINE: 1443 <- 250 AUTH=PLAIN LOGIN 

# AUTH PLAIN
LINE: 1546 <- 334 

# Omitting sensitive information
LINE: 1553 <- 535 Authentication failed: Bad username / password 
User avatar
Edge100x
Founder
Founder
Posts: 13127
Joined: Thu Apr 18, 2002 11:04 pm
Location: Seattle
Contact:

Re: PHPBB Forums Not Sending Out Emails.

Post by Edge100x »

We do not block 587. That output also shows that you aren't using 587. It gives an error that you aren't using a valid login/password.
Strizzy
New to forums
New to forums
Posts: 6
Joined: Fri Feb 17, 2017 12:57 pm

Re: PHPBB Forums Not Sending Out Emails.

Post by Strizzy »

Yeah, I understand that it saying the password/username is incorrect but it's not.

So Idk what to do.
Strizzy
New to forums
New to forums
Posts: 6
Joined: Fri Feb 17, 2017 12:57 pm

Re: PHPBB Forums Not Sending Out Emails.

Post by Strizzy »

I got it working thanks for the help. :lol: :lol:
Post Reply