LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   sending mail via cli (https://www.linuxquestions.org/questions/linux-networking-3/sending-mail-via-cli-13306/)

Chijtska 02-01-2002 01:39 PM

sending mail via cli
 
lets say i want to send mail via the cli, how would i go about doing that?

DavidPhillips 02-01-2002 09:44 PM

I have to know this...

what is the cli

Chijtska 02-01-2002 10:41 PM

it is the command line interface :D...

DavidPhillips 02-01-2002 11:40 PM

OH:p


just use the mail command

acid_kewpie 02-02-2002 06:16 AM

there are loads of ways, i only use Pine as my email client, as it's so much easier and fast the sylpheed or all that rubbish.

david... not impressed! :P

DavidPhillips 02-02-2002 01:01 PM

I use pine too :)

jeremy 02-02-2002 03:06 PM

You could do something like
Quote:

echo "Message" | mail -s Subject email@address.com
You can also use sendmail from a command line.

dorward 02-02-2002 07:25 PM

I would use mutt:

mutt email@ddress.com -s "Some subject" < file_containing body

or

<body on STDIN> | mutt email@ddress.com -s "Some subject"

--

Or you can run mutt and use the console interface if that's what you ment.

Chijtska 02-02-2002 09:28 PM

mutt...
 
how do you get mutt to download your email messages...also what directory do they download to?

DavidPhillips 02-02-2002 10:06 PM

if you want to get mail on command line you could try fetchmail


just do this

fetchmail -u username mail.your.email.server




did you try pine yet?

Chijtska 02-02-2002 10:30 PM

port 25
 
if i install fetchmail and sendmail does the smtp port stay open all the time? i know that might sound paranoid but i really like my machine to have no security holes...

DavidPhillips 02-02-2002 11:25 PM

you are talking about checking mail on an outside server I think

you would not need to be running a server for that.

you establish the connection to the server and get your mail.


sendmail is setup as a local mail delivery system by default, no one can connect to it from anywhere but locally.

dorward 02-03-2002 02:32 AM

Re: port 25
 
Quote:

Originally posted by Chijtska
if i install fetchmail and sendmail does the smtp port stay open all the time? i know that might sound paranoid but i really like my machine to have no security holes...
Either configure the server to listen on the loopback interface only, or use ipchains / iptables to block access to the port from anything but localhost.

Chijtska 02-03-2002 08:32 AM

ipchains/iptables
 
where would the files for this be located? i can not find them anywhere using locate or whereis...

acid_kewpie 02-03-2002 08:48 AM

if they're installed, they'll be on root's path. it would seem that they're not, they'er not on my md81 desktop box. install the rpms (search rpmfind.net if you need to) and i recommedn using fiiestarter to configure them


All times are GMT -5. The time now is 08:52 PM.