[Dovecot] Authentication based on client host

Timo Sirainen tss at iki.fi
Mon Aug 15 00:31:44 EEST 2005


On Sun, 2005-08-14 at 13:12 +0200, Sebastjan Trepca wrote:
> I am wondering if it's possible to authenticate users that come from
> specific IP differently then other users.
> 
> I will be authenticating them by postgresql so something like this
> would be very useful:
> 
> password_query = SELECT password from get_user('%username','%host')
> 
> Is that possible? Can it be done any other way?

 %r - remote IP address

so get_user('%u', '%r') should work. With 1.0-stable/tests only.

-------------- 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/20050815/077c2e43/attachment.pgp


More information about the dovecot mailing list