LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices

Reply
 
LinkBack Search this Thread
Old 11-13-2006, 12:26 PM   #1
hua
Member
 
Registered: Oct 2006
Location: Slovak Republic
Distribution: Slackware 13.37
Posts: 337

Rep: Reputation: 46
postfix mailbox permission denied


Hello

I am setting up virtual mailboxes on postfix for users on my domain:
user@example.com
I created the the mailbox /var/mail/vhosts/example.com/user
Link the virtual_uid_maps = hash:/etc/postfix/uid in main.cf
I set up a uid table /etc/postfix/uid (uid.db):


user 2001
user2 2002

but I still get: cannot open file: permission denied
The owner of mailbox /var/mail/vhosts/example.com/user - is (user(n))
And group is: mail.

What do I miss?
 
Old 11-13-2006, 09:06 PM   #2
Berhanie
Senior Member
 
Registered: Dec 2003
Distribution: Fedora
Posts: 1,492

Rep: Reputation: 144Reputation: 144
From the virtual(8) man page:
Quote:
Mailbox ownership is controlled by the virtual_uid_maps and virtual_gid_maps lookup tables, which are indexed with the full recipient address.
 
Old 11-14-2006, 02:33 AM   #3
hua
Member
 
Registered: Oct 2006
Location: Slovak Republic
Distribution: Slackware 13.37
Posts: 337

Original Poster
Rep: Reputation: 46
If you mean:

/etc/postfix/uid:

user1@domain.com 2001
user2@domain.com 2002
...

I tried this also with the same result.

Maybe the problem is that I did not create the virtual_gid_maps also but leave it static as:

main.cf

virtual_gid_maps = static:5000
(should it be as virtual_gid_maps = hash:/etc/postfix/gid with table)
 
Old 11-14-2006, 09:05 AM   #4
Berhanie
Senior Member
 
Registered: Dec 2003
Distribution: Fedora
Posts: 1,492

Rep: Reputation: 144Reputation: 144
If the mailboxes all owned by gid 5000, then just leave it as static. To diagnose the problem, you're going to have to post your logs. Also post the output of "postconf -n". But, first read the VIRTUAL_README.html.
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
file permission denied, install postfix aw_wolfe Linux - Newbie 7 07-13-2011 07:27 AM
virtual mailbox with postfix shafey Linux - Networking 0 07-19-2006 02:16 AM
postfix virtual mailbox namit Debian 1 12-16-2005 02:06 AM
Postfix-MySQL-Courier IMAP - Permission denied abapdr Linux - Software 0 06-24-2004 03:51 AM
Postfix not delivering mail to mailbox DeVryGuy Linux - Software 13 09-22-2003 12:43 AM


All times are GMT -5. The time now is 01:00 PM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration