LinuxQuestions.org
Help answer threads with 0 replies.
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 05-15-2003, 06:28 AM   #1
jayakrishnan
Member
 
Registered: Feb 2002
Location: India
Distribution: Slacky 12.1, XP
Posts: 992

Rep: Reputation: 30
sendmail question


i add the following line in my aliases file

root: /home/important/root-mail

and ran the newaliases program

but when i send a mail to root , the mail gets lost

what could be the problem


thanks
 
Old 05-15-2003, 11:14 AM   #2
bentz
Member
 
Registered: Mar 2003
Distribution: Fedora, Mac OSX
Posts: 362

Rep: Reputation: 30
First off, interesting question.

The folder that you are writing the mail file to needs to be writeable by the group 'mail' to allow sendmail to write the mailfile. So:

chgrp mail /home/important
chmod 770 /home/important

and you should be off and running.
 
Old 05-16-2003, 03:13 AM   #3
jayakrishnan
Member
 
Registered: Feb 2002
Location: India
Distribution: Slacky 12.1, XP
Posts: 992

Original Poster
Rep: Reputation: 30
thanks a lot bentz
 
Old 05-16-2003, 03:47 AM   #4
jayakrishnan
Member
 
Registered: Feb 2002
Location: India
Distribution: Slacky 12.1, XP
Posts: 992

Original Poster
Rep: Reputation: 30
This is the error message i get
/var/log/maillog


May 16 14:18:01 linux sendmail[2672]: h4G8UhU01884: to=/home/important/mail, ctladdr=root (8/0), delay=00:17:18, xdelay=00:00:00, mailer=*file*, pri=120046, dsn=5.0.0, stat=Can't create output
May 16 14:18:01 linux sendmail[2672]: h4G8UhU01884: h4G8m1O02672: DSN: Can't create output
 
Old 05-16-2003, 07:09 AM   #5
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594Reputation: 3594
Check the permissions on /home and /home/important/mail, they should correspond to what Bentz wrote earlier.

IMHO the easiest way (not having to muck around with permissions) would be if you've got /home/important meaning you've got a local user named "important" to change your aliases to have user "important" to receive mail for root: "root: important".
 
Old 05-21-2003, 01:41 AM   #6
jayakrishnan
Member
 
Registered: Feb 2002
Location: India
Distribution: Slacky 12.1, XP
Posts: 992

Original Poster
Rep: Reputation: 30
thanks for the info unSpawn
 
  


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
Sendmail question sysrc Linux - Software 1 06-29-2004 03:19 AM
SendMail Question? gsmonk Linux - Networking 2 02-18-2004 07:05 AM
Sendmail question AMMullan Linux - Software 2 01-10-2004 07:03 PM
sendmail question security_ece Linux - Newbie 0 10-31-2003 08:35 AM
Sendmail question.. williamchen Linux - General 0 03-03-2003 04:07 AM

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

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