|
Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com |
Re: usage of postmap command to make lookup tables
From: Wietse Venema (wietse
porcupine.org)
Date: Tue Jun 06 2006 - 20:05:56 CDT
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Arya, Manish Kumar:
> Hi,
>
> can anyone post example of usage of postmap cmd to
> make hash or cidr lookup table from source file. my
> source file contains "mynetworks"
>
> like
>
> xxx.xxx.xxx.xxx/xx OK
>
> I have tried
>
> $postmap hash:/tmp/test.map < /etc/postfix/mynetworks
The manual does NOT say that you create a table with
postmap outputfile < inputfile.
> it says there no "/tmp/test.map"
Please look at the postmap manual page. Do pay attention to the
SYNOPSIS, and then choose the command options that are needed to
create a table.
The text about the Sendmail's "makemap" describes how the format
of Postfix tables corresponds with Sendmail lookup tables.
But you are not using Sendmail, so you don't have to worry about
Sendmail's "makemap" command syntax.
> then i did touch /tmp/test.map and tried again
>
> then if complains "hash" unknown type, same for cidr
> I have checked $postconf -m, cidr is listed there
The cidr_table manual page says that you use postmap to QUERY a
cidr table.
The cidr_table manual page does NOT say that you use postmap to
CREATE a cidr table.
Wietse
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]