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?

Re: A list in a file

2010-06-23 Thread Noel Jones
need to do a map, anyway? 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 -- Noel Jones

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 Phil Howard
On Wed, Jun 23, 2010 at 12:01, Noel Jones njo...@megan.vbhcs.org 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

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 Jonesnjo...@megan.vbhcs.org 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

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

Re: A list in a file

2010-06-23 Thread Phil Howard
On Wed, Jun 23, 2010 at 12:20, Noel Jones njo...@megan.vbhcs.org 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

Re: A list in a file

2010-06-23 Thread Noel Jones
. In the case of a map file used as a list, such as virtual_mailbox_domains, the result must be present but is not used. So your file must look like: example.com dummy example1.com dummy Where dummy is any text you care to use. How would I do this for smtpd_recipient_restrictions

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: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

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 solution seems to

Re: A list in a file

2010-06-23 Thread Phil Howard
On Wed, Jun 23, 2010 at 12:44, Noel Jones njo...@megan.vbhcs.org 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

Re: A list in a file

2010-06-23 Thread Phil Howard
On Wed, Jun 23, 2010 at 12:46, Victor Duchovni victor.ducho...@morganstanley.com 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.

Re: A list in a file

2010-06-23 Thread Ralf Hildebrandt
* Phil Howard ttip...@gmail.com: 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 |