SMTP auth over dovecot with local ip variable
\ Simon Witzl - LimTec GmbH (22 Oct 2007)
. \ Simon Witzl - LimTec GmbH (23 Oct 2007)
. . \ (Wietse Venema) (23 Oct 2007)
. \ Simon Witzl - LimTec GmbH (23 Oct 2007)
. \ simon witzl (25 Oct 2007)

2 msgRestrict relay on one port, but not on another.
3 msgHow to append text to all outgoing mails
5 msgWhat is a Postfix policy server?
4 msgERROR: said: 554 5.7.7 PTR, invalid: cache
1 msgJorge Carminati is out of the office.
2 msgpolicy/content ordering
13 msgPostfix/Mailman problem
4 msgpostfix wildcard for unknown local recipients
2 msgreplacing 'localhost.localdomain' with fqhostna...
4 msgQuick revisit of epoll compile warnings
1 msgPostix official release 2.4.6, 2.3.13, 2.2.12 a...
5 msgtimed out while sending end of data
3 msgMailman/postfix problem help request (fwd)
2 msgmail redirected to mailman list considered as g...
3 msgPostfix restriction classes question.
7 msgReply-To
2 msgFrom my IDS logs
6 msgweird mynetworks problem
2 msglocal_recipient_maps with cyrus
Subject:Re: SMTP auth over dovecot with local ip variable
Group:Postfix-users
From:simon witzl
Date:25 Oct 2007


 
Andrew Garner schrieb:
> 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