[Dovecot] Proxy using passd file

Timo Sirainen tss at iki.fi
Mon Oct 23 20:14:17 UTC 2006


On Mon, 2006-10-23 at 11:10 -0600, Clayton Epp wrote:
> >> I'm trying to create a proxy using passwd files. Can I use the
> existing
> >> passwd files created by the system (ie passwd and shadow) or do I
> have
> >> to create new passwd files for the email proxy users? How would the
> >> passwd and shadow files for a proxy using passwd files look? I've
> tried
> >> the example on the wiki but I'm not getting anywhere, pop and imap
> >> requests are not getting sent to the other server.
> 
> >I don't think existing /etc/password would work as extra fields may
> >confuse the system.
> 
> >You could try something like
> 
> >passdb passwd-file {
> >    args = /etc/dovecot/proxied-users.%Ls
> >}
> 
> >passdb pam {
> >}
> 
> >which would check the for the username in proxied-users.imap or
> >proxied-users.pop3 (depending on the protocol) first, then authenticate
> >as usual (via PAM, say) if it isn't there. Then have lines like
> 
> >username:::::::host=123.234.345.567 port=143 nodelay=n nologin=y
> proxy=y
> 
> >in the proxied-users.imap file and the same with port=110 in the .pop3
> >file.
> 
> >Best Wishes,
> >Chris
> 
> Thanks Chris this pointed me in the right direction, and the proxy is
> now working. I didn't realize that the order of the passdb declarations
> mattered. Thanks again for your reply!

I don't think the PAM authentication is made though, but it probably
doesn't matter since the remote server checks the password anyway?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://dovecot.org/pipermail/dovecot/attachments/20061023/3d79564a/attachment.pgp 


More information about the dovecot mailing list