Hi,

I just encountered a wierd thing (debian-11 stable, postfix-3.5.6-1+b1).

I ran:

  $ postconf -df proxy_read_maps
  proxy_read_maps = $local_recipient_maps $mydestination $virtual_alias_maps
    $virtual_alias_domains $virtual_mailbox_maps $virtual_mailbox_domains
    $relay_recipient_maps $relay_domains $canonical_maps $sender_canonical_maps
    $recipient_canonical_maps $relocated_maps $transport_maps $mynetworks
    $smtpd_sender_login_maps $sender_bcc_maps $recipient_bcc_maps
    $smtp_generic_maps $lmtp_generic_maps $alias_maps $smtpd_client_restrictions
    $smtpd_helo_restrictions $smtpd_sender_restrictions
    $smtpd_relay_restrictions $smtpd_recipient_restrictions
    $address_verify_sender_dependent_default_transport_maps
    $address_verify_sender_dependent_relayhost_maps
    $address_verify_transport_maps $fallback_transport_maps
    $lmtp_discard_lhlo_keyword_address_maps $lmtp_pix_workaround_maps
    $lmtp_sasl_password_maps $lmtp_tls_policy_maps $mailbox_command_maps
    $mailbox_transport_maps $postscreen_discard_ehlo_keyword_address_maps
    $rbl_reply_maps $sender_dependent_default_transport_maps
    $sender_dependent_relayhost_maps $smtp_discard_ehlo_keyword_address_maps
    $smtp_pix_workaround_maps $smtp_sasl_password_maps $smtp_tls_policy_maps
    $smtpd_discard_ehlo_keyword_address_maps $smtpd_milter_maps
    $virtual_gid_maps $virtual_uid_maps

And I thought I'd recursively expand all the items,
but I didn't get what I expected. Here are the non-empty
items individually expanded (redacted):

  local_recipient_maps = proxy:unix:passwd.byname hash:/etc/aliases, 
nis:mail.aliases
  mydestination = hostname.localdomain, localhost.localdomain, localhost
  relay_domains = hostname.localdomain, localhost.localdomain, localhost
  mynetworks = 127.0.0.0/8 a.b.c.d/32 [::1]/128 [a:b:c:d::e]/128 [fe80::]/64
  alias_maps = hash:/etc/aliases, nis:mail.aliases

So I was expecting all of that concatenated:

  proxy_read_maps = proxy:unix:passwd.byname hash:/etc/aliases, nis:mail.aliases
   hostname.localdomain, localhost.localdomain, localhost
   hostname.localdomain, localhost.localdomain, localhost
   127.0.0.0/8 a.b.c.d/32 [::1]/128 [a:b:c:d::e]/128 [fe80::]/64
   hash:/etc/aliases, nis:mail.aliases

But instead I saw:

  $ postconf -xdf proxy_read_maps
  proxy_read_maps = all127.0.0.0/8 a.b.c.d/32 [::1]/128
   [a:b:c:d::e]/128 [fe80::]/64 hash:/etc/aliases, nis:mail.aliases

It looks like the default value of inet_interfaces or
inet_protocols "all" (neither of which belong there),
immediately followed (with no intervening space)
by the default values of mynetworks and alias_maps.

Where did the "all" come from?

What happened to the default values of local_recipient_maps,
mydestination and relay_domains?

This happens with or without the -f option.

Does it happen with a non-Debian-packaged version?

If anyone can explain this behaviour, or the error in my
expectations, that would be great.

Without the -d option for defaults, the output is perfect.

cheers,
raf

Reply via email to