On Thu, Feb 24, 2011 at 09:52:30AM +0200, Etienne Pretorius wrote:

> I have a email address say staff@domain that maps perfectly to all its 
> intended recipients,
> but on the same machine I have user1@domain that is suppose to map to 
> user1@domain,user2@domain but it does not.

Address mappings are tested via "postmap -q".

> MAIN.CF
> virtual_alias_maps = mysql:/etc/postfix/mysql.virtualaliases.cf

[usually best to put "proxy:" in front of "mysql:"]

Report the output of:

    postmap -q [email protected] mysql:/etc/postfix/mysql.virtualaliases.cf
    echo $?

> mysql> select Destination from postfix_virtual where 
> EmailAddr='user1@domain';
> +--------------------------------------------------+
> | Destination                                      |
> +--------------------------------------------------+
> | user1@domain,user2@domain     |
> +--------------------------------------------------+

Usually, in a database, better to make this multiple rows with the same
lookup key:

        Index column            Value Column
        [email protected]       [email protected]
        [email protected]       [email protected]

-- 
        Viktor.

Reply via email to