On 2023-07-01 10:17, Freek de Kruijf wrote:
Op zaterdag 1 juli 2023 04:05:49 CEST schreef J Leslie Turriff:
On 2023-06-30 15:28:05 Carlos E. R. wrote:
On 2023-06-30 22:16, joe a wrote:
On 6/29/2023 4:08 AM, Freek de Kruijf wrote:
Op woensdag 28 juni 2023 23:53:21 CEST schreef joe a: In regard to the linked "how to" and "users registered in your system", which I expect to amount to only a few, I am unclear on how to create those users as "local" to that machine (the email server) where the mailboxes will exist for authentication purposes.
Local user: means a user created with YaST, that has a /home/name directory and which can login, and exists in /etc/passwd.
And a local mail account is stored in /var/spool/mail/name. I use that to collect messages from cron, smart, etc. (If your mail service runs on a separate machine this might not be applicable to your purpose.)
But for that the default for openSUSE is that postfix is installed and only listens on port 25 on localhost (127.0.01). This basic setup of postfix delivers messages indeed in the folder /var/spool/mail/<username>. This folder is created when creating a local user in YaST, but underneath useradd will be used. This is a mbox type of storage of email messages, which is in fact one file and with many messages a big file.
However you can redirect the delivery of these message to a maildir type of storage by changing the parameter home_mailbox in /etc/postfix/main.cf in: home_mailbox = Maildir/ You can do that just by editing that file or giving the command, as root or sudo: postconf -e "home_mailbox = Maildir/" In that case postfix will create in the home folder, /home/<username>/, a folder Maildir and subfolders new, tmp and cur. Each message is a separate file. This gives you the opportunity to also have folders in your email storage. Access to this storage is available in all kinds of email clients, like Thunderbird, KMail, etc. and of course dovecot. With dovecot you can access this email storage from remote locations using imap or even pop and secured over an encrypted connection.
Notice that with dovecot you can have folders while keeping mbox storage. -- Cheers / Saludos, Carlos E. R. (from 15.4 x86_64 at Telcontar)