Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

postfix setup

Status
Not open for further replies.

sos

IS-IT--Management
Apr 10, 2000
53
CA
I am trying to setup postfix on a mandrake 10.1 system.


I have two users duke and mike. duke can look at mail using the 'mail' command. When I try to run the 'mail' command from user mike's shell i get:

/var/spool/mail/duke: Permission denied

I checked that the file /var/spool/mail/mike exists and it does.

I have been looking at postfix documentation trying to figure out what setting in main.cf or elsewhere I should have.


 
For some reason, when you are user mike, it still tries to look for /var/spool/mail/duke (unless you made a typo in the description). If you are using su to change from use duke to mike, then try adding a dash:
su - mike
If you're logging in as mike, then there's something weird in the bash logon scripts for user mike.

Take a look at the permissions of /var/spool/mail/duke. It should be owned by duke:mail.
 
Thanks for the reply,

I didn't realize su did that and I was using su.
But I now have a different problem(of course).

If i login to user mike with 'su - mike' or directly
at the local machine, I get "Bad address" when i try to run
mail.

 
Btw the permissions for /var/spool/mail/duke are duke:mail
 
Figured out my problem was incorrect permissions on a tmp folder in the home directory of user 'mike'. The 'Bad address' is gone and 'mail' now functions correctly!

Thanx again for your help mrballcb.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top