LinuxQuestions.org
Review your favorite Linux distribution.
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 09-15-2010, 06:16 PM   #1
rjo98
Senior Member
 
Registered: Jun 2009
Location: US
Distribution: RHEL, CentOS
Posts: 1,668

Rep: Reputation: 46
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, 07:10 PM   #2
gdejonge
Member
 
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.

Code:
gerrard@nova:~/dwhelper> telnet localhost 25
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
220 nova.gdj.local ESMTP Postfix
If you instead get a message like this
Code:
gerrard@nova:~/dwhelper> telnet localhost 25
Trying 127.0.0.1...
telnet: connect to address 127.0.0.1: 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

_________________
Gerrard
 
Old 09-15-2010, 09:53 PM   #3
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,241

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

The default sendmail.cf 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/sendmail.mc file, and either change the address specified in the Addr= option of the DAEMON_OPTIONS directive from 127.0.0.1 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/sendmail.cf by executing the following command:

m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf
http://www.linuxtopia.org/online_boo...l-mta-sendmail

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


Reply


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


All times are GMT -5. The time now is 05:06 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration