> Don't put the filename in double-quotes.  The correct setting is:
  > mydestination = $mydomain, $myhostname, localhost.$mydomain, localhost,
/etc/postifx/local-host-names

Thanks for your time and suggestions.

Doing this, "removing the quotes", makes postfix to complain saying...
while restarting.. it is fine with quotes though.

Jul 16 11:54:26 hostM postfix/master[697915]: daemon started -- version
3.5.8, configuration /etc/postfix
Jul 16 11:54:26 hostM postfix/qmgr[697917]: error: open file
/etc/postifx/local-host-names: No such file or directory
Jul 16 11:54:26 hostM postfix/pickup[697916]: error: open file
/etc/postifx/local-host-names: No such file or directory

> You could also arrange for some minimal address rewriting on the various
hosts, so

The problem is not all hosts are managed by the same person.. Also it may
be simpler if the mailhost/postfix relay
server (hostM) accepts the mail and it would be a single point to manage.

Thanks again,




On Fri, Jul 16, 2021 at 11:47 AM Viktor Dukhovni <postfix-us...@dukhovni.org>
wrote:

> > On 16 Jul 2021, at 10:42 am, Thirumurugan Kalapatti <kovair...@gmail.com>
> wrote:
> >
> > mydestination = $mydomain, $myhostname, localhost.$mydomain, localhost,
> "/etc/postifx/local-host-names"
> >
> > with local-host-names with the list of local hosts does not seem to help.
>
> Don't put the filename in double-quotes.  The correct setting is:
>
>  mydestination = $mydomain, $myhostname, localhost.$mydomain, localhost,
> /etc/postifx/local-host-names
>
> You could also arrange for some minimal address rewriting on the various
> hosts, so
> that mail to u...@somehost.example.com is rewritten to u...@example.com.
> Perhaps
> by adding "example.com" to "masquerade_domains".  See also:
>
>
> http://www.postfix.org/postconf.5.html#local_header_rewrite_clients
>
> --
>         Viktor.
>
>

Reply via email to