Networking Forums

Networking Forums > Computer Networking > Linux Networking > Allowing smtp access from the outside world

Reply
Thread Tools Display Modes

Allowing smtp access from the outside world

 
 
Eirik
Guest
Posts: n/a

 
      07-30-2003, 12:29 AM
When I do 'telnet localhost 25', it works, but
'telnet burk 25'(burk is the machine's name), it
says:
Trying 192.168.0.2...
telnet: Unable to connect to remote host: Connection refused

HTTP/80 and SSH/22 works, it is only SMTP that
gives me problems.

How can I allow access from other computers?

 
Reply With Quote
 
 
 
 
Juha Laiho
Guest
Posts: n/a

 
      07-31-2003, 06:57 PM
Eirik <(E-Mail Removed)> said:
>When I do 'telnet localhost 25', it works, but
>'telnet burk 25'(burk is the machine's name), it
>says:
>Trying 192.168.0.2...
>telnet: Unable to connect to remote host: Connection refused
>
>HTTP/80 and SSH/22 works, it is only SMTP that
>gives me problems.
>
>How can I allow access from other computers?


I'd guess you're running sendmail on a relatively recent RedHat distribution.
Please read the sendmail FAQ first (from http://www.sendmail.org/).
Also, RH installation/configuration documents should provide the needed
information.

If these fall short, this has been discussed for numerous times in here
as well as in comp.mail.sendmail .
--
Wolf a.k.a. Juha Laiho Espoo, Finland
(GC 3.0) GIT d- s+: a C++ ULSH++++$ P++@ L+++ E- W+$@ N++ !K w !O !M V
PS(+) PE Y+ PGP(+) t- 5 !X R !tv b+ !DI D G e+ h---- r+++ y++++
"...cancel my subscription to the resurrection!" (Jim Morrison)
 
Reply With Quote
 
James Knott
Guest
Posts: n/a

 
      07-31-2003, 08:52 PM
Eirik wrote:

> When I do 'telnet localhost 25', it works, but
> 'telnet burk 25'(burk is the machine's name), it
> says:
> Trying 192.168.0.2...
> telnet: Unable to connect to remote host: Connection refused
>
> HTTP/80 and SSH/22 works, it is only SMTP that
> gives me problems.
>
> How can I allow access from other computers?
>


Is it blocked by your ISP? Many of them take a dim view of customers
running smtp servers, because of the potenial for abuse. Can you access it
over ssh or ssl, to get around the ISP?
--

Fundamentalism is fundamentally wrong.

To reply to this message, replace everything to the left of "@" with
james.knott.
 
Reply With Quote
 
redhat_devel
Guest
Posts: n/a

 
      08-01-2003, 11:45 AM


Wang Yu III wrote:
>
>>When I do 'telnet localhost 25', it works, but 'telnet burk 25'(burk is
>>the machine's name), it says:
>>Trying 192.168.0.2...
>>telnet: Unable to connect to remote host: Connection refused HTTP/80
>>and SSH/22 works, it is only SMTP that gives me problems. How can I
>>allow access from other computers?


easy, just edit your /etc/mail/sendmail.mc

go to the line that reads:

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


change the "127.0.0.1" to "0.0.0.0" and then save the file.

type "m4 /etc/mail/sendmail.mc < /etc/sendmail.cf

then type "service sendmail restart"


Then others can connect to you fine.


--



"Windows: In a world without fences, who needs gates?"

 
Reply With Quote
 
Les Mikesell
Guest
Posts: n/a

 
      08-02-2003, 07:37 PM

"Eirik" <(E-Mail Removed)> wrote in message
news(E-Mail Removed)...
> When I do 'telnet localhost 25', it works, but
> 'telnet burk 25'(burk is the machine's name), it
> says:
> Trying 192.168.0.2...
> telnet: Unable to connect to remote host: Connection refused
>
> HTTP/80 and SSH/22 works, it is only SMTP that
> gives me problems.
>
> How can I allow access from other computers?


Use something other that RedHat's 'broken as designed'
version, or read their documentation describing what they
must think is a user-friendly configuraration interface to fix it.

---
Les Mikesell
(E-Mail Removed)


 
Reply With Quote
 
Michael Forster
Guest
Posts: n/a

 
      08-03-2003, 08:01 AM

"Les Mikesell" <(E-Mail Removed)> wrote in message
news:lqUWa.49842$Ho3.6903@sccrnsc03...
>
> "Eirik" <(E-Mail Removed)> wrote in message
> news(E-Mail Removed)...
> > When I do 'telnet localhost 25', it works, but
> > 'telnet burk 25'(burk is the machine's name), it
> > says:
> > Trying 192.168.0.2...
> > telnet: Unable to connect to remote host: Connection refused
> >
> > HTTP/80 and SSH/22 works, it is only SMTP that
> > gives me problems.
> >
> > How can I allow access from other computers?

>

Well a first start would be to check the sendmail config files,
With my Distro (SuSE) all the files are in /etc/mail
there is a file called access that says this

# Network IP-addresses have to end on octet boundary, e.g. 127.0.0
# The right hand side `<keyword or ### text>' could be one of
# the keywords
#
# OK (accept mails even if other rules would reject them)
# REJECT (reject mails even if other rules would accept them)
# RELAY (relay this domain, implicit OK within other rules)
# DISCARD (mail are discard)
#
# or an `###' RFC 821 compliant error code and some text, e.g.
#
# ERROR:"550 We don't accept mail from spammers"
#
# Examples:
#
#cyberspammer.com ERROR:"550 We don't accept mail from spammers"
#sendmail.org OK
#192.168 RELAY
#
#

you will probalby find that in this file it says
127.0.0.1 OK

this allows localhost - but if you are open to the internet do not allow all
to relay.

Then you need to run make in that directory to create the new database file
from the access file.


 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

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
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Allowing a given port to only be access by a given application nathanjlaw@yahoo.com Windows Networking 2 06-18-2008 11:17 PM
allowing access to an orange router Danny Broadband 7 07-09-2007 11:40 PM
Allowing access to my own computers within my own network Trevor Wireless Networks 2 07-20-2006 09:05 PM
NTL World and Free SMTP Server AMO Broadband 11 05-17-2005 02:01 PM
iptables; allowing external web access to 192.168.0.1; how? =?ISO-8859-1?Q?Ga=E9tan_Martineau?= Linux Networking 4 01-09-2004 11:51 PM



1 2 3 4 5 6 7 8 9 10 11