LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Mail server not accpeting connections (https://www.linuxquestions.org/questions/linux-networking-3/mail-server-not-accpeting-connections-11497/)

nnadeau 01-10-2002 11:52 AM

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.

xanthium 01-10-2002 10:39 PM

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.
:Pengy:

nnadeau 01-11-2002 08:49 AM

Thanks

nnadeau 01-11-2002 02:03 PM

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.
:confused:

penseur2 01-12-2002 12:59 AM

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

xanthium 01-12-2002 01:45 AM

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.

johnlee 01-12-2002 01:57 AM

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

xanthium 01-12-2002 02:02 AM

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.:)

bluecadet 01-14-2002 08:46 AM

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

karunesh 01-16-2002 01:00 AM

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:Pengy:


All times are GMT -5. The time now is 11:36 PM.