Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cannot connect on port 25 remotely

Status
Not open for further replies.

Toyman

Programmer
Jun 19, 2001
68
0
0
GB
Hi

This is my problem...

I've got 'n Red Hat Linux 9 server running sendmail on port 25 .... but I cannot connect from any other maching to that port.

I can do telnet server 25 on the server and it works fine.
But from any other machine it does not respond to the HELO command. (or any)
The sendmail is running because I can send messages from the server okay (using any account)

POP3 is fine on the server and there is no network problem.
All other servecis is fine.....

Thanks
Toyman
 
RedHat has sendmail only looking at the loopback device (127.0.0.1) for incoming mail by default. Look for a line that looks like this in sendmail.mc:

DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA')dnl

Comment this line out by placing "dnl " at the beginning, changing 127.0.0.1 to the machines eth0 ip or delete it all together. When you are done editing, issue this command to rebuild sendmail.cf.

m4 /etc/mail/sendmail.>
 
oops cut myself off. The command should be:

m4 /etc/mail/sendmail.mc > /etc/mail/sendmail.cf

 
Thanks RhythmAce

That was it !!!!!!!

Do you know how I can change my access file so that the relay can accept all pc in say 192.168.0.* !!!!
Currently I need to set the pc's on by one in this file ...

If the pc's ip address is not static I want it stil to be able to smtp


Thanks

Toyman
VB / Java Programmer
carel_dutoit@yahoo.co.uk
 
You would use a line like this:

192.168.0 RELAY

This is the same as saying 192.168.0.* (your entire subnet)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top