Hi,
On 14.12.24 14:23, dovecot--- via dovecot wrote:
Dec 14 12:10:32 Backup dovecot[1139994]: pop3(peter)<1144790><>: Debug: Mailbox
INBOX: Mailbox opened because: POP3 INBOX
Dec 14 12:10:32 Backup dovecot[1139994]: pop3(peter)<1144790><>: Error: Mailbox
INBOX: stat(/var/spool/mail/peter) failed: Permission denied
I had a thought, as user peter, even though I own /var/spool/mail/peter I am
unable to access it:
[peter@Backup ~]$ ls /var/spool/mail/peter
ls: cannot access '/var/spool/mail/peter': Permission denied
The inability of peter to access that directory is presumably the root cause.
So, what is best practice:
1. Use a folder in /home/peter/mail instead
2. Enable correct access to /var/spool/mail/peter (so that user peter can
access it)
it depends. ;-)
If you select option 2:
You wrote:
In /var/spool:
drwxr-x---. 3 mail mail 64 Dec 13 16:29 mail
Please try this as root:
chmod 755 /var/mail
so the permissions will now look like this:
drwxr-xr-x. 3 mail mail 64 Dec 13 16:29 mail
And now user 'peter' should have access to it's mail file
'/var/spool/mail/peter'.
My desire is to get system generated mail (currently delivered to the file
/var/spool/mail/root) to be picked up from another machine by user peter (I
would have used user root but I have also discovered that root seems to be
blocked from remote e-mail access - I will have to work out how to get system
processes to deliver status e-mails to a different user but that is a different
problem once I can successfully pickup mail).
The classic way to do this is to change '/etc/aliases' and add this entry:
root: peter
or something like this, if you want to have the mail in both mailboxes
'root' _and_ 'peter':
root: \root, peter
Run 'newaliases' after that change.
HTH and regards,
Markus
_______________________________________________
dovecot mailing list -- dovecot@dovecot.org
To unsubscribe send an email to dovecot-le...@dovecot.org