This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

mail() don't working
#1
[Not Solved] mail() don't working
Hey guys! Just asking to help me with this problem. I googled this forum and many others in trying to fix this, but without any result. I know. there are many similar topics, but any method didn't work. So, i'm not super guru, and i'm sorry about that Smile
So, i have 2 dedicated server with many wordpress sites, based on cenos 6 and 7. Both have latest sentora install. Earlier, when sites was on shared hostings, wordpress sent to me emails with update info, new comments etc.
So, my ip didn't blacklisted, i've checked it.
When i'm trying to send some message from console like:
Code:
echo "This is the body of the email" | mail -s "This is the subject line" *******@gmail.com

I receiving that message:
Code:
send-mail: Cannot open mail:25
After checking mail log:
Code:
Aug  6 03:20:07 CentOS-74-64-minimal sSMTP[30564]: Unable to locate mail
Aug  6 03:20:07 CentOS-74-64-minimal sSMTP[30564]: Cannot open mail:25

Logically i have closed 25 port, buy i've added accept rules in iptables.

Tried add in "/etc/postfix/master.cf":
Code:
submission inet n - n - - smtpd

The last idea i had - closed port at hosting provider. So, i'm using Hetzner, and there are firewall with all open ports.

Any help will be appreciated. Thanks!
Reply
Thanks given by:
#2
[Not Solved] RE: mail() don't working
Hi there, many of the ISP providers block that port too, so you might wanna double check on that. Over your Sentora control panel settings, what port do you have settle there? 25? Please update me with that.
'' Life is full of important choices ''
Help Sentora Donate now => http://sentora.org/donate Blush
Reply
Thanks given by:
#3
[Not Solved] RE: mail() don't working
wormsunited, i have standard sentora configuration without changing anything.
Reply
Thanks given by:
#4
[Not Solved] RE: mail() don't working
In that case you might wanna change the port and try those settings. You can check what is being used on your system under the module "services", check the if the ports match, smtp, pop3 and imap.
'' Life is full of important choices ''
Help Sentora Donate now => http://sentora.org/donate Blush
Reply
Thanks given by:


Possibly Related Threads...
Thread Author Replies Views Last Post
Webalizer Stats - Centos 7 - Working Fix james30263 8 585 09-24-2018, 05:45 AM
Last Post: fearworks
module=ftp_management not working BloodySky 7 864 08-17-2018, 06:29 AM
Last Post: TGates
subdomain with www is not working !!!! yusha 13 1,118 08-11-2018, 11:00 AM
Last Post: TGates

Forum Jump:


Users browsing this thread: 1 Guest(s)