- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- mailx port
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-23-2010 05:37 AM
тАО04-23-2010 05:37 AM
mailx port
Ten points for the right answer!
Marty
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-23-2010 06:07 AM
тАО04-23-2010 06:07 AM
Re: mailx port
> [...] I'm sure [...]
Because ...?
You can run a simple test using Telnet to see
if there's some obvious problem. Something
like:
telnet server_system 25
(A suitable Web search should reveal how to
send an actual e-mail message that way, too.)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-23-2010 06:24 AM
тАО04-23-2010 06:24 AM
Re: mailx port
Marty
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-23-2010 06:29 AM
тАО04-23-2010 06:29 AM
Re: mailx port
> this environment.
What, exactly, does that mean? Disabling the
Telnet service on some system does not
normally affect anyone's ability to run a
Telnet client program, especially when one
is not using the normal Telnet port (and/or
one is doing it on some other system).
> telnet server_system 25
Did you actually _try_ this, or is this
another case of "I'm sure" without any actual
evidence?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-23-2010 06:54 AM
тАО04-23-2010 06:54 AM
Re: mailx port
You should view the mail logs of your system to see what happens to the message you tried to send with mailx. Usually this log is at /var/log/mail.log.
If it's a firewall issue, then the messages might still be in the local outgoing mail queue: use the "mailq" command to view the mail queue status.
When the local MTA attempts to deliver outgoing mail, it normally uses the SMTP protocol, which uses TCP port 25 as standard. If SMTP-over-SSL is configured for some particular mail destination, TCP port 465 might also be used, but this is somewhat uncommon.
MK
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-23-2010 07:13 AM
тАО04-23-2010 07:13 AM
Re: mailx port
When I try to telnet I get this:
telnet localhost 25
Trying 127.0.0.1...
telnet: connect to address 127.0.0.1: Connection refused
telnet: Unable to connect to remote host: Connection refused
Marty
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-23-2010 07:29 AM
тАО04-23-2010 07:29 AM
Re: mailx port
/var/log/maillog has the following entry after I execute a mailx command:
Apr 23 15:15:17 lnxopsd1as01 sendmail[8010]: o3NFFHwd008010: to=Marty.Johnson@staples.com, ctladdr=root (0/0), delay=00:00:00, xdelay=00:00:00, mailer=relay, pri=30045, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1]
Marty
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-23-2010 08:20 AM
тАО04-23-2010 08:20 AM
Re: mailx port
That is the key. The connection is refused. That was also the case with your 'telnet localhost 25'.
There are 2 possiblities:
1) There is nothing listening on port 25
2) Port 25 may be blocked by your firewall.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-23-2010 08:48 AM
тАО04-23-2010 08:48 AM
Re: mailx port
I suspect it is a firewall issue.
lsof -i:25 shows nothing is listening on port 25. It also shows nothing is listening on a node where I can send a successful mail message.
Marty
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-23-2010 09:09 AM
тАО04-23-2010 09:09 AM
Re: mailx port
Marty
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-23-2010 09:12 AM
тАО04-23-2010 09:12 AM
Re: mailx port
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-23-2010 10:49 AM
тАО04-23-2010 10:49 AM
Re: mailx port
"Connection refused" normally means that you
could communicate with the server system, but
that no one is listening at the requested
port. That is, no server is registered with
inetd (or equivalent) for that port, or else
no inetd-independent server is running which
would listen at that port.
> [...] sendmail was not running.
Like that. It's possible, but relatively
rare, that a firewall will cause that
complaint. Normally, a firewall blockage
will look more like an immediate connection
failure, not a no-listener-at-this-port
problem.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-23-2010 10:58 AM
тАО04-23-2010 10:58 AM
Re: mailx port
> [...] My problem is I don't know which port
> mailx uses, so I don't know which port to
> open.
>
> Ten points for the right answer!
> SMTP normally uses port 25.
That answer was exactly what you asked for.
It's not my fault that you were asking the
wrong question (or that you were so tardy in
running the suggested test).
> [...] I'm sure it is a firewall issue. [...]
> I suspect it is a firewall issue. [...]
Sometimes actual evidence can be more useful
than either groundless certainty or
suspicion.