LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-07-2006, 02:51 PM   #1
wossy
LQ Newbie
 
Registered: Mar 2006
Location: Derby
Distribution: Fedora Core 4
Posts: 7

Rep: Reputation: 0
"mail" shell command under FedCore4


I have ben usig FC4 for a few weeks now and I'm delving a little deeper into the shell-terminal side of things. I come from a DOS/Win backgroun and quite a bit of the foundations are easy to grasp.

My question is, is it possible to use the "mail" command to send emails to users outside my computer? I have had fun sending mesages to other users on this machine but I have not been able to work out how to configure mail to let me specify my real-world email address and settings so i can send an email to my pal in Switzerland.

I figured I would have to edit some configuration file somewhere. Can someone please enlighten me? Ideally I'd like to use the same email credentials as I have already go setup (and working) in Thunderbird.

Many thanks and well done on a really sexy linux site :thumb:
 
Old 04-07-2006, 03:54 PM   #2
chief_officer
Member
 
Registered: Mar 2006
Location: Istanbul, TR
Distribution: Red Hat, CentOS, Ubuntu
Posts: 180

Rep: Reputation: 30
You can do it. You have to configure your mail server. I don't know if you're using sendmail/postfix/exim4 as your e-mail server. But an easy solution would be to go to www.webmin.com and download & install webmin on your computer. Then log on to webmin and configure your e-mail server. When your server is configured, it will download the messages from the internet and enable you to send.

Personally I am using fetchmail for mail retrieval and postfix for mail sending (and Pine as my e-mail client).
 
Old 04-08-2006, 05:09 AM   #3
jonaskoelker
Senior Member
 
Registered: Jul 2004
Location: Denmark
Distribution: Ubuntu, Debian
Posts: 1,524

Rep: Reputation: 47
Basically speaaking, yes.

It's possible to use the program called 'mail' to (duh) deal with your mail. It's--in my not so humble opinion--completely bollox though, except perhaps for programatically shipping mail around, so I recommend a better mail client. I use mutt, which "outsources" editing outgoing mail to $EDITOR (that is, your editor of choice).

Anyways, to do so, you need to install (and correctly configure) a mail transfer agent such as exim. Read the manuals, read the config file, ask in #exim or (I guess) #fedora, that should generally work out okay.

One problem, though, is that by default mail I send out seem to be coming from jonas@jonaskoelker.homeunix.org (that is, your-username <at> your-machine).

Unless you're one leet sysadmin, you're probably going to have lower uptimes than most decent email providers, so you don't wan't to tell people to send their mail to you@yourmachine.org--but bounce messages (and other "control traffic") look at your from-address.

You fix this (or at least I fixed this) by adding a line to /etc/email-addresses, saying "jonas: jonaskoelker@users.sourceforge.net"; that is, "username: <email address I want people to think I'm sending from>". So all the mail servers you talk to will believe you're coming from (in my case) jonaskoelker@sourceforge.net, and thus send all replies to that address (use your favorite gmail, yahoo, hotmail or whatever account).

Also, this is somewhat beyond answering your question, and a bit of pimping my own preference, but here's what I do: I have a "public" account (at sourceforge) which I tell people to mail me at; all mail sent to that account is then forwarded to my private "backend" account.

The benefit of doing this is that you can switch backend account without going around telling your friends (and mailing lists) that "I've changed my email address yet again". Currently, I use mailshack as a backend, and they've worked without complaints. I then use fetchmail to automatically download any email in my backend account to my machine (via the pop3 protocol, so you can do this for free with gmail, AFAIK, for a price with yahoo mail, and not at all with bloody fascist microsoft hotmail).

Warning: if you are offended by reading a fucking few swearwords, please do not read this post
 
Old 04-08-2006, 06:27 AM   #4
wossy
LQ Newbie
 
Registered: Mar 2006
Location: Derby
Distribution: Fedora Core 4
Posts: 7

Original Poster
Rep: Reputation: 0
Thanks for the advice guys, I'll check it out.
 
  


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
Shell Script: Find "Word" Run "Command" granatica Linux - Software 5 07-25-2007 08:42 AM
shell question: the "mv" command with multiply files basher400 Linux - Newbie 4 12-19-2005 08:42 AM
Reconfigure command in "perl -MCPAN -e shell" asciimonster Linux - Software 1 09-16-2004 09:48 AM
"how do I extract a number from a text file using shell command?" sdandeker Linux - Networking 3 02-12-2004 09:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:24 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration