Re: VIRTUAL - User Permissions and Ownership

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 ...


Go Back   Usenet Forums > Mail Servers and Related > mailing.postfix.users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 05-24-2005
Postmaster
 
Posts: n/a
Default Re: VIRTUAL - User Permissions and Ownership


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 ?


Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 05:08 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0