[Dovecot] Proxy using passd file

Clayton Epp cepp at goldak.ca
Mon Oct 23 18:10:58 UTC 2006


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


More information about the dovecot mailing list