On Mon, 04 Jan 2010 14:21:58 -0600
Jacob Yocom-Piatt <[email protected]> wrote:

> i am working on a new production mailserver using smtpd for an mta
> and dovecot for serving mail. i have run into a problem where i would
> like to use the same authentication mechanism for smtpd and dovecot
> so there is only one password database to maintain.
> 
> as best i can tell i need to use system accounts and virtual user
> maps to get mail to dump into separate directories. the caveat is
> getting either dovecot to understand the virtual user mapping to
> system accounts or smtpd to do smtp authentication through dovecot. i
> would rather use bsdauth than have dovecot handle authentication.
> 
> i currently have smtpd setup and delivering mail fine with the
> following config
> 
> ext_if = "re0"
> 
> listen on lo0
> listen on $ext_if tls enable auth
> 
> map "aliases" { source db "/etc/mail/aliases.db" }
> map "virtual" { source db "/etc/mail/virtual.db" }
> 
> accept for local alias aliases deliver to mbox
> accept from all for virtual "virtual" deliver to maildir
> "/var/vmail/%d/%a" accept for all relay
> 
> with the virtual map specified like so
> 
> [email protected]: user1_dom1
> ...
> [email protected]: userN_dom1
> 
> where i have added users user1_dom1 through userN_dom1 with the false 
> shell to the system. all works fine with the mail delivery and relay.
> 
> any insight into how i can get dovecot or smtpd to do what i want
> would be appreciated.

I've written a bsdauth module for to authenticate  over pop3.
since smtpd using bsdauth - you can use it. later today I'll put it on
the web to share.     

-- 
With best regards,
        Gregory Edigarov

Reply via email to