Re: Programatically changing posfix aliases ?

From: mouss (no email)
Date: Tue Apr 03 2007 - 16:55:06 EDT

  • Next message: mouss: "Re: check_sender_access actions"

    Mark Watts wrote:
    >> On 2-Apr-07, at 1:25 PM, Victor Duchovni wrote:
    >>
    >>> On Mon, Apr 02, 2007 at 12:28:45PM +0000, Mark Watts wrote:
    >>>
    >>>> Is there a way to programmatically add or modify the postfix
    >>>> aliases database,
    >>>> in a similar way to using "postconf -e" edits main.cf ?
    >>>>
    >>> Use an SQL database.
    >>>
    >> Or LDAP? Speaking of which, do you have an on which you would prefer?
    >> I am finding LDAP to be a big learning curve, but it seems that once
    >> you do that, it is easier to make work with a wide varity of
    >> programs, than an SQL db, which I guess is the point.
    >>
    >
    > Both of these are a overkill for my requirements.
    > I need to change the "root" alias on 130 systems to forward mail off-box.
    > I already have a mechanism to run commands on all boxes, I just wanted
    > something simple to change this one alias.
    >
    > Mark.
    >
    >

    alias_maps = .... /etc/postfix/hourlyaliases

    # cat /etc/postfix/hourlyaliases
    root: someone at somwhere dot example

    your script needs to rewrite hourlyaliases and postalias it.


  • Next message: mouss: "Re: check_sender_access actions"





    Hosted Email Solutions

    Invaluement Anti-Spam DNSBLs



    Powered By FreeBSD   Powered By FreeBSD