LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 09-15-2001, 05:24 PM   #1
TomHodder
LQ Newbie
 
Registered: Sep 2001
Posts: 12

Rep: Reputation: 0
Question very simple mail question [hopefully]


I have redHat 7.1 installed and running fine.
I know that sendmail is working fine because I can do this ;

[TommyH@development /etc]$ /usr/sbin/sendmail t.hodder@globalgold.co.uk
heelo
test
test

.
[TommyH@development /etc]$
and it sends the email.

I can also do this;
[TommyH@development /etc]$ mail
No mail for TommyH

so there seems to be a local mail account for TommyH, but I can't send mail to that local account from another local account.
[root@development /etc]# mail TommyH
[root@development /etc]# TommyH... User unknown
/root/dead.letter... Saved message in /root/dead.letter

Any ideas on what I need to do to set up local mail for this account.?

Cheers

Tom Hodder

Last edited by TomHodder; 09-16-2001 at 08:13 AM.
 
Old 09-15-2001, 05:41 PM   #2
TomHodder
LQ Newbie
 
Registered: Sep 2001
Posts: 12

Original Poster
Rep: Reputation: 0
Question addition

There is no file entry for TommyH in
/var/spool/mail
which I imagine is needed to receive mail
 
Old 09-15-2001, 06:04 PM   #3
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 46
I get the same error when I use mail to send to a local user. What happens if you use something like Pine from the command line??

cheers

Jamie...
 
Old 09-15-2001, 06:13 PM   #4
TomHodder
LQ Newbie
 
Registered: Sep 2001
Posts: 12

Original Poster
Rep: Reputation: 0
pine

pine create its own mail folder in the home directory,
in this case /home/TommyH/mail
but this is for its own storage and apparently makes no difference

I tried creating the file TommyH in /var/spool/mail
and then trying various file permissions and then restarting sendmail via /etc/rc.d/init.d/sendmail restart but this seemed not to work. (I was not very optimistic that this was going to work anyway)

Even so, I don't want to be creating these files manually every time I add a user to the system.
 
Old 09-15-2001, 06:14 PM   #5
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 46
I was thinking more for *sending* the mail from root using pine to the TommyH account! I would expect the spool files to only exist when the first email for that user arrives.

cheers

Jamie...
 
Old 09-15-2001, 06:16 PM   #6
TomHodder
LQ Newbie
 
Registered: Sep 2001
Posts: 12

Original Poster
Rep: Reputation: 0
I found this article

http://www.splitinfinity.com/tips/5.html

but it does not mention anything about local mail accounts, and seems to assume that they are created automatically, which leads me to think there might be a problem with the way my system is creating users.
 
Old 09-15-2001, 06:18 PM   #7
jharris
Senior Member
 
Registered: May 2001
Location: Bristol, UK
Distribution: Slackware, Fedora, RHES
Posts: 2,243

Rep: Reputation: 46
How are you creating your users? I've always just used adduser as root, but there are lots of graphical tools out there.

cheers

Jamie...
 
Old 09-15-2001, 06:19 PM   #8
TomHodder
LQ Newbie
 
Registered: Sep 2001
Posts: 12

Original Poster
Rep: Reputation: 0
no luck, same message;

[root@development TommyH]# mail TommyH
Subject: Hello

test
test

.
Cc:
[root@development TommyH]# TommyH... User unknown
/root/dead.letter... Saved message in /root/dead.letter


I also tried;

[root@development TommyH]# /usr/sbin/sendmail TommyH
TommyH... User unknown


/.
.
 
Old 09-15-2001, 06:22 PM   #9
TomHodder
LQ Newbie
 
Registered: Sep 2001
Posts: 12

Original Poster
Rep: Reputation: 0
the first account, TommyH, was created during the install of redhat 7.1, but I have tried creating others using adduser with no luck
 
  


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
Ubuntu Fluxbox simple question, simple answer? generallimptoes Linux - Software 3 09-26-2005 03:03 PM
Simple mail forwarding? zymurgist Linux - Networking 1 03-24-2004 07:01 PM
Installing Programs - A simple question from my simple mind jmp875 Linux - Newbie 6 02-18-2004 10:03 PM
Simple question about e-mail mchanea Linux - Networking 1 02-16-2004 04:02 AM
simple question seeking simple answer enzo250gto Linux - Newbie 1 10-27-2001 05:08 AM


All times are GMT -5. The time now is 08:35 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration