Sers. I zipped all my old /var/vmail/ folders and now am unzipping them into the folders after creating mail accounts in ISPC. I ran into some permissions trouble I solved via "chmod -R +rwx /var/vmail/", now I still have this error left in "systemctl status dovecot.service": Code: Mar 06 01:33:53 web dovecot[2703]: imap([email protected]): Error: Can't create log file /var/vmail/domain.tld/name/Maildir/dovecot.index.log: Index is read-only Do I need to "chown" the folders? If yes: for what user:group? If no: What's the solution? Thanks!
Code: "chmod -R +rwx /var/vmail/", Bad idea. Don't do that. Check what owner, group owner and permissions are on a mailbox you created with ISPConfig and have not changed yet.
Will undo and change to vmail:vmail, as stated here: https://www.howtoforge.com/community/threads/ftp-no-space-left-on-device-844gbs-free.63480/ Ran into a similiar problem in the last hours, even with LVM. :/ Deleted about 90MB of backup, but I guess that won't help for long.
All files and folders in /var/vmail must be owned by the vmail user and vmail group, so doing a: chown -R vmail:vmail /var/vmail is fine. But never do something like that on /var/www! The original problem is probably that you used zip to archive the files and not tar. zip can not store the correct file and folder ownerships. When moving var/vmail to another server, then use: tar pcfz email.tar.gz /var/vmail to craete the archive.
Thanks Till, that explains a lot and I will try to remember to use tar in the future. For my webspace: I decided to create the pages and FTP users and upload things that way. That should avoid permission issues.