Control Web Panel

WebPanel => CentOS 7 Problems => Topic started by: supportsiteurl on March 17, 2020, 06:57:09 AM

Title: (connect to aspmx2.googlemail.com[209.85.233.26]:25: Connection refused)
Post by: supportsiteurl on March 17, 2020, 06:57:09 AM
Mail are going if we disable the firewall and if we enable the firewall mails are not going.


1. When the firewall is on we are gettting this error


(https://indiandress.in/wp-content/uploads/2020/03/Screenshot-from-2020-03-17-12-17-09-e1584427856592.png)


Port No. 25 is open in both TCP and UDP


 (https://indiandress.in/wp-content/uploads/2020/03/admin-ajax.png)

If anyone has the solution please help us..

Title: Re: (connect to aspmx2.googlemail.com[209.85.233.26]:25: Connection refused)
Post by: Sandeep on March 17, 2020, 07:40:59 AM
probably your server provider doesn't allow you to send email through port 25 ask them to lift the restrictions.
Title: Re: (connect to aspmx2.googlemail.com[209.85.233.26]:25: Connection refused)
Post by: supportsiteurl on March 17, 2020, 07:50:53 AM
When we disable firewall, emails are going.

Also the service provider has replied saying that they have not blocked port 25
Title: Re: (connect to aspmx2.googlemail.com[209.85.233.26]:25: Connection refused)
Post by: Sandeep on March 18, 2020, 06:16:53 AM
contact support as we didn't block smtp ports.
Title: Re: (connect to aspmx2.googlemail.com[209.85.233.26]:25: Connection refused)
Post by: bartje1974 on March 18, 2020, 08:39:16 AM
I can confirm this error.
My thought was the receiving mail server is blocking my email.
But it is not because when I turn off the firewall they are sent.

So, this is a bug in the firewall.
Title: Re: (connect to aspmx2.googlemail.com[209.85.233.26]:25: Connection refused)
Post by: pixelpadre on March 18, 2020, 10:21:47 AM
I posted this same problem a year ago.  got the same message in tbird from google even though port 25 was not blocked in my firewall.  I did not try disabling the firewall though.  I just changed to a different port.
Title: Re: (connect to aspmx2.googlemail.com[209.85.233.26]:25: Connection refused)
Post by: ejsolutions on March 18, 2020, 11:50:15 AM
Alternatively, if your installation has the official Configserver Firewall GUI..  ::)
Go to Firewall Configuration..
SMTP_ALLOWGROUP = mail,exim,postfix,dovecot
(not all will be required)

You can also find this in /etc/csf/csf.conf <-- may as well read the file whilst you're there.
Title: Re: (connect to aspmx2.googlemail.com[209.85.233.26]:25: Connection refused)
Post by: bartje1974 on March 18, 2020, 12:05:49 PM
Thank you ejsolutions,

That solves the problem.
Now i understand why that's not working anymore.
Before we had the update without the firewall gui it worked.
Title: Re: (connect to aspmx2.googlemail.com[209.85.233.26]:25: Connection refused)
Post by: ejsolutions on March 18, 2020, 12:28:44 PM
You're welcome.

The lack of the official GUI makes it more likely that people won't check the various options. It doesn't change the way the firewall works.
Title: Re: (connect to aspmx2.googlemail.com[209.85.233.26]:25: Connection refused)
Post by: supportsiteurl on March 19, 2020, 05:58:23 AM
Thank you ejsolutions,

That solves our problem.
Title: Re: (connect to aspmx2.googlemail.com[209.85.233.26]:25: Connection refused)
Post by: Sandeep on March 19, 2020, 07:47:13 AM
if you tried to modify by your self or install, then configs need to be maintained by you. Else leave it default