Help answer threads with 0 replies.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


  Search this Thread
Old 09-15-2010, 05:16 PM   #1
Senior Member
Registered: Jun 2009
Location: US
Distribution: RHEL, CentOS
Posts: 1,748

Rep: Reputation: 49
sendmail, verifying its working

I have a sendmail server that just got setup, but I dont think its setup right. Isn't the most basic test to try to telnet to the server with

telnet serverIP 25

which should connect? My server isn't doing that, even though sendmail services are running.
Old 09-15-2010, 06:10 PM   #2
Registered: Aug 2010
Location: Netherlands
Distribution: Kubuntu, Debian, Suse, Slackware
Posts: 317

Rep: Reputation: 73
Yes, telnet Ipadress 25 should give you something like this.

gerrard@nova:~/dwhelper> telnet localhost 25
Connected to localhost.
Escape character is '^]'.
220 nova.gdj.local ESMTP Postfix
If you instead get a message like this
gerrard@nova:~/dwhelper> telnet localhost 25
telnet: connect to address Connection refused
It can mean
a) that the service isn't running
b) the service isn't listening on the correct port
c) the server is running a firewall that's blocking the port

Old 09-15-2010, 08:53 PM   #3
LQ Guru
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.10, Centos 7.3
Posts: 17,548

Rep: Reputation: 2423Reputation: 2423Reputation: 2423Reputation: 2423Reputation: 2423Reputation: 2423Reputation: 2423Reputation: 2423Reputation: 2423Reputation: 2423Reputation: 2423
The default setting in RHEL/Centos is for sendmail not to talk to the outside world (for security). You can change that

The default file does not allow Sendmail to accept network connections from any host other than the local computer. To configure Sendmail as a server for other clients, edit the /etc/mail/ file, and either change the address specified in the Addr= option of the DAEMON_OPTIONS directive from to the IP address of an active network device or comment out the DAEMON_OPTIONS directive all together by placing dnl at the beginning of the line. When finished, regenerate /etc/mail/ by executing the following command:

m4 /etc/mail/ > /etc/mail/

I recommend the latter option (comment out that line entirely).


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 not working RMLinux Linux - Newbie 2 02-16-2009 01:00 AM
Changing port in sendmail, sendmail not working. flschou Linux - Newbie 4 01-16-2008 09:03 AM
sendmail is not working & on $prompt the cmd sendmail hangs Pavan mahoorker Linux - Software 1 04-04-2006 03:57 PM
Verifying that email is being send - sendmail agallant Linux - Software 3 02-09-2006 09:12 PM
Help Getting Sendmail working Like I want it shilo Slackware 14 06-07-2004 01:34 PM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:49 PM.

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