LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-10-2002, 11:52 AM   #1
nnadeau
LQ Newbie
 
Registered: Jan 2002
Posts: 11

Rep: Reputation: 0
Mail server not accpeting connections


I just installed RedHat7.2. The mail server is running. I startx and use netscape messenger to connect to the mail server, which is running on localhost. I edit the preferences and define my mail server as my <IP>:<port>. When I try to connect to the server, I get a services for port 25 disabled for security reasons error. I have modified my ipchains to allow everything. I still get that error. Even when I change my mailserver connection to localhost, I still can't connect.

Please Help
I'm at the end of my rope.
 
Old 01-10-2002, 10:39 PM   #2
xanthium
Member
 
Registered: Apr 2001
Location: Bombay ( INDIA )
Distribution: RedHat 7.x
Posts: 218

Rep: Reputation: 30
ur mail server problem .

Hi,

First try running ur sendmail without the firewall ( ipchains ).

Configure ur /etc/sendmail.cf file appropriately. Start sendmail by running the script as follows

/etc/rc.d/init.d sendmail start


if u get a error mesage that means something is wrong ( see log file /var/log/messages ).

start pop3 service from the file /etc/xinetd/pop3 file.


Hope this solves problem.


Regards ,
Xanthium.
 
Old 01-11-2002, 08:49 AM   #3
nnadeau
LQ Newbie
 
Registered: Jan 2002
Posts: 11

Original Poster
Rep: Reputation: 0
Thanks
 
Old 01-11-2002, 02:03 PM   #4
nnadeau
LQ Newbie
 
Registered: Jan 2002
Posts: 11

Original Poster
Rep: Reputation: 0
New Problem

The mail server is not accepting connections from outside the network. When I do a netstat -an, I see that the server is only listening to 127.0.0.1 for port 25. The firewall is off. Is there something else I'm missing?

Any suggestions will be greatly appreciated.
 
Old 01-12-2002, 12:59 AM   #5
penseur2
Member
 
Registered: Jan 2002
Location: Chennai India
Distribution: Red Hat
Posts: 42

Rep: Reputation: 15
sendmail

hi,

redhat tightened up sendmai starting from 7.1

there's a line in /etc/mail/sendmail.mc
with address and port specification . it's well commented. just put a dnl at the start of that line
and run
m4 /etc/mail/sendmail.mc > /etc/sendmail.cf

then restart sendmail
 
Old 01-12-2002, 01:45 AM   #6
xanthium
Member
 
Registered: Apr 2001
Location: Bombay ( INDIA )
Distribution: RedHat 7.x
Posts: 218

Rep: Reputation: 30
Lightbulb listning on localhost

Hi ,

Yeh something is definately wrong !!! so here is the solution .. u need to edit the file /etc/sendmail.cf .

In this file u will find something like ---- >

# SMTP daemon options

O DaemonPortOptions=Port=smtp,Addr=127.0.0.1, Name=MTA



u need to change it to ---- >


O DaemonPortOptions=Port=smtp,Addr=192.168.100.134, Name=MTA


( *** here iam assuming ur linux box ip is 192.168.100.134,
pls substitute it with ur real ip address *** ).


NOTE : Before making any changes its advisable to make a copy of the original configuration file.


Now restart the sendmail daemon with the script :
/etc/rc.d/init.d/sendmail restart

Now ur mail server will be listning on the requested ip .

Hope this solves the problem.


Regards ,
Xanthium.

Last edited by xanthium; 01-12-2002 at 01:51 AM.
 
Old 01-12-2002, 01:57 AM   #7
johnlee
Member
 
Registered: Oct 2001
Location: China
Distribution: RedHat 7.0
Posts: 43

Rep: Reputation: 15
Sendmail Security Problem

Dear Friend,
Relaying is by default denied in sendmail from redhat 6.2 and onword you must create a file named "ip_allow" in /etc/mail dir "/etc/mail/ip_allow" file. and past your network ip address here like

192.168.0.1
192.168.0.2

and so on. Then sendmail accept connections from these ip on port 25 and relay their mails

Thanks and Regards,

John Lee
 
Old 01-12-2002, 02:02 AM   #8
xanthium
Member
 
Registered: Apr 2001
Location: Bombay ( INDIA )
Distribution: RedHat 7.x
Posts: 218

Rep: Reputation: 30
Question Relaying ??

Hi Johnlee ,

Yes ur absolutely right about relaying but i guess this is not the real culprit. Sendmail in this case is not listning on the external interface ( instead listning on 127.0.0.1 ie; loop back interface ) ..... the file u mentioned will allow the mentioned ip's to use ur mail server as a RELAY server ( ie; relay mails on their behalf to external world !).

I hope my above mentioned post will help solve the above mentioned problem.

Regards,
Xanthium.

Last edited by xanthium; 01-12-2002 at 02:04 AM.
 
Old 01-14-2002, 08:46 AM   #9
bluecadet
Member
 
Registered: Oct 2001
Distribution: MD81 RH71
Posts: 555

Rep: Reputation: 30
afaik the Addr= option in the cf file can simply be removed, which is what sendmail docs recommend. and also /etc/mail/ip_allow is not a standard file i don't think (wrong???) the normal way is to use /etc/mail/access instead.#, using the access-db feature on sendmail
 
Old 01-16-2002, 01:00 AM   #10
karunesh
Member
 
Registered: Jan 2002
Location: India
Distribution: CentOS/Mandriva
Posts: 126

Rep: Reputation: 15
Thumbs up Mail Servre

Just look into yout /etc/mail/local-host-table file that you have entries for your .(localhost+For whatever host you like to receive the mails). .And also make sure that you have proper MX entry for the same hosts in your DNS server
 
  


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
qmail - mail server refusing connections? shadoxity Linux - Software 1 04-06-2005 03:41 AM
can we configure a Linux server with mail server,file server and web server kumarx Linux - Newbie 5 09-09-2004 06:21 AM
X server outside connections slackwarefan Linux - General 1 02-01-2004 07:31 PM
Mail Server Delimiter for alternate mail server venugopalmk Linux - Networking 2 04-29-2003 04:55 AM
Mail server not accpeting connections nnadeau Linux - Security 1 01-14-2002 08:34 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 05:21 AM.

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