LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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-20-2005, 06:59 AM   #1
anjani.78
Member
 
Registered: Mar 2005
Location: india
Distribution: debian , redhat
Posts: 30

Rep: Reputation: 15
unable to read and compose mail


i just configured sendmail using sendmail.mc and using m4 .
i had commented out
dnl DAEMON_OPTIONS(Port=smtp.Addr=127.0.0.1, Name=MTA')

after saving it
m4 sendmail.mc > /etc/mail/sendmail.cf

and service sendmail restart


im able to send mail to all user on existing user through root, but
when login as user i try

anjani@pucsd]$ mail
/tmp/RsmgapKN : Permission denied


same thing happens with mutt

well it show recieved mail but does not allow to read and compose

its gives
/tmp/mutt-pucsd-1900-0: Permission denied {errno =13}

please help me
 
Old 04-21-2005, 12:29 PM   #2
jonr
Senior Member
 
Registered: Jan 2003
Location: Kansas City, Missouri, USA
Distribution: Ubuntu
Posts: 1,040

Rep: Reputation: 47
I believe you need to set an alias so that you can use mail as a normal user. That's what I had to do.

Look at the contents of the file /etc/aliases, where it explains (kind of!) what you need to do. There is a line that sets the mail to be delivered to a "human" user and that's where you put your normal user name.

I hope this helps.
 
Old 04-25-2005, 01:21 AM   #3
anjani.78
Member
 
Registered: Mar 2005
Location: india
Distribution: debian , redhat
Posts: 30

Original Poster
Rep: Reputation: 15
thanks for replay first
i already made changes in /etc/aliases file than also i am getting this error , its shows messages in mutt , not let you to read , when i changed the permission for /tmp to 777 every thing was working fine , but i think this is wrong to do so because it will let other to read your mails
 
Old 04-25-2005, 08:42 AM   #4
jonr
Senior Member
 
Registered: Jan 2003
Location: Kansas City, Missouri, USA
Distribution: Ubuntu
Posts: 1,040

Rep: Reputation: 47
Quote:
Originally posted by anjani.78
thanks for replay first
i already made changes in /etc/aliases file than also i am getting this error , its shows messages in mutt , not let you to read , when i changed the permission for /tmp to 777 every thing was working fine , but i think this is wrong to do so because it will let other to read your mails
Try chown -R anjani:anjani /tmp and then chmod -R u+rxw /tmp and that should solve that problem. (Substitute whatever your normal user name is, for "anjani," if that isn't it.) Only the owner of the file (and root) can read the files then.
 
Old 05-13-2005, 10:42 AM   #5
jonr
Senior Member
 
Registered: Jan 2003
Location: Kansas City, Missouri, USA
Distribution: Ubuntu
Posts: 1,040

Rep: Reputation: 47
Glad you found the probable solution.

Though the question the other user asked regarded sendmail, postfix does need a "human" user designated. Here's the quote from the comments in /etc/aliases:

Code:
 For various security reasons, postfix WILL NOT deliver mail as root, so
# ensure that the root alias is aliased to a HUMAN user, as otherwise
# mail may get delivered to the $default_privs user (nobody).
I used to use sendmail and had all kinds of trouble getting it to work and stay working. Then I switched to postfix and mutt, after the "mail" command used with sendmail ceased working, and it's been relatively smooth sailing ever since.

This is just for a one-user (me) simple desktop system.
 
  


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
horde imp - read / compose html email? ziggie216 Linux - Software 0 12-06-2004 12:30 PM
Mutt and IMAP new mail/mark read mail checks(plzzz help) rmanocha Linux - Software 0 09-15-2004 03:05 PM
Exists a mail-client for Fedora, that can read local mail file without deleting? mxn Linux - Software 1 07-10-2004 01:53 PM
kernel panic unable to mount root (yes ive read/read other posts) dmx9595 Linux - General 4 01-17-2004 06:07 AM
Mozilla Mail - Compose problem Relja Linux - Software 2 03-04-2003 05:42 AM


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