On freebsd 8.0: standard install from ports collection:

1) virtual_gid_maps problems #GID does not appear to be working
virtual_gid_maps        = mysql:$config_directory/mysql_gids.cf
#virtual_gid_maps        = static:2001


Postfix creates new directories/mail with gid of postfix user only, completely ignoring virtual_gid_maps. I have tested both static and mysql configurations, same result.

2) Postfix is not changing to root then chown'ing directories to appropriate virtual_uid_maps. Please see proftpd code as how they accomplish this. Problem is when you add a new "maildir" to mysql table that has not existed before, postfix will change euid to the uid of virtual_uid_maps, then attempt to create directories, which forces sys admin to make the virtual_base directory mode 777 as it constantly needs to create directories with new UIDs within there, so just doing a euid change to uid of virtual_uid_maps is not enough to do the initial create of first directory.

Obviously a solution to this is for enduser to create the first directory ahead of time, but this should really be done server side.


Dan.












Reply via email to