[imp] SASL authentication in IMP-6.1.0beta1

Arjen de Korte arjen+horde at de-korte.org
Wed May 15 20:34:07 UTC 2013


Citeren Michael M Slusarz <slusarz at horde.org>:

> Quoting Jan Schneider <jan at horde.org>:
>
>> Zitat von Arjen de Korte <arjen+horde at de-korte.org>:
>>
>>> Citeren Jan Schneider <jan at horde.org>:
>>>
>>>> Zitat von Arjen de Korte <arjen+horde at de-korte.org>:
>>>>
>>>>> I'm currently trying out the latest PEAR beta packages. I can't  
>>>>> get the SASL authentication to work. Previously, I've used the  
>>>>> configuration in the Mailer tab from the Horde configuration,  
>>>>> with the $conf[mailer][params][username] and  
>>>>> $conf[mailer][params][password] fields empty. With the -stable  
>>>>> versions so far, this has always resulted in Horde using the  
>>>>> login credentials (which is what I want, since I use the same  
>>>>> credentials for IMAP and SMTP). This no longer works. Both the  
>>>>> username and password presented to the SMTP server are now  
>>>>> empty. If I hardcode these in the Mailer tab to an existing  
>>>>> username:password combination, it works, but this will only work  
>>>>> as long as I have one user (myself) on the testing system, since  
>>>>> the SMTP server also checks if the logged-in user is allowed to  
>>>>> use the sender address. Is this still under development (and  
>>>>> should I just be a little more patient) or am I missing  
>>>>> something in the configuration?
>>>>
>>>> Sounds like a bug.
>>>
>>> I'm not sure. When I enter the same information from the Mailer  
>>> tab in 'imp/config/backends.local.php', it works as before. Could  
>>> it be this is the future method of configuration of the SASL  
>>> authentication and that the Mailer tab will be deprecated soon?
>>
>> No, the global mailer configuration is still required for  
>> applications other than IMP. And authentication with the current  
>> user's credentials will always be supported.
>
> FWIW, I require authentication to my SMTP server and it works fine  
> for me configured in Horde's config.

If I enter the login credentials in the Horde config Mailer tab, it  
indeed works. But not if I leave the $conf[mailer][params][username]  
and $conf[mailer][params][password] fields empty (as stated above).

I added

Horde::debug('auth: [' . $this->_params['auth'] . '] user: [' .  
$this->_params['username'] . '] pass: [' . $this->_params['password']  
. ']');

just before the line 268 in /usr/share/php5/PEAR/Horde/Mail/Transport/Smtp.php

$res = $this->_smtp->auth($this->_params['username'],  
$this->_params['password'], $method);

which indicates that 'username' and 'password' are empty (which is  
consistent with what the debug log on the SMTP server says). Note that  
I'm not running the latest packages from Git here, only the latest  
-beta versions as of this writing.
-- 
This message was sent from a mailinglist subscription address.
For off-list replies, you must remove the address extension.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 308 bytes
Desc: PGP digitale ondertekening
URL: <http://lists.horde.org/archives/imp/attachments/20130515/f66bae18/attachment-0001.bin>


More information about the imp mailing list