Scott Kitterman via Postfix-users:
> On Friday, June 2, 2023 7:29:49 PM EDT raf via Postfix-users wrote:
> > On Fri, Jun 02, 2023 at 11:15:23PM +0000, wesley--- via Postfix-users 
> <postfix-users@postfix.org> wrote:
> > > when will postfix use /etc/mailname? thank you.
> > 
> > Only when you tell it to, and only on debian.
> > I think /etc/mailname is just a debian thing.
> > 
> > >From the main.cf.proto file on debian:
> >   # Debian GNU/Linux specific:  Specifying a file name will cause the
> >   # first line of that file to be used as the name.  The Debian default
> >   # is /etc/mailname.
> >   #
> >   #myorigin = /etc/mailname
> >   #myorigin = $myhostname
> >   #myorigin = $mydomain
> > 
> > I think it's only the debian package version of postfix that supports
> > myorigin having a filename as its value and reading the file.
> 
> Originally it was Debian specific, but the code to do so is upstream, but not 
> enabled by default.  Comment from src/global/mail_params.c:
> 
>      * XXX Reading the myorigin value from file is originally a Debian Linux
>      * feature. This code is not enabled by default because of problems: 1)
>      * it re-implements its own parameter syntax checks, and 2) it does not
>      * implement $name expansions.
> 
> We set -DMYORIGIN_FROM_FILE when building and anyone else can too, if they 
> want.  It looks like it was included starting in Postfix 2.5.

I suppose that the "makedefs" script could probe for this. It
requires a little scripting and most of the work will be documentation.

        Wietse
_______________________________________________
Postfix-users mailing list -- postfix-users@postfix.org
To unsubscribe send an email to postfix-users-le...@postfix.org

Reply via email to