We are happy to announce that Vesta is back under active development as of 25 February 2024. We are working on v1 candidate and expect to engage more with the community over the coming months. We are committed to open source, and we encourage contributors to help us build the future of Vesta.
problems creating user email accounts
problems creating user email accounts
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:
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
-
- Collaborator
- Posts: 783
- Joined: Mon May 11, 2015 8:43 am
- Contact:
- Os: CentOS 6x
- Web: apache + nginx
Re: problems creating user email accounts
Can you check the permission of the folder?
CentOS example:
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
Re: problems creating user email accounts
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]#
Re: problems creating user email accounts
I have noticed an inconsistency in the emailaccounts owners. changed owner of emailaccount1 to user and it started working.
thank you
thank you