This is a discussion on Re: VIRTUAL - User Permissions and Ownership within the mailing.postfix.users forums, part of the Mail Servers and Related category; I am trying to set up the "Postfix Virtual Doamin Hosting" - 2nd example in the HOWTO - and have ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
I am trying to set up the "Postfix Virtual Doamin Hosting" - 2nd example in the HOWTO - and have run into a bit of snag. =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3 D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3 D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D Ok, let me try to answer this question...... The user and group who will be owner of /var/mail/vhosts, can not be the root user. Create a user like "vmail" and a group like "vgroup" and give the onwership of directory for him. On main.cf, setup: virtual_uid_maps =3D static:uid_of_vuser virtual_gid_maps =3D static:gid_of_vuser =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3 D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3 D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D Owner is now changed Group is now changed If I use: virtual_uid_maps =3D hash:/etc/postfix/uids virtual_gid_maps =3D hash:/etc/postfix/gids So - I think...using the above I would then create /etc/postfix/uids that looks something like username1@domain1.com 50101 anotherusername@2nddomain.com 50201 and... /etc/postfix/gids that looks something like username1@domain1.com 50100 anotherusername@2nddomain.com 50200 leaving me between 50102 and 50199 for users of domain1 and 50202 and up for users of 2nddomain ??? Am I at least in the right forest ? |