Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 271345 - Postfix virtual_alias_maps is set to the wrong file
Summary: Postfix virtual_alias_maps is set to the wrong file
Status: RESOLVED INVALID
Alias: None
Product: [OLD] Docs on www.gentoo.org
Classification: Unclassified
Component: Other documents (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: nm (RETIRED)
URL: http://www.gentoo.org/doc/en/virt-mai...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-05-26 20:43 UTC by Mikael Nordin
Modified: 2009-05-28 19:50 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Mikael Nordin 2009-05-26 20:43:14 UTC
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"
Comment 1 nm (RETIRED) gentoo-dev 2009-05-27 00:32:13 UTC
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?
Comment 2 Mikael Nordin 2009-05-28 19:50:58 UTC
(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.