Re: mailx (how is it able to send email?!?)
- From: "J.O. Aho" <user@xxxxxxxxxxx>
- Date: Sun, 24 Dec 2006 21:08:00 +0100
Beowulf wrote:
I have mailx on my system, it was installed yesterday as part of the
package installation of aide. sudo apt-get install aide
(mailx got installed as a dependency)
My question is I do not really understand how mailx is able to send me
email, and it does because I tested it:
echo "Hi" | mailx -s "A test email message" myemail@xxxxxxxxx
How does the above work? I mean, when I set up an email account with
evolution or kmail I needed to specify my mail server of my ISP, username,
password, etc.
mailx tries to connect to the local SMTP (the one running on your computer), at least on Unix and Unix like OS's there are some kind of SMTP installed, they usually only listens to the localhost (127.0.0.1) and can deliver mail to your local machine or send it to a remote SMTP, but won't accept mail from the outside.
So in theory if I wanted to, could I
use mailx for all my email, have friends send me email somehow and then
read that email with mailx?
Yes, if you have a SMTP running on your machine which is accessible from the the internet and your ISP isn't blocking incoming traffic on port 25.
//Aho
--
//Aho
.
- References:
- mailx (how is it able to send email?!?)
- From: Beowulf
- mailx (how is it able to send email?!?)
- Prev by Date: Re: cannot print on cups server
- Next by Date: Re: cannot print on cups server
- Previous by thread: mailx (how is it able to send email?!?)
- Next by thread: Re: mailx (how is it able to send email?!?)
- Index(es):
Relevant Pages
|