In article <(E-Mail Removed) .com>,
Carl Hilton <(E-Mail Removed)> wrote:
> Ok, My SMTP is unable to accept connections from non-local subnets. Is
> this an SMTP thing or something else... my inetd.conf file has TELNET
> remarked out. So, I can actually NOT TELNET in to this box from
> anywhere,but I CAN telnet in on port 25 from the local subnet. What can
> block port 25 telnet sessions?
>
> Carl
Carl, I assume you are using a default configuration.
First, your immediate question: We have to distinguish telnet as a tool
vs. TELNET as a protocol. When your inetd.conf has TELNET marked out,
this means your box will not accept connections over the usual TELNET
port.
On the otherhand, we use the telnet program as a tool to test
connections to port 25, the SMTP port. You say you can do this from
your LAN but not from outside. You'll have to find out what's blocking
these connections... Might the firewall on your box, might be that
outbound port 25 connections are blocked by the ISP where you did your
outside test (Verizon does this to reduce spam), or etc.
My first guess is you did a test from someone's cable connection and
that ISP is blocking port 25. Try from several different types of
outside connections.
Once you can telnet your.domain 25 from outside IPs, then you'll have
to configure sendmail or postfix to accept connections from certain
locations but not be an "open relay" that will be abused. Also, if you
do have an open relay, you'll quickly become a pariah on the internet.
In my setup,
- port 25 connections are accepted
- sendmail is configured to accept any mail for valid addresses in the
local domain (user accounts, aliases in /etc/mail/aliases, and domains
specified in /etc/sendmail.cf)
- sendmail is configured to accept mail for outside addresses ONLY
from certain specific ips from which my users connect... (do this in
/etc/mail/access)
- I prefer to create an ssh tunnel for ports 25 and 110 so my remote
users can send mail with me having to edit /etc/mail/access. SMTP Auth
or STMP-after-POP would also help here.
- Note: run newaliases after editing /etc/mail/aliases and rebuild
access.db after editing /etc/mail/access
(Hope I have all of this right... I don't fiddle these things every day
and it's easy to forget things.)
Hope this helps.
-- Sally
--
Sally Shears (a.k.a. "Molly")
(E-Mail Removed) -or-
(E-Mail Removed)
http://theWorld.com/~sshears