Loading ...
Sorry, an error occurred while loading the content.
 

Re: LDAP Lookup Tables

Expand Messages
  • Victor Duchovni
    ... The key thing with such scripts is to not use the output if any part of the script fails, so write code with meticulous error checking and atomic
    Message 1 of 8 , Dec 3, 2006
      On Mon, Dec 04, 2006 at 10:32:49AM +1300, Richard Greaney wrote:

      > Thanks for that. It's nice to know someone else is doing it that way. I
      > think I'll end up doing it this way also, since Postfix isn't designed
      > to do ismember() stuff.
      >
      > It's not so much the realtime aspect that I was seeking, as more the
      > fact that there is one less script to run and therefore one less link in
      > the chain to fail. Still, I've been generating my access lists using a
      > separate script up until this point and it's been working fine.

      The key thing with such scripts is to not use the output if any part of
      the script fails, so write code with meticulous error checking and atomic
      (create/lock then write temp file, then rename, don't overwrite config
      files directly) I/O.

      --
      Viktor.

      Disclaimer: off-list followups get on-list replies or get ignored.
      Please do not ignore the "Reply-To" header.

      To unsubscribe from the postfix-users list, visit
      http://www.postfix.org/lists.html or click the link below:
      <mailto:majordomo@...?body=unsubscribe%20postfix-users>

      If my response solves your problem, the best way to thank me is to not
      send an "it worked, thanks" follow-up. If you must respond, please put
      "It worked, thanks" in the "Subject" so I can delete these quickly.
    Your message has been successfully submitted and would be delivered to recipients shortly.