On 12/10/2020 02:33 PM, Rich Freeman wrote: > On Thu, Dec 10, 2020 at 3:29 PM <the...@sys-concept.com> wrote: >> >> On 12/10/2020 11:58 AM, J. Roeleveld wrote: >>> Are you in the "mail" group? >>> >> >> That was it. Now I can access the /var/spool/mail from TBird >> I'm running Posfix and in main.cf I left as default: >> home_mailbox = .maildir/ >> >> So all the local mail (from emerge would go to this folder), I tired as >> root send myself and email: "mailto root" the mail went to my home >> folder .maildir >> but TBird can not read it. It complains: >> >> "Unable to locate mail spool file" >> > > So, two things: > > 1. Normal users should NOT be in the mail group. This can read/write > mail to all users and should be used by your mail delivery daemon. > 2. If you're using maildir for email, why are you configuring > Thunderbird for mbox? > > Background: there are two conventions for delivering mail on unix-like > systems. mbox uses one file per user in /var/spool/mail/$username. > maildir uses one file per message in a directory in ~user/.maildir/new > (for new messages). > > Generally you need to pick which format you're using in the MUA (the > thing you use to read your mail) and then the path is set > automatically 99% of the time. > You are correct. I'm suing mbox with TBird. I'm trying to do it correctly. Normally I use TBird on one system and do backup of the whole folder: .thunderbird/ from one system to another, except the local mail that is stored in /var/smpool/mail
By default TBird is storing local mail in .thunderbird/ it means I would be copying local mail from one box to another. By default postifix default directory for local folder is home_mailbox = .maildir/ If I comment out that line the mail will be stored in /var/smpool/mail If I removde the "/" from .maildir it will be mbox type. (this is according to my notes, am I correct) So I tried with setting: home_mailbox = .maildir (no forward "/", so it should be mbox type). I've tired sending test email to root, the mail went out but I couldn't find it in .maildir TBird was configured to look in home .maildir (this would be ideal solution, but it doesn't work) I'm doing something wrong. When I set it for /var/spool/mail everything works.