On 24/02/2011 17:54, Victor Duchovni wrote:
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 us...@example.com mysql:/etc/postfix/mysql.virtualaliases.cf
echo $?
[root@mx-02 postfix]# postmap -q user1@domain
mysql:/etc/postfix/mysql.virtualaliases.cf
user1@domain,user2@domain
[root@mx-02 postfix]# echo $?
0
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
us...@example.com us...@example.com
us...@example.com us...@example.com