On Sun, Dec 20, 2020 at 09:51:35AM +0100, Gilles CHEHADE wrote: > > > > On 20 Dec 2020, at 07:13, Sebastien Marie <[email protected]> wrote: > > > > On Sat, Dec 19, 2020 at 10:36:32PM +0000, [email protected] wrote: > >> Hello, > >> > >> Whenever a rule with a local action (mbox, maildir, lmtp or mda) is > >> matched, smtpd will > >> attempt to search for a ~/.forward file in the recipient directory and > >> process it. This > >> may be convenient for some setups but it is an implicit behavior that's > >> not overridable > >> and not always wanted. > >> > >> This diff changes this behavior by requiring the admins to explicitly > >> allow the forward > >> files processing in the actions when desired: > >> > >> action "local_users" maildir forward-file > >> > >> > >> With this diff, if forward-file is not specified, code to request parent > >> process for an > >> fd is bypassed and the expansion layer just pretends parent couldn't find > >> one. This let > >> the code fallback in an already existing code path with the proper > >> behavior and is very > >> uninvasive. > >> > > > > if I could understood the direction (which is fine as it makes the > > daemon less behaviour dependant on a user settings), the default seems > > wrong to me (at least for now, and for OpenBSD base specifically). > > > > Currently, root@ mail delivery is based on /root/.forward file: > > install is writing this file to redirect root@ mail to user (if user > > was created at install-time). It is done this way since 2011 (see > > distrib/miniroot/install.sh rev 1.218). So I assume that all installs > > which were done with a user configured, since 2011, could use it. > > Yes, the default would need to be changed as follows: > > mini$ diff -uNp smtpd.conf smtpd.conf.new > > > > --- smtpd.conf Mon Dec 14 22:13:04 2020 > +++ smtpd.conf.new Sun Dec 20 09:43:22 2020 > @@ -11,7 +11,7 @@ listen on socket > # > listen on all hostname debug.poolp.org > > -action "local_mail" maildir alias <aliases> > +action "local_mail" maildir alias <aliases> forward-file > action "outbound" relay >
My src tree still has mbox as the default. There was talk of changing from mbox to maildir as default. Is this now going forward also? While mbox is simple, once I moved to Dovecot for IMAP, changing mbox to maildir was easy, but needed, amongst some other non-mbox choices. I think new users will be much happier learning maildir and skipping the whole mbox thing. My 2 cents. :^) Chris Bennett
