This is a discussion on Re: IMAP /etc/userdb and postfix within the mailing.postfix.users forums, part of the Mail Servers and Related category; Postmaster wrote: > I'll ask and duck... It appears as though several have gotten flamed for > the same ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Postmaster wrote:
> I'll ask and duck... It appears as though several have gotten flamed for > the same question - but I'll be da**ned if I can find it. > > I think I now have postfix mail receiving to real *nix accounts as well > as virtual. I used the create of /etc/userdb, manually duplicated then > entries for the virtual domains, and then set the password for > each...the /etc/userdb file looks reasonable. > > In my various trys to access the mail, other than by "cat" or "less" of > the /var/mail/vhost/domain-name/user, I have not implemented a > successful retrieve. It appears as though I wish to implement > > local_recipient_maps = something... > > but "something" is not obvious. I am trying to avoid cyrus sasl mysql > etc., etc. I'm only talking a dozen users for each of 3 domains. > > My apologies to Wietse...but what is the "something" if I have > implemented the courier imap specified /etc/userdb ? > > ducking and covering... > > - Bill > You will probably want to make sure you have the maildrop (the courier version) configured in master.cf, something like: maildrop unix - n n - - pipe flags=DRhu user=mail argv=/usr/bin/maildrop -d ${user}@${nexthop} ${extension} ${recipient} ${user} ${nexthop} Change mail to whatever user you want the maildrop to be run as... Then in your main.cf, make sure your virtual_transport (or local_transport for your local users) is set to: virtual_transport = maildrop # and/or local_transport = maildrop This will ensure that you are delivering the mail to the location that userdb is configured for. For creating the userdb entries, I use the following: mkdir /etc/courier/userdb/ chown -R vmail /etc/courier/userdb/ for (all email address for all domains) { /usr/sbin/userdb "example.com/spamtrap@example.com" set home=/var/mail/vhost/example.com/spamtrap mail=/var/mail/vhost/example.com/spamtrap uid=8 gid=8 # you will probably need to change uid and gid to what your user you want to deliver mail as... } /usr/sbin/makeuserdb As you can see the courier-maildrop on my system is configured for /etc/courier/userdb/ rather than just /etc/userdb, YMMV. Hope to help, Damien |
![]() |
| Thread Tools | |
| Display Modes | |
|
|