Re: domain (real + virtual) mapping question

From: Miguel Angel Tormo (no email)
Date: Mon Apr 02 2007 - 08:25:39 EDT

  • Next message: JOYDEEP: "error - directory:bss_file.c:122:fopen('/etc/postfix/cacert.pem','r'"

    El Lunes 02 Abril 2007 13:11, Richard Foley escribió:
    > 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/
    alias_maps = pcre:/etc/postfix/aliases

    /etc/postfix/aliases:
    /hostmaster/    root
    /name\.\w+/     user

    Note that you cannot use $1, $2, etc if implementing alias_maps with pcre or regexp tables.
    >
    > 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/
    >
    > 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: JOYDEEP: "error - directory:bss_file.c:122:fopen('/etc/postfix/cacert.pem','r'"





    Hosted Email Solutions

    Invaluement Anti-Spam DNSBLs



    Powered By FreeBSD   Powered By FreeBSD