Re: domain (real + virtual) mapping question

From: mouss (no email)
Date: Mon Apr 02 2007 - 17:22:33 EDT

  • Next message: mouss: "Re: Programatically changing posfix aliases ?"

    Richard Foley wrote:
    > I'm using postfix with 2 domains: a main "rfi.net" domain, and another virtual
    > domain.
    >
    > The main domain is handled via /etc/postfix/aliases linked to /etc/aliases,
    > and has hard-wired "name"s on the left-hand side, with existing system user
    > accounts on the right-hand side, as the default setup, plus several entries
    > for explictly diverted majordomo aliases. And works fine, eg:
    >
    > hostmaster: root
    >
    > # main.cf has:
    >
    > alias_maps = hash:/etc/postfix/aliases
    >
    > The virtual domain is handled via /etc/postfix/virtual_alias_maps, and this
    > uses regexes to map particular name.patterns to various user accounts. And
    > works fine, eg:
    >
    > /name\.\w+@virtual.net/
    >

            /name\.\w+@virtual\.net$/ ...

    is safer.
    > My problem is that I would like to have the 'main' domain also able to use a
    > regex to divert email to particular user accounts, which description in the
    > docs is eluding me. If I place the main domain in the virtual table, postfix
    > rightfully complains about not mixing incompatible configurations, but if I
    > put the main domain in the aliases table, I appear to lose the regex
    > facility... I hope this is clear? What I very simply want to do is this:
    >
    > /name\.\w+@main.net/
    >

    just add these to virtual_alias_maps. virtual aliases apply to _all_
    mail, whatever is the domain (yes, even for mail sent to @gmail.example).
    > I'm sure it's something obvious in the docs, but being a postfix newbie, I am
    > simply lost amongst all the virtual domains, virtual aliases, alias_maps,
    > aliases, transport_maps, etc. etc. If anyone has a simple hint which could
    > help clarify the situation, I'd greatly appreciate it.
    >
    > TIA.
    >
    >


  • Next message: mouss: "Re: Programatically changing posfix aliases ?"





    Hosted Email Solutions

    Invaluement Anti-Spam DNSBLs



    Powered By FreeBSD   Powered By FreeBSD