LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-11-2005, 11:52 PM   #1
podollb
Member
 
Registered: Oct 2003
Location: Grand Forks, ND
Distribution: Suse/Slackware/RH
Posts: 161

Rep: Reputation: 30
Setting user account's email (howto?)


I am wondering how I go about setting individual user account's email addresses? I have search the forum and haven't found the answer, but have grown suspicious of /etc/mail/aliases and/or MAILTO enviroment variable. Any suggestions? If it helps I am running Slackware and ran into this problem when I didn't recieve any emails from my cron jobs (assuming that is would send me an email as the comments in the crontab state). But in any event I still need to figure out how a user account is mapped to an email address since adduser doesn't setup an email initially...
 
Old 02-12-2005, 08:44 AM   #2
sigsegv
Senior Member
 
Registered: Nov 2004
Location: Third rock from the Sun
Distribution: NetBSD-2, FreeBSD-5.4, OpenBSD-3.[67], RHEL[34], OSX 10.4.1
Posts: 1,197

Rep: Reputation: 47
Without turning this into a history lesson on email -- When you assign a username, that's the email address. If you create a user "jack", then to email jack on that box, you mail jack and that's that. If you're on another box and want to mail jack,, you do mail jack@otherbox.tld and so on ...

If you're asking how to forward all mail for a user to another account, /etc/mail/aliases will accomplish that. so will putting your email address in /home/jack/.forward
 
Old 02-12-2005, 10:16 AM   #3
podollb
Member
 
Registered: Oct 2003
Location: Grand Forks, ND
Distribution: Suse/Slackware/RH
Posts: 161

Original Poster
Rep: Reputation: 30
ok, so I have to either edit /etc/mail/aliases (or /etc/aliases depending on distro) as root and add something like:

podollb: myemail@myhost.com

Or I need to create a ~/.forward file possible looking like this:

\podollb,myemail@myhost.com
 
Old 02-14-2005, 01:48 PM   #4
pegan
LQ Newbie
 
Registered: Feb 2005
Location: west bend, wi
Distribution: fedora 2
Posts: 13

Rep: Reputation: 0
not sure I understand, but have you added the email name as a user? did you give it a password? It will not work if you did not give it a password. Be careful with the "passwd" command if you asre signed is as root.
1. adduser "name"
2. passwd "name"-it will ask you to repeat the password.

try that
paul
 
Old 02-14-2005, 03:34 PM   #5
podollb
Member
 
Registered: Oct 2003
Location: Grand Forks, ND
Distribution: Suse/Slackware/RH
Posts: 161

Original Poster
Rep: Reputation: 30
I have users added but I wanted mail sent to an external email address. For instance, my username is "podollb" and I use that account regularly, but I want to setup a cron job to send myself email to podollb@hotmail.com or something like that. And I know that cron automatically emails results from scripts it runs to the user who setup the cron job, but I was confused how it could send me email if I didn't setup my email address in there...

I initially didn't have any daemon "sendmail" processes running and now I have that and I have edited my ~/.forward file it seems to work.

But what you guys are getting at is that I should setup email server on my server so I can send/check my email thru something like podollb@myhost.com where 'myhost.com' is the servers full domain name? And if so, why would that be so obvious to do - I wouldn't think that would be a common thing, at least for a newbie ?
 
Old 02-14-2005, 03:46 PM   #6
pegan
LQ Newbie
 
Registered: Feb 2005
Location: west bend, wi
Distribution: fedora 2
Posts: 13

Rep: Reputation: 0
it sounds like you are trying to relay the message. Relay messages are normally blocked but most ISP because of spam problems.

The one possibility might be to use an aliases. have you tried that?
 
Old 02-14-2005, 04:00 PM   #7
podollb
Member
 
Registered: Oct 2003
Location: Grand Forks, ND
Distribution: Suse/Slackware/RH
Posts: 161

Original Poster
Rep: Reputation: 30
I guess I am still not sure about something? Firstly it wouldn't be relaying since the server is sending a mail message to a email address right? That isn't relaying.

Are you assuming I have a mail server running on my host? Because if you didn't the whole point of emailing anything is moot right?
And if I do have a mail server running on my host, it would have the ability to send email to anyone if it is connected to the internet.

(And just for clarification, I got it working after the 2nd post in this thread via creating my ~/.forward file)
 
  


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
domain-name in isp soa - howto use for email..? captain skywave Linux - Networking 5 08-12-2005 05:36 PM
egroupware forum, email reminder howto> pudhiyavan Linux - Software 0 12-24-2004 03:33 AM
DISCUSSION: HOWTO Setup a Secure Relaying Email Server DavidPhillips LinuxAnswers Discussion 20 07-30-2004 11:46 AM
Postfix email user & linux user question. hct224 Linux - Newbie 0 11-29-2003 11:24 PM
Setting user rw rights... howto... XxAndyxX Linux - Software 4 05-07-2003 11:32 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 11:12 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