explore/test pipemap?

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

explore/test pipemap?

Todd C. Olson

Hi


How does one test/explore pipemap?


I was hoping to use something like


postmap -q - 'pipemap:{ldap:./adlookup.cf pcre:./smtpstrip.pcre}'


in analogy to


postmap -q - ldap:./adlookup.cf 

and

postmap -q - pcre:./smtpstrip.pcre


However postmap reports

postmap: fatal: unsupported dictionary type: pipemap


Regards,

Todd Olson

Cornell University

Reply | Threaded
Open this post in threaded view
|

Re: explore/test pipemap?

Viktor Dukhovni
> On Dec 20, 2018, at 10:17 AM, Todd C. Olson <[hidden email]> wrote:
>
> However postmap reports
> postmap: fatal: unsupported dictionary type: pipemap
>
> Cornell University

Your version of Postfix is likely too old.

  $ postconf mail_version mail_release_date
  mail_version = 3.3.1
  mail_release_date = 20180519

  $ postconf -m | grep pipemap
  pipemap

  $ echo abc | postmap -q - "pipemap:{static:foo static:bar}"
  abc     bar

The "pipemap" table type was added in Postfix 3.0 (more precisely,
snapshot postfix-2.12-20140701).

--
        Viktor.
Reply | Threaded
Open this post in threaded view
|

Re: explore/test pipemap?

Todd C. Olson

Thank you Viktor

That was the issue.

Regards,

Todd



From: [hidden email] <[hidden email]> on behalf of Viktor Dukhovni <[hidden email]>
Sent: Thursday, December 20, 2018 11:52
To: Postfix users
Subject: Re: explore/test pipemap?
 
> On Dec 20, 2018, at 10:17 AM, Todd C. Olson <[hidden email]> wrote:
>
> However postmap reports
> postmap: fatal: unsupported dictionary type: pipemap
>
> Cornell University

Your version of Postfix is likely too old.

  $ postconf mail_version mail_release_date
  mail_version = 3.3.1
  mail_release_date = 20180519

  $ postconf -m | grep pipemap
  pipemap

  $ echo abc | postmap -q - "pipemap:{static:foo static:bar}"
  abc     bar

The "pipemap" table type was added in Postfix 3.0 (more precisely,
snapshot postfix-2.12-20140701).

--
        Viktor.