On Tue, Jun 21, 2022 at 02:49:08PM +0200, Matus UHLAR - fantomas wrote:
> On 21.06.22 12:04, Víctor Rubiella Monfort wrote:
> >I'm trying to define independent domain reject list for inboud than 
> >outbound:
> >
> >This works fine configuring:
> >
> >smtpd_sender_restrictions =
> >    permit_mynetworks,
> >    check_sender_access hash:/etc/postfix/domainslist_in
> >
> >Works ok, but for in and out with the same file. I have not found a 
> >way to distinguish between in/out on main.cf options, and I'm trying 
> >to use "-o" overriding on master.cf services configuration:
> >
> >smtp      inet  n       -       y       -       150      smtpd
> > -o syslog_name=smtpd-25
> > -o smtpd_sender_restrictions=permit_mynetworks,{check_sender_access 
> > hash:/etc/postfix/domainslist_out}
> 
> get rid of {}'s.

No, not "get rid of", rather "use correctly":

    -o { smtpd_sender_restrictions = permit_mynetworks, check_sender_access 
hash:/etc/postfix/domainslist_out }

as documented:

       Command name + arguments
              The command to be executed.  Characters that are special to the
              shell such as ">" or "|" have no special meaning here, and
              quotes cannot be used to protect arguments containing
              whitespace. To protect whitespace, use "{" and "}" as described
              below.

              The command name is relative to the Postfix daemon directory
              (pathname is controlled by the daemon_directory configuration
              variable).

              The command argument syntax for specific commands is specified
              in the respective daemon manual page.

              The following command-line options have the same effect for all
              daemon programs:

              -D     Run the daemon under control by the command specified
                     with the debugger_command variable in the main.cf
                     configuration file.  See DEBUG_README for hints and tips.

              -o { name = value } (long form, Postfix >= 3.0)

              -o name=value (short form)
                     ...

-- 
    Viktor.

Reply via email to