On Mon, Oct 07, 2013 at 09:12:41AM -0600, Blake wrote:
> However when I check the config after restarting or reloading postfix the
> parameter does not seem to be updated when reviewing postconf -d.
Not surprising, "postconf -d" returns compiled-in defaults as
documented. This allows you to quickly compare your actual settings
(as returned by "postconf" or "postconf -n") with the compiled-in
default values.
A small number of compiled-in defaults are in fact compiled functions
to compute the value, rather than a fixed value. The value is
computed by examining the running system (its hostname, domainname
and connected interfaces). Thus the default values for myhostname,
mydomain and mynetworks are not fixed.
> # postmap -s hash:/etc/postfix/network_table
> 11 10.147.9.0/24
> 13 10.148.1.0/24
> 15 10.148.120.0/24
> 17 10.148.17.0/24
> 19 10.148.24.0/24
> 2 10.147.1.32
> 20 10.148.32.0/24
> 22 10.149.16.0/24
To use CIDR blocks in a table, you MUST use a CIDR table. Hash
tables cannot be used for this:
mynetworks.cidr:
# RHS required, though value is otherwise ignored.
10.147.9.0/24 trusted
10.148.1.0/24 trusted
10.148.120.0/24 trusted
10.148.17.0/24 trusted
10.148.24.0/24 trusted
10.147.1.32 trusted
10.148.32.0/24 trusted
10.149.16.0/24 trusted
> # postconf -d | grep mynetworks
See above, this is futile.
> mynetworks = hash:/etc/postfix/network_table
Try:
cidr = cidr:${config_directory}/
mynetworks = ${cidr}mynetworks.cidr
--
Viktor.