Re: A list in a file

2010-06-23 Thread Ralf Hildebrandt
* Phil Howard : > Been trying to figure that out. I'm wanting to use CDB. But it > wasn'tfile.out taking it. I guess what I need to do is give each domain a > dummy value. awk '{printf("%s OK\n",$1)}' file > file.out postmap file.out -- Ralf Hildebrandt Geschäftsbereich IT | Abteilung Ne

Re: A list in a file

2010-06-23 Thread Phil Howard
On Wed, Jun 23, 2010 at 12:46, Victor Duchovni wrote: > Most Postfix services (i.e. delivery > agents and inet services) restart automatically after processing > a ~100 requests, and reloads are not generally needed for parameters > that touch these services. Hmmm. Maybe that explains some odd

Re: A list in a file

2010-06-23 Thread Phil Howard
On Wed, Jun 23, 2010 at 12:44, Noel Jones wrote: > There is no "include" syntax for main.cf itself. > > You can use a Makefile to build a main.cf from proto files, or use "postconf > -e ..."  for program-controlled editing of main.cf. You'd still have to make it reload for rebuilding the whole f

Re: A list in a file

2010-06-23 Thread Victor Duchovni
On Wed, Jun 23, 2010 at 12:40:30PM -0400, Phil Howard wrote: > >> How would I do this for smtpd_recipient_restrictions? > > > > > > That question makes no sense. ?Rephrase. > > I was looking for a general solution. I picked an example. But I > apparently picked a bad example because the solutio

Re: A list in a file

2010-06-23 Thread Noel Jones
On 6/23/2010 11:40 AM, Phil Howard wrote: How would I do this for smtpd_recipient_restrictions? That question makes no sense. Rephrase. I was looking for a general solution. I picked an example. But I apparently picked a bad example because the solution seems to be example specific. I gu

Re: A list in a file

2010-06-23 Thread Phil Howard
>> How would I do this for smtpd_recipient_restrictions? > > > That question makes no sense.  Rephrase. I was looking for a general solution. I picked an example. But I apparently picked a bad example because the solution seems to be example specific. I guess I better not pick examples, anymore

Re: A list in a file

2010-06-23 Thread Noel Jones
On 6/23/2010 11:30 AM, Phil Howard wrote: On Wed, Jun 23, 2010 at 12:20, Noel Jones wrote: From the mydestination docs: a "type:table" lookup table is matched when a name matches a lookup key (the lookup result is ignored). All map files require a "key result" format. In the case of a map

Re: A list in a file

2010-06-23 Thread Phil Howard
On Wed, Jun 23, 2010 at 12:20, Noel Jones wrote: > From the mydestination docs: > a "type:table" lookup table is matched when a name matches a lookup key (the > lookup result is ignored). > > All map files require a "key  result" format.  In the case of a map file > used as a list, such as virtua

Re: A list in a file

2010-06-23 Thread Victor Duchovni
On Wed, Jun 23, 2010 at 11:20:47AM -0500, Noel Jones wrote: > From the mydestination docs: > a "type:table" lookup table is matched when a name matches a lookup key > (the lookup result is ignored). > > All map files require a "key result" format. In the case of a map file > used as a list, su

Re: A list in a file

2010-06-23 Thread Noel Jones
On 6/23/2010 11:06 AM, Phil Howard wrote: On Wed, Jun 23, 2010 at 12:01, Noel Jones wrote: The documentation shows what syntax is supported for each parameter. Some -- but not all -- parameters support a plain file list. You can start here: http://www.postfix.org/postconf.5.html#virtual_mail

Re: A list in a file

2010-06-23 Thread Phil Howard
On Wed, Jun 23, 2010 at 12:01, Noel Jones wrote: > The documentation shows what syntax is supported for each parameter.  Some > -- but not all -- parameters support a plain file list. > > You can start here: > http://www.postfix.org/postconf.5.html#virtual_mailbox_domains Been trying to figure t

Re: A list in a file

2010-06-23 Thread /dev/rob0
On Wed, Jun 23, 2010 at 11:52:31AM -0400, Phil Howard wrote: > I think maybe I'm missing something in the documentation, as I > was sure Postfix could do this. You are, it can. > What I want to do is take a list of things, such as the list of > domains for virtual_mailbox_domains, right out of a

Re: A list in a file

2010-06-23 Thread Noel Jones
On 6/23/2010 10:52 AM, Phil Howard wrote: I think maybe I'm missing something in the documentation, as I was sure Postfix could do this. What I want to do is take a list of things, such as the list of domains for virtual_mailbox_domains, right out of a file. This isn't a map. But do I still ne

A list in a file

2010-06-23 Thread Phil Howard
I think maybe I'm missing something in the documentation, as I was sure Postfix could do this. What I want to do is take a list of things, such as the list of domains for virtual_mailbox_domains, right out of a file. This isn't a map. But do I still need to do a map, anyway?