Question
I’m using UCS with the mailserver/mailstack. Where can I find the contents of the Inbox folder on the server?
Answer
First, determine the user’s assigned MailHomeServer and connect to it via SSH:
$ univention-ldapsearch uid=fabian.schneider univentionMailHomeServer mailPrimaryAddress -LLL
dn: uid=fabian.schneider,cn=users,ou=Univention,dc=univention,dc=intranet
univentionMailHomeServer: ucs-8184.univention.intranet
mailPrimaryAddress: fabian.schneider@demoschool.example.com
On that system, query the corresponding mail root directory:
$ doveadm user fabian.schneider | awk '/^home/'
home /var/spool/dovecot/private/demoschool.example.com/fabian.schneider
Inside this directory, you will find:
- New, unread messages:
./Maildir/new - Messages already delivered to the Inbox:
./Maildir/cur
The directory structure is described in the official Dovecot documentation:
https://doc.dovecot.org/2.3/admin_manual/mailbox_formats/maildir/#directory-structure