There is an error in the guide for "Virtual Mailhosting System with Postfix Guide" found at http://www.gentoo.org/doc/en/virt-mail-howto.xml In code listing 10.9 it says the following: virtual_alias_maps = mysql:/etc/postfix/mysql-virtual.cf "etc/postfix/mysql-virtual.cf" does not contain the information to map the aliases. The file that contains the aliases mapping is "/etc/postfix/mysql-aliases.cf". So its probably just a typo in the guide and it should say: virtual_alias_maps = mysql:/etc/postfix/mysql-aliases.cf Reproducible: Always Steps to Reproduce: 1. Follow the guide 2. Add a user to the alias table for example root -> me@example.com 3. Connect to port 25 on the server with telnet and enter the following: HELO example.com MAIL FROM: test@foo.com RCPT TO: root@example.com Actual Results: The server will then respond with this: 550 5.1.1 <root@example.com>: Recipient address rejected: User unknown in virtual mailbox table Expected Results: If i change the "virtual_alias_maps" to "/etc/postfix/mysql-aliases.cf" i get the following result witch is what i expected: "250 2.1.5 Ok"
Did you miss the instructions in section 10.8 on setting up a mysql-virtual.cf? Mysql-virtual.cf is referenced constantly throughout the guide, as is mysql-aliases.cf. There are some minor differences between the two files as shown in 10.2 and 10.8. The info from example 10.8 is supposed to be used in 10.9 . . . so it is just that you missed the instructions, or is mysql-virtual.cf not created at all anymore, and all references should be dropped? Also, what's your postfix version?
(In reply to comment #1) > Did you miss the instructions in section 10.8 on setting up a mysql-virtual.cf? > > Mysql-virtual.cf is referenced constantly throughout the guide, as is > mysql-aliases.cf. > > There are some minor differences between the two files as shown in 10.2 and > 10.8. The info from example 10.8 is supposed to be used in 10.9 . . . so it is > just that you missed the instructions, or is mysql-virtual.cf not created at > all anymore, and all references should be dropped? > > Also, what's your postfix version? > I'm not sure what i did wrong but now its working. I'm sure this was not a bug in the docs but rather just me doing something wrong. Sorry for wasting your time.