postfix: virtual mailbox domains
I'm setting up a new postfix installation. This go around, I am purposefully trying to utilize virtual mailbox domains, because I don't want any of the mail users to have actual UNIX accounts on the system. I think most everything in the Virtual README makes good sense, but I was hoping for clarification on a few points:
1. What uid/gid should I use for virtual_uid_maps and virtual_guid_maps? It looks like the system already has a mail:mail account/group (8:8). Can I just use that, or do I need to create another account/group? (say, vmail:vmail) 2. Likewise, what should be the user:group and the permissions of mailbox base directory which I presumably must create? (/var/mail/vhosts) These are the permissions of /var/mail: Code:
# ls -lh /var/mail -d |
Sigh... evidently, of all the thousands of system admins at LQ, I am the first one to create virtual mailboxes with postfix.
Fortunately I was able to figure it out on my own, or partly so. 1. I found a postfix tutorial for Gentoo: http://www.gentoo.org/doc/en/virt-mail-howto.xml. It indicated that a vmail user should be created with Code:
useradd -d /home/vmail -s /bin/false -m vmail 3. This worked out a little differently then I expected, because the myorigin variable was set to $mydomain, so sendmail appends the domain name to mail normally directed towards root. So, I just added another entry to my vmailbox map pointing from root@<mydomainname> to my personal account. And this seems to work fine, at least according to my sendmail tests. |
All times are GMT -5. The time now is 12:53 PM. |