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
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:


Messages In This Thread
mail() don't working - by BigBang - 08-11-2018, 02:48 AM
RE: mail() don't working - by wormsunited - 08-11-2018, 11:20 AM
RE: mail() don't working - by BigBang - 08-11-2018, 07:01 PM
RE: mail() don't working - by wormsunited - 08-13-2018, 08:32 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
Get TLS/SSL for Sentora Mail EGOSKY123 5 14 ,257 07-25-2020, 04:03 PM
Last Post: 5050
Add on Domains not working but Main domain works luckyviet 2 6 ,382 03-18-2020, 07:38 PM
Last Post: AanaNahum
working on single domain bahabi 1 4 ,841 08-27-2019, 12:06 AM
Last Post: TGates

Forum Jump:


Users browsing this thread: 1 Guest(s)