Quoting Harakiri <harakiri...@yahoo.com>:



--- On Wed, 5/19/10, Michael Tokarev <m...@tls.msk.ru> wrote:

From: Michael Tokarev <m...@tls.msk.ru>
Subject: Re: Using -o
> postfix complains about an invalid syntax (probably
due the space between policy server and
unix:private/policy)

Try using a comma instead of a space there:

 -o
smtpd_end_of_data_restrictions=check_policy_service,unix:private/policy

it works due to the way config parser is implemented, it's
ugly, but
it works ;)

Great thank you, still looks like this bug should be fixed in later versions.

From the man page for master.cf (http://www.postfix.org/master.5.html):

     ...
     NOTE 1: do not specify whitespace around the
     "=".   In  parameter  values,  either  avoid
     whitespace altogether, use commas instead of
     spaces,   or  consider  overrides  like  "-o
     name=$override_parameter"    with     $over-
     ride_parameter set in main.cf.
     ...

In other words, you could define this somewhere in main.cf:

...
$my_policy = check_policy_service unix:private/policy
...

Then in master.cf:

...
-o smtpd_end_of_data_restrictions=$my_policy
...

Reply via email to