Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 75641

Summary: Postfix HOWTO is inconsistant
Product: Websites Reporter: Juan <juan>
Component: OtherAssignee: Sven Vermeulen (RETIRED) <swift>
Status: RESOLVED INVALID    
Severity: normal CC: docs-team
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: http://www.gentoo.org/doc/en/virt-mail-howto.xml
Whiteboard:
Package list:
Runtime testing required: ---

Description Juan 2004-12-25 11:54:44 UTC
Issue 1:

The MySQL tables "users" tables (maildir cell to be exact) should not have the entire path as the homedir cell satisfies that. It should be everything after the homedir path, ie: .maildir/ and not /home/{USER}/.maildir

Issue 2:

In section 10.10, the hashfile for virtual maps is missing. ie: HOWTO says to add "alias_maps = mysql:/etc/postfix/mysql-aliases.cf" && "virtual_alias_maps = mysql:/etc/postfix/mysql-virtual.cf" to main.cf when it should be "virtual_alias_maps = hash:/var/mailman/data/virtual-mailman, mysql:/etc/postfix/mysql-virtual.cf" && "alias_maps = hash:/var/mailman/data/aliases, mysql:/etc/postfix/mysql-aliases.cf"



Reproducible: Always
Steps to Reproduce:
n/a
Actual Results:  
If I follow the guide word for word, all mail is queued until I addressed Issue
1 and I am unable to recieve any mail for virtual domains, period, until I
addressed Issue 2.


Here is the thread I started seeking help. The thread eventually leads to a
successful mail server install:

http://forums.gentoo.org/viewtopic.php?t=268565
Comment 1 Sven Vermeulen (RETIRED) gentoo-dev 2005-02-05 03:48:23 UTC
Are you sure about the maildir and full path? The postfix' configuration file "main.cf" has:
  virtual_mailbox_maps = mysql:/etc/postfix/mysql-virtual-maps.cf
  virtual_mailbox_base = /

The mysql-virtual-maps.cf file gets the maildir field of the database (which is currently the full path) and that one is used.

If the maildir didn't use a full path, the virtual_mailbox_base="/" setting would make Postfix put it all in /.maildir which isn't valid.
Comment 2 Sven Vermeulen (RETIRED) gentoo-dev 2005-02-05 03:50:34 UTC
The hashfiles are added in section 12, code listing 12.6.
Comment 3 Sven Vermeulen (RETIRED) gentoo-dev 2005-02-05 06:01:02 UTC
This behaviour is confirmed by http://www.postfix.org/postconf.5.html#virtual_mailbox_base and http://www.postfix.org/postconf.5.html#virtual_mailbox_maps.

I'm closing as invalid.