Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Permission denied when doing Postfix ubuntu tutorial [closed]

Im working on this tutorial Postfix mail server. https://help.ubuntu.com/community/Postfix

When i run the command. su - fmaster mail

I get the error. Cannot open mailbox /var/mail/fmaster: Permission denied No mail for fmaster

also i sign in as fmaster. terminal -> mail.

/var/mail/fmaster: Permission denied No mail for fmaster

like image 795
mr.low Avatar asked Feb 05 '12 21:02

mr.low


1 Answers

           sudo touch /var/mail/$USER
           sudo chown $USER:mail /var/mail/$USER
           sudo chmod o-r /var/mail/$USER
           sudo chmod g+rw /var/mail/$USER
like image 142
mr.low Avatar answered Nov 14 '22 18:11

mr.low