| |||||||||||||||||||||||||||||||
|
> On 10/23/07, Simon Witzl - LimTec GmbH <swi> wrote: > >> Andrew Garner schrieb: >> >>> On 10/22/07, Simon Witzl - LimTec GmbH <swi> wrote: >>> >>> >>>> Hello, >>>> >>>> i would like to know if its possible to use the local ip of the server a >>>> client connected to >>>> for sending mail via sasl authentication in the dovecot sql query ? >>>> In my tests with using the following postfix sasl options it did not >>>> function dovecot used an emtpy string as remplacement for the %l variable. >>>> >>>> smtpd_sasl_auth_enable = yes >>>> smtpd_sasl_local_domain = >>>> smtpd_sasl_path = /var/run/dovecot/auth-client >>>> smtpd_sasl_security_options = noanonymous >>>> smtpd_sasl_type = dovecot >>>> >>>> SWI >>>> >>>> >>>> >>>> >>> The Dovecot SASL plugin in Postfix doesn't support this. However, >>> If you're interested, I have a small patch that adds the lip and rip >>> attributes into the auth protocol conversation which makes the %l and >>> %r variables available to dovecot. >>> >>> >> After looking for ways to get the local ip usable for sasl >> authentication with cyrus sasl and seeing that >> there isnt one i would like to try your patch now that adds the lip and >> rip attributes. >> Could you please send it to me ? >> >> > > I've used this patch on a low traffic server for about a month now > (postfix-2.3.8+dovecot-1.0.0 on debian/etch), as well as an internal > development server (postfix-2.4.5+dovecot-1.1hg debian/etch). Let > me know if it works for you. > > I'm willing to clean it up for further integration into the postfix > distribution, if it's useful. > Your patch works great for me with postfix-2.4.6 + dovecot 1.0.3 on gentoo.
| ||||||||||||||||||||||||||||||
© 2004-2008 readlist.com