I was facing the problem that postfix could not deliver emails to my home-directory. I have a running Ubuntu 14.04 server and due to some problem with encrypted home-drive postfix was not able to access my Maildir.
In mail.log I got the following error:
Apr 4 09:51:35 server postfix/smtpd[13658]: connect from localhost[127.0.0.1]
Apr 4 09:51:35 server postfix/smtpd[13658]: 6FE354360A18: client=localhost[127.0.0.1]
Apr 4 09:51:35 server postfix/cleanup[13661]: 6FE354360A18: message-id=<57021a4f72db3_e5d5127d8cc173209@hermes-1.mail>
Apr 4 09:51:36 server postfix/smtpd[13658]: disconnect from localhost[127.0.0.1]
Apr 4 09:51:36 server postfix/qmgr[2085]: 6FE354360A18: from=<mailrobot@xing.com>, size=87170, nrcpt=1 (queue active)
Apr 4 09:51:36 server postfix/local[13664]: warning: maildir access problem for UID/GID=1000/1000: create maildir file /home/user/Maildir/tmp/1459756296.P13664.server: Permission denied
Apr 4 09:51:36 server postfix/local[13664]: warning: perhaps you need to create the maildirs in advance
Apr 4 09:51:36 server postfix/local[13664]: 6FE354360A18: to=<andreas@localhost>, relay=local, delay=0.95, delays=0.88/0.01/0/0.06, dsn=5.2.0, status=bounced (maildir delivery failed: create maildir file /home/user/Maildir/tmp/1459756296.P13664.server: Permission denied)
Apr 4 09:51:36 server postfix/cleanup[13661]: 668984360A1A: message-id=<20160404075136.668984360A1A@server>
Apr 4 09:51:36 server postfix/bounce[13665]: 6FE354360A18: sender non-delivery notification: 668984360A1A
Apr 4 09:51:36 server postfix/qmgr[2085]: 668984360A1A: from=<>, size=4544, nrcpt=1 (queue active)
Apr 4 09:51:36 server postfix/qmgr[2085]: 6FE354360A18: removed
Apr 4 09:51:36 server postfix/smtp[13666]: 668984360A1A: to=<mailrobot@xing.com>, relay=smtp.otherserver.org:587, delay=0.54, delays=0.19/0.05/0.23/0.07, dsn=2.0.0, status=sent (250 2.0.0 Ok: queued as C979113D0138)
Apr 4 09:51:36 server postfix/qmgr[2085]: 668984360A1A: removed
I rebooted the server and hoped to find the emails which were sent in the meantime in /var/mail/xxx but there was only a zero byte file with my username.
Does this mean that the emails which I received in the meantime are lost? How can I configure that emails are saved?
EDIT: mailq shows empty mail queue. EDIT2: added more log output