LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 05-17-2012, 12:52 PM   #1
tasman
LQ Newbie
 
Registered: May 2012
Posts: 4

Rep: Reputation: Disabled
create maildir file permission denied


I got the following error message, any suqgestion?

Thanks in advance.

May 17 10:34:04 debian1699 postfix/qmgr[2764]: 2FDBC1126C1: from=<kh2012tw@gmail.com>, size=1441, nrcpt=1 (queue active)
May 17 10:34:04 debian1699 postfix/virtual[2800]: warning: maildir access problem for UID/GID=5000/5000: create maildir file /var/mail/vhosts/getmygoodies.com/it/tmp/1337276044.P2800.debian1699: Permission denied
May 17 10:34:04 debian1699 postfix/virtual[2800]: warning: perhaps you need to create the maildirs in advance
May 17 10:34:04 debian1699 postfix/virtual[2800]: 2FDBC1126C1: to=<it@getmygoodies.com>, relay=virtual, delay=0.19, delays=0.19/0/0/0, dsn=4.2.0, status=deferred (maildir delivery failed: create maildir file /var/mail/vhosts/getmygoodies.com/it/tmp/1337276044.P2800.debian1699: Permission denied)
root@debian1699:/var/mail/vhosts/getmygoodies.com#

I gave write access to the folders
root@debian1699:/var/mail/vhosts/getmygoodies.com/it# ls -l
total 12
drwxrwsrwx 2 vmail vmail 4096 May 17 09:28 cur
drwxrwsrwx 2 vmail vmail 4096 May 17 09:31 new
drwxrwsrwx 2 vmail vmail 4096 May 17 09:31 tmp

My main.cf as

root@debian1699:/var/mail/vhosts/getmygoodies.com/it# cat /etc/postfix/main.cf
##################
# Default settings
##################
biff = no
append_dot_mydomain = no
readme_directory = no
smtpd_banner = $myhostname ESMTP $mail_name

################
# TLS parameters
################
smtpd_tls_cert_file = /etc/postfix/smtpd.cert
smtpd_tls_key_file = /etc/postfix/smtpd.key
smtpd_use_tls = yes
smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache

###############
# Main settings
###############
myhostname = debian1699.getmygoodies.com
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = /etc/mailname
#mydestination = debian1699.getmygoodies.com, localhost, localhost.localdomain
relayhost =
mynetworks = 127.0.0.0/8
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all

###############
# Virtual Settings
###############
virtual_mailbox_base = /home/vmail
virtual_transport = virtual
# virtual_alias_maps = mysql:/etc/postfix/sql/virtual_alias_maps.cf
# virtual_mailbox_domains = mysql:/etc/postfix/sql/virtual_domains_maps.cf
# virtual_mailbox_maps = mysql:/etc/postfix/sql/virtual_mailbox_maps.cf
virtual_mailbox_domains = getmygoodies.com
virtual_mailbox_base = /var/mail/vhosts
virtual_mailbox_maps = hash:/etc/postfix/vmailbox
virtual_alias_maps = hash:/etc/postfix/virtual
virtual_minimum_uid = 5000
virtual_uid_maps = static:5000
virtual_gid_maps = static:5000
# Domains for which we are a secondary MX
relay_domains = mysql:/etc/postfix/sql/relay_domains_maps.cf
message_size_limit = 30720000
virtual_alias_domains =
smtpd_sasl_auth_enable = yes
broken_sasl_auth_clients = yes
smtpd_sasl_authenticated_header = yes
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination
virtual_create_maildirsize = yes
virtual_maildir_extended = yes
proxy_read_maps = $local_recipient_maps $mydestination $virtual_alias_maps $virtual_alias_domains $virtual_mailbox_maps $virtual_mailbox_domains $relay_domains $canonical_maps $sender_canonical_maps $recipient_canonical_maps $relocated_maps $transport_maps $mynetworks $virtual_mailbox_limit_maps $relay_recipient_maps
dovecot_destination_recipient_limit = 1

virtual_maps = hash:/etc/postfix/virtusertable
smtpd_sender_restrictions =
permit_mynetworks
permit_sasl_authenticated
permit_tls_clientcerts
-------------------------------------------

root@debian1699:/home/it# ls -la /var/mail/vhosts/getmygoodies.com/it/tmp
total 8
drwxrwsrwx 2 vmail vmail 4096 May 17 09:31 .
drwx--S--- 5 vmail vmail 4096 May 17 09:28 ..
 
Old 05-17-2012, 01:42 PM   #2
Ser Olmy
Senior Member
 
Registered: Jan 2012
Distribution: Slackware
Posts: 1,989

Rep: Reputation: Disabled
Quote:
Originally Posted by tasman View Post
May 17 10:34:04 debian1699 postfix/virtual[2800]: warning: maildir access problem for UID/GID=5000/5000: create maildir file
/var/mail/vhosts/getmygoodies.com/it/tmp/1337276044.P2800.debian1699: Permission denied
Quote:
Originally Posted by tasman View Post
I gave write access to the folders
root@debian1699:/var/mail/vhosts/getmygoodies.com/it# ls -l
total 12
drwxrwsrwx 2 vmail vmail 4096 May 17 09:28 cur
drwxrwsrwx 2 vmail vmail 4096 May 17 09:31 new
drwxrwsrwx 2 vmail vmail 4096 May 17 09:31 tmp
Does id -u vmail return 5000?
 
Old 05-17-2012, 01:56 PM   #3
tasman
LQ Newbie
 
Registered: May 2012
Posts: 4

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Ser Olmy View Post
Does id -u vmail return 5000?
Yes, it returned 5000.

Thanks for quick advice.
 
  


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
Couldn't create /home/emailaddress/.openwebmail/db (permission denied) sar_kasirye Linux - Newbie 4 05-01-2011 02:01 AM
Why am I denied permission when I try to create a directory? toastyjsd Linux - Newbie 2 02-28-2009 06:49 PM
SAMBA ERROR: cannot create regular file `~/tux016.pdf': Permission denied mokele Linux - Software 5 02-07-2007 04:37 PM
Couldn't create socket: Permission denied piforever Fedora 9 12-22-2005 04:52 PM
permission denied if I want to create new folder dodo1983 Linux - Newbie 2 08-14-2004 10:46 PM


All times are GMT -5. The time now is 09:32 AM.

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 Google+: linuxquestions
Open Source Consulting | Domain Registration