1

Topic: Permissions for Mail directory

I recently moved all the mail to a new drive and want to make sure I have the right permissions so that the server will work correctly... What ownership and permissions should /var/vmail be set to?

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2

Re: Permissions for Mail directory

Owner vmail:vmail, permission 0700.

3

Re: Permissions for Mail directory

Thanks!

4

Re: Permissions for Mail directory

ZhangHuangbin wrote:

Owner vmail:vmail, permission 0700.

How do I run sa-learn under the amavis user with those permissions?  On v1.6.5, amavis only belongs to the clamav group.

Should mail subdirectories have different owners/groups/permissions?

5

Re: Permissions for Mail directory

For your reference:

# ls -dl /var/vmail/
drwxr-xr-x 9 root root 4096 Jul 13  2022 /var/vmail/

# ls -l /var/vmail/
total 28
drwxr-xr-x 5 root  root  4096 Jul 13  2022 backup
drwx------ 3 vmail vmail 4096 Jul 13  2022 imapsieve_copy
drwx------ 4 mlmmj mlmmj 4096 Aug 22  2022 mlmmj
drwx------ 2 mlmmj mlmmj 4096 Jul 13  2022 mlmmj-archive
drwx------ 2 vmail vmail 4096 Jul 13  2022 public
drwx------ 2 vmail vmail 4096 May 26  2023 sieve
drwx------ 8 vmail vmail 4096 Aug  2 14:44 vmail1

All subdirectories under /var/vmail/vmail1/ must be owned by "vmail:vmail" with permission 0700.