LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-28-2003, 04:13 PM   #1
ssrikant
Member
 
Registered: Apr 2003
Location: US
Posts: 74

Rep: Reputation: 15
Angry sendmail problem is pissing me off


Hi have installed sendmail and postfix in my linux box and am actually trying to run a mail server on my linux box well both telnet localhost 110 and telnet xxx.com 110 seem to work fine with my machine ...but the problem comes when i try telnet localhost 25 or telnet xxx.com 25 each giving me mesg connection to remote terminal refused.

I would like to also ask how to find out the sendmail deamon is initialted and running in backgroup

any insight is appreciated
-srikant
 
Old 04-28-2003, 04:21 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
Re: sendmail problem is pissing me off

Quote:
Originally posted by ssrikant

I would like to also ask how to find out the sendmail deamon is initialted and running in backgroup

-srikant
Sorry - this doesn't make sense to me. Are you asking if the process is running? then "ps -ef | grep sendmail"

As for "telnet host 25" - are you doing this from the server itself? and using the loopback address? It could be a firewall issue.
 
Old 04-28-2003, 04:45 PM   #3
ssrikant
Member
 
Registered: Apr 2003
Location: US
Posts: 74

Original Poster
Rep: Reputation: 15
how to disable the firewall it were iptables stop then i guess i have already done that

-srikant
 
Old 04-28-2003, 04:46 PM   #4
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 79
That would do it - did you try telneting to the loopback from the server?
 
Old 04-28-2003, 05:56 PM   #5
ssrikant
Member
 
Registered: Apr 2003
Location: US
Posts: 74

Original Poster
Rep: Reputation: 15
i can telnet to the server frm remote and local either wayz using telnet server

but if use

telnet server 25 both remote and local it sayz
telnet:unable to connect ot remote host:connection refused

-srikant

Last edited by ssrikant; 04-28-2003 at 05:59 PM.
 
Old 04-28-2003, 05:58 PM   #6
markus1982
Senior Member
 
Registered: Aug 2002
Location: Stuttgart (Germany)
Distribution: Debian/GNU Linux
Posts: 1,467

Rep: Reputation: 46
You need to bind it to the external ip address not the loopback one. check sendmail.mc/cf daemon_options or something named like that!
 
Old 04-28-2003, 06:00 PM   #7
ssrikant
Member
 
Registered: Apr 2003
Location: US
Posts: 74

Original Poster
Rep: Reputation: 15
i am afraid i dont understand you
sry
-srikant
 
Old 04-28-2003, 06:03 PM   #8
ssrikant
Member
 
Registered: Apr 2003
Location: US
Posts: 74

Original Poster
Rep: Reputation: 15
also when i run nmap on the server the port 25 does not as open
 
Old 04-28-2003, 06:16 PM   #9
jeremy
root
 
Registered: Jun 2000
Distribution: Debian, Red Hat, Slackware, Fedora, Ubuntu
Posts: 13,602

Rep: Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083Reputation: 4083
http://www.linuxquestions.org/questi...882#post180882 should help

--jeremy
 
Old 04-28-2003, 06:19 PM   #10
markus1982
Senior Member
 
Registered: Aug 2002
Location: Stuttgart (Germany)
Distribution: Debian/GNU Linux
Posts: 1,467

Rep: Reputation: 46
check /etc/mail/sendmail.mc and replace XXX.XXX.XXX.XXX with your external IP.

...
DAEMON_OPTIONS(`Port=smtp,Addr=XXX.XXX.XXX.XXX, Name=MTA')
...


then do (pathes might need to be adjusted)

m4 /etc/mail/sendmail.mc > /etc/sendmail.cf
/etc/init.d/sendmail restart

and it should work.
 
Old 04-28-2003, 06:20 PM   #11
markus1982
Senior Member
 
Registered: Aug 2002
Location: Stuttgart (Germany)
Distribution: Debian/GNU Linux
Posts: 1,467

Rep: Reputation: 46
Quote:
Originally posted by jeremy
http://www.linuxquestions.org/questi...882#post180882 should help

--jeremy
hey that's not fair I was just posting :-p :-)
 
Old 04-28-2003, 07:18 PM   #12
ssrikant
Member
 
Registered: Apr 2003
Location: US
Posts: 74

Original Poster
Rep: Reputation: 15
127.0.0.1

I am replacing my ipaddress with the external ip address but it sayz that i dont have permission denied to make any changes
-srikant
 
Old 05-28-2003, 09:39 AM   #13
shottz
LQ Newbie
 
Registered: May 2003
Distribution: GNU/REDHAT/DEBIAN/small
Posts: 1

Rep: Reputation: 0
As long as your dns is working...and assuming you are using sendmail version 8.11.x or greater...
edit the sendmail.cf file and look for a line like:
O DaemonPortOptions=Port=smtp,Addr=127.0.0.1, Name=MTA

leave this and add

O DaemonPortOptions=Port=smtp,Addr=ACTUAL-IP-ADDRESS, Name=MTA

restart sendmail and you should be able to connect.

also, update your sendmail version...
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
XP is pissing me off!! BajaNick General 23 12-06-2003 05:31 AM
J2RE 1.4. Pissing me off.. JoeLinux Linux - Software 5 12-02-2003 04:26 PM
linux is pissing me off.... iLLuSionZ Linux - Newbie 22 12-01-2003 04:36 PM
Rh9 Is Pissing Me Off! Underworld Linux - Software 18 07-16-2003 02:02 PM
smbpasswd is pissing me off. Need help JoeLinux Linux - Networking 2 06-09-2002 12:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 12:29 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