Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^3: emailing from one debian system to another

by stevieb (Canon)
on May 19, 2022 at 02:24 UTC ( [id://11143994]=note: print w/replies, xml ) Need Help??


in reply to Re^2: emailing from one debian system to another
in thread getting SMTP capability working

One issue I need to get clear is whether Digital Ocean is giving me port 25

Very simple to test this for yourself, but do note that most virtual host providers block SMTP traffic. Log into your server, and run the netcat command, listening on port 25 (need sudo because the port number is less-than 1024).

steve@cesium:~$ sudo nc -l 25

Now, on a remote machine, using netcat again, create a connection to the server, and type something, and hit ENTER:

steve@maezi ~ >nc cesium 25 hello, world!

If port 25 is open on your server, you'll see your typed message on its console:

steve@cesium:~$ sudo nc -l 25 hello, world!

You can also type something while on the server while the nc command is still running on both machines, and the message will show up on the machine you connected to the server with; in essence, a little chat program ;)

Replies are listed 'Best First'.
Re^4: emailing from one debian system to another
by Aldebaran (Curate) on May 19, 2022 at 03:19 UTC

    hey stevie, looks like I'm getting through from the local machine:

    $ nc HOSTNAME 25 hello, email world hey stevie, it worked! ^C $

    to the remote target:

    Last login: Thu May 19 00:12:40 2022 wilma@fourth:~$ sudo -i [sudo] password for wilma: root@fourth:~# which nc /usr/bin/nc root@fourth:~# sudo nc -l 25 hello, email world hey stevie, it worked! root@fourth:~#
    You can also type something while on the server while the nc command is still running on both machines, and the message will show up on the machine you connected to the server with; in essence, a little chat program ;)

    Yeah, I guess so.:) Reminds me of the old days when we really used telnet....

      You now know that you should be good to go to have an SMTP server listening on your system.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11143994]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (6)
As of 2024-04-18 21:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found