LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 02-01-2002, 02:39 PM   #1
Chijtska
Member
 
Registered: Jan 2002
Location: High Falls, GA
Distribution: Mandrake8.2, FreeBSD, Solaris
Posts: 362

Rep: Reputation: 30
sending mail via cli


lets say i want to send mail via the cli, how would i go about doing that?
 
Old 02-01-2002, 10:44 PM   #2
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
I have to know this...

what is the cli
 
Old 02-01-2002, 11:41 PM   #3
Chijtska
Member
 
Registered: Jan 2002
Location: High Falls, GA
Distribution: Mandrake8.2, FreeBSD, Solaris
Posts: 362

Original Poster
Rep: Reputation: 30
it is the command line interface ...
 
Old 02-02-2002, 12:40 AM   #4
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
OH


just use the mail command
 
Old 02-02-2002, 07:16 AM   #5
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984
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
 
Old 02-02-2002, 02:01 PM   #6
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
I use pine too
 
Old 02-02-2002, 04:06 PM   #7
jeremy
root
 
Registered: Jun 2000
Distribution: Debian, Red Hat, Slackware, Fedora, Ubuntu
Posts: 13,583

Rep: Reputation: 4056Reputation: 4056Reputation: 4056Reputation: 4056Reputation: 4056Reputation: 4056Reputation: 4056Reputation: 4056Reputation: 4056Reputation: 4056Reputation: 4056
You could do something like
Quote:
echo "Message" | mail -s Subject email@address.com
You can also use sendmail from a command line.
 
Old 02-02-2002, 08:25 PM   #8
dorward
Member
 
Registered: Sep 2001
Distribution: Gentoo
Posts: 760

Rep: Reputation: 31
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.
 
Old 02-02-2002, 10:28 PM   #9
Chijtska
Member
 
Registered: Jan 2002
Location: High Falls, GA
Distribution: Mandrake8.2, FreeBSD, Solaris
Posts: 362

Original Poster
Rep: Reputation: 30
mutt...

how do you get mutt to download your email messages...also what directory do they download to?
 
Old 02-02-2002, 11:06 PM   #10
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
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?
 
Old 02-02-2002, 11:30 PM   #11
Chijtska
Member
 
Registered: Jan 2002
Location: High Falls, GA
Distribution: Mandrake8.2, FreeBSD, Solaris
Posts: 362

Original Poster
Rep: Reputation: 30
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...
 
Old 02-03-2002, 12:25 AM   #12
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
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.
 
Old 02-03-2002, 03:32 AM   #13
dorward
Member
 
Registered: Sep 2001
Distribution: Gentoo
Posts: 760

Rep: Reputation: 31
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.
 
Old 02-03-2002, 09:32 AM   #14
Chijtska
Member
 
Registered: Jan 2002
Location: High Falls, GA
Distribution: Mandrake8.2, FreeBSD, Solaris
Posts: 362

Original Poster
Rep: Reputation: 30
ipchains/iptables

where would the files for this be located? i can not find them anywhere using locate or whereis...
 
Old 02-03-2002, 09:48 AM   #15
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984Reputation: 1984
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Postfix mail transfer agent not sending mail locally or to other servers sketelsen Linux - Software 3 02-09-2006 12:16 PM
Cron mail sending using outside SMTP mail server Utah Linux - Software 6 08-24-2005 08:44 PM
sending mail via CLI RomanG Linux - Newbie 6 03-10-2005 12:06 AM
mail --- cli Thrasher Linux - Software 3 03-19-2004 10:47 PM
Sending an automatic mail using bash + mail Minuteman Linux - Software 4 08-21-2003 01:49 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:30 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration