[Dovecot] Proxy using passd file

Chris Wakelin c.d.wakelin at reading.ac.uk
Mon Oct 23 17:20:59 UTC 2006



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

-- 
--+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+---+-
Christopher Wakelin,                           c.d.wakelin at reading.ac.uk
IT Services Centre, The University of Reading,  Tel: +44 (0)118 378 8439
Whiteknights, Reading, RG6 2AF, UK              Fax: +44 (0)118 975 3094


More information about the dovecot mailing list