Re: Postmap

From: Dean Strik (no email)
Date: Fri Aug 01 2003 - 14:19:34 EDT


Chateauneuf wrote:
> On Fri, 2003-08-01 at 13:32, Dean Strik wrote:
> > Chateauneuf wrote:
> > > >From regexp_table:
> > >
> > > postmap -q "string" regexp:/etc/postfix/filename
> > >
> > > What does "string" refer to? Is this "Nfinorvw" or something else?
> >
> > This is the thing you want to lookup. The left part this is.
>
> As Weitse pointed out, "string" = key.
>
> "Key" corresponds to the documentation. "String" is ambiguous.
 
The postmap manpage is extremely clear about 'keys', so if you want to
use postmap, reading the manpage should remove any such ambiguity here.

> > The '< inputfile' is not from postmap, but from the Unix shell, and
> > means 'read from file inputfile instead of the terminal'.
> >
> > Are you at all familiar with Unix? If not, configuring Postfix may be a
> > bad idea..
> >
> The fact that an input file works with makemap does NOT necessarily mean
> that it works with postmap. The documentation does not include the input
> file on the command line.

Can't confirm. The manpage for postmap clearly discusses input files:

       file_name
                     The name of the lookup table source file when
                     rebuilding a database.

and file_name is listed in the synopsis. Also, the use of '-' as a key
is clearly documented in the treatment on -q.

> Moreover, I disagree with your statement. Working with applications is a
> very good way to expand one's knowledge of Unix. I'm a beginner yet we
> have had a stable Postfix installation up and running for several months
> with roaming users and SASL compiled in.

There is a difference between *using* Unix, and *administering* Unix. I
cannot recommend the latter if there is no experience with *using* Unix.

-- 
Dean C. Strik             Eindhoven University of Technology
  |    |  http://www.ipnet6.org/
"This isn't right. This isn't even wrong." -- Wolfgang Pauli







Hosted Email Solutions

Invaluement Anti-Spam DNSBLs



Powered By FreeBSD   Powered By FreeBSD