LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-04-2016, 05:58 AM   #1
sarahlin
LQ Newbie
 
Registered: Oct 2013
Posts: 3

Rep: Reputation: Disabled
centos 7, sendmail error: dsn=4.0.0, stat=Deferred: Connection timed out


Hi there,

i have install sendmail on my centos 7, on a server with subdomain.domain.com, I can receive mail send from the sever to user1@subdomain.domain.com, and user2@domain.com; but when i try to send mail outside the domain.com, it failed with "dsn=4.0.0, stat=Deferred: Connection timed out" error;

Anyone have any ideas what i miss on the server/sendmail configuration?

thanks.
 
Old 07-04-2016, 07:10 AM   #2
TenTenths
Senior Member
 
Registered: Aug 2011
Location: Dublin
Distribution: Centos 5 / 6 / 7
Posts: 3,476

Rep: Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553Reputation: 1553
DNS?
Outbound firewall?
Being blocked at the receiver end?
 
Old 07-05-2016, 07:31 AM   #3
sarahlin
LQ Newbie
 
Registered: Oct 2013
Posts: 3

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by TenTenths View Post
DNS?
Outbound firewall?
Being blocked at the receiver end?
new to admin job, wondering if anyone can tell me more detail about the steps i should run to check, and what's the expected outcome from the check;

the server is an external facing box, www running on it, so i am kind of afraid to mess around the box.

thank you in advance.
 
Old 07-05-2016, 08:24 AM   #4
ardvark71
LQ Veteran
 
Registered: Feb 2015
Location: USA
Distribution: Lubuntu 14.04, 22.04, Windows 8.1 and 10
Posts: 6,282
Blog Entries: 4

Rep: Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842
Quote:
Originally Posted by sarahlin View Post
new to admin job, wondering if anyone can tell me more detail about the steps i should run to check, and what's the expected outcome from the check;

the server is an external facing box, www running on it, so i am kind of afraid to mess around the box.
Hello and welcome to the forum

By "admin job," do you mean system administrator? If so, not to try and sound rude in any way but you may be way in over your head from what you described. The things that TenTenths described are not only common aspects to the job but involve software and typically do not require you to do anything to the hardware.

On the firewall side of things, here are some pages that might be of help...

https://www.linode.com/docs/security...alld-on-centos

http://www.liquidweb.com/kb/how-to-s...d-on-centos-7/

http://www.liquidweb.com/kb/how-to-s...d-on-centos-7/

http://www.codero.com/knowledge-base/questions/377/

http://www.tecmint.com/firewalld-rules-for-centos-7/

Also, you should be able to open a terminal and find out the what the rules are for your firewall by using these commands, as mentioned in the first link above...

Code:
firewall-cmd --direct --get-all-chains
Code:
firewall-cmd --direct --get-all-rules
Regards...

Last edited by ardvark71; 07-05-2016 at 08:33 AM. Reason: Corrections/Added link.
 
Old 07-05-2016, 11:53 AM   #5
sarahlin
LQ Newbie
 
Registered: Oct 2013
Posts: 3

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by ardvark71 View Post
Hello and welcome to the forum

By "admin job," do you mean system administrator? If so, not to try and sound rude in any way but you may be way in over your head from what you described. The things that TenTenths described are not only common aspects to the job but involve software and typically do not require you to do anything to the hardware.

On the firewall side of things, here are some pages that might be of help...

https://www.linode.com/docs/security...alld-on-centos

http://www.liquidweb.com/kb/how-to-s...d-on-centos-7/

http://www.liquidweb.com/kb/how-to-s...d-on-centos-7/

http://www.codero.com/knowledge-base/questions/377/

http://www.tecmint.com/firewalld-rules-for-centos-7/

Also, you should be able to open a terminal and find out the what the rules are for your firewall by using these commands, as mentioned in the first link above...

Code:
firewall-cmd --direct --get-all-chains
Code:
firewall-cmd --direct --get-all-rules
Regards...

thank you for the links, i will check them out..

per "Admin job", which is not my main job, just it happen the sendmail doesn't work on the box, i have to find out how to get it work.. i am a software developer. there are just too many things to understand, and learn!
 
Old 07-05-2016, 12:36 PM   #6
ardvark71
LQ Veteran
 
Registered: Feb 2015
Location: USA
Distribution: Lubuntu 14.04, 22.04, Windows 8.1 and 10
Posts: 6,282
Blog Entries: 4

Rep: Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842Reputation: 842
Quote:
Originally Posted by sarahlin View Post
i am a software developer.
Ah, that makes more sense now.

Regards...
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
sendmail stat=Deferred: Connection timed snq Linux - Server 1 12-18-2010 11:39 AM
sendmail: getting stat=Deferred: Connection timed out with server - any help? samengr Linux - Server 4 11-11-2009 01:00 PM
Sendmail dsn=4.0.0, stat=Deferred: Invalid argument error stephen_davies Linux - Software 1 07-03-2009 04:22 AM
sendmail - Connection timed out [dsn=4.0.0 stat=Deferred: Connection timed out] ananthak Linux - Software 0 04-24-2007 07:28 AM
sendmail: stat=Deferred: Connection timed out with email.mydomain.com intranet_man Linux - Software 1 07-19-2005 11:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:59 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration