Re: IMAP /etc/userdb and postfix

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


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-26-2005
Damien Mascord
 
Posts: n/a
Default Re: IMAP /etc/userdb and postfix

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

Reply With Quote
Reply


Thread Tools
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

vB 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 03:20 PM.


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