Vesta Control Panel - Forum

Community Forum

Skip to content

Advanced search
  • Quick links
    • Main site
    • Github repo
    • Google Search
  • FAQ
  • Login
  • Register
  • Board index Main Section Mail Server
  • Search

problems creating user email accounts

Questions regarding the Mail Server
Dovecot, Exim, RoundCube
Post Reply
  • Print view
Advanced search
4 posts • Page 1 of 1
eugeniu
Posts: 9
Joined: Sat Jul 18, 2015 10:05 am

problems creating user email accounts
  • Quote

Post by eugeniu » Fri Nov 20, 2015 10:44 am

after migrating a user from another vestacp server i can't create new email accounts for a user.
the accounts are created fine, but the inbox folder structure is not created and when the new account receives an email the maillog shows the following error:

Code: Select all

[email protected] R=localuser T=local_delivery defer (13): Permission denied: while opening or reading /home/user/mail/domain.com/user/maildirsize
Top

tjebbeke
Collaborator
Posts: 783
Joined: Mon May 11, 2015 8:43 am
Contact:
Contact tjebbeke
Website

Os: CentOS 6x
Web: apache + nginx
Re: problems creating user email accounts
  • Quote

Post by tjebbeke » Fri Nov 20, 2015 11:11 am

Can you check the permission of the folder?
CentOS example:

Code: Select all

cd /home/username/mail/domainname.com
ls -la
total 16
drwxrwx---  4 username mail 4096 Jan 31  2015 .
drwxr-x--x  4 root      root 4096 Jan 29  2015 ..
drwxrwx--- 12 username mail 4096 Nov 20 07:45 info
drwx------  5 username mail 4096 Jan 31  2015 webmaster

cd info
 ls -la
 total 1064
drwxrwx--- 12 username mail   4096 Nov 20 07:45 .
drwxrwx---  4 username mail   4096 Jan 31  2015 ..
drwxrwx---  2 username mail  73728 Nov 20 07:21 cur
drwxrwx---  5 username mail   4096 Oct 25 22:41 .Deleted Messages
...
-rw-rw----  1 username mail   2693 Nov 20 06:44 maildirsize
Top

eugeniu
Posts: 9
Joined: Sat Jul 18, 2015 10:05 am

Re: problems creating user email accounts
  • Quote

Post by eugeniu » Fri Nov 20, 2015 11:22 am

i have copied the inbox folders from another domain of the same user. the structure looks like this:

Code: Select all

[root@hostname domain.com]# ls -la
total 20
drwxrwxr--  5 user mail 4096 Nov 19 16:11 .
drwxr-xr-x  8 root   root 4096 Sep  5 14:05 ..
drwxr-xr-x 10 root   root 4096 Nov 20 09:44 mailaccount1
drwxr--r-- 10 user mail 4096 Nov 20 12:28 mailaccount2
drwxr--r-- 12 user mail 4096 Nov 20 12:43 mailaccount3
[root@hostname domain.com]# cd mailaccount1/
[root@hostname mailaccount1]# ls -la
total 60
drwxr-xr-x 10 root   root 4096 Nov 20 09:44 .
drwxrwxr--  5 user mail 4096 Nov 19 16:11 ..
drwxr--r--  2 user mail 4096 Jul 17 19:43 cur
-rw-r--r--  1 user mail  680 Nov 20 09:32 dovecot.index.log
-rw-r--r--  1 user mail  120 Jul 17 19:44 dovecot.mailbox.log
-rw-r--r--  1 user mail   51 Nov 20 09:32 dovecot-uidlist
-rw-r--r--  1 user mail    8 Jul 17 19:44 dovecot-uidvalidity
-rw-r--r--  1 user mail    0 Jul 17 19:43 dovecot-uidvalidity.55a930bc
drwxr--r--  5 user mail 4096 Nov 20 09:32 .Drafts
drwxr--r--  2 user mail 4096 Jul 17 19:43 new
drwxr--r--  5 user mail 4096 Nov 20 10:04 .Sent
drwxr--r--  5 user mail 4096 Nov 20 10:04 .Sent Messages
drwxr--r--  5 user mail 4096 Nov 20 09:32 .Spam
-rw-r--r--  1 user mail   37 Jul 17 19:44 subscriptions
drwxr--r--  2 user mail 4096 Nov 20 12:38 tmp
drwxr--r--  5 user mail 4096 Nov 20 10:04 .Trash
[root@evix001 mailaccount1]#
Top

eugeniu
Posts: 9
Joined: Sat Jul 18, 2015 10:05 am

Re: problems creating user email accounts
  • Quote

Post by eugeniu » Fri Nov 20, 2015 11:31 am

I have noticed an inconsistency in the emailaccounts owners. changed owner of emailaccount1 to user and it started working.
thank you
Top


Post Reply
  • Print view

4 posts • Page 1 of 1

Return to “Mail Server”



  • Board index
  • All times are UTC
  • Delete all board cookies
  • The team
Powered by phpBB® Forum Software © phpBB Limited
*Original Author: Brad Veryard
*Updated to 3.2 by MannixMD
 

 

Login  •  Register

I forgot my password