[imp] IMP using horde credentials for smtp auth when not desired

Luis Felipe Marzagao lfbm.andamentos at gmail.com
Sat Jul 6 05:29:39 UTC 2013


Em 05-07-2013 23:18, Luis Felipe Marzagao escreveu:
> Hello:
>
> Horde 5.1.1
> IMP 6.1.2
>
>
> My configuration files:
>
> imp/config/backends.local.php:
>
> $server['imap']['smtp']['horde_auth'] = false;
>
>

Removing the line above from backends.local.php makes no difference. 
Same result. Also, setting $server['imap']['smtp']['username'] and 
$server['imap']['smtp']['password'] in backends.local.php makes no 
difference. Same result as the original post.


> horde/config/conf.php:
>
> $conf['mailer']['params']['host'] = 'smtp.gmail.com';
> $conf['mailer']['params']['port'] = 587;
> $conf['mailer']['params']['auth'] = true;
> $conf['mailer']['params']['username'] = 'mailer at tesdomain.com.br';
> $conf['mailer']['params']['password'] = 'gmail-dummy-password';
> $conf['mailer']['type'] = 'smtp';
>
>
> But IMP seems to be ignoring the above settings and is using horde 
> credentials anyway to send the message.
>
>
> I've added Horde::debug($this->_params) at line 147 of 
> /usr/share/php/Horde/Mail/Transport/Smtp.php
>
>
> When I click the *New Message* button I get this, which seems just fine:
>
> 2013-07-05T22:48:00-03:00 DEBUG: Variable information:
> array(10) {
>   ["auth"]=>
>   bool(true)
>   ["debug"]=>
>   bool(false)
>   ["host"]=>
>   string(14) "smtp.gmail.com"
>   ["localhost"]=>
>   string(9) "localhost"
>   ["password"]=>
>   string(17) "gmail-dummy-password"                         <-- Ok!
>   ["persist"]=>
>   bool(false)
>   ["pipelining"]=>
>   bool(false)
>   ["port"]=>
>   int(587)
>   ["timeout"]=>
>   NULL
>   ["username"]=>
>   string(22) "mailer at tesdomain.com.br" <-- Ok!
> }
>
> Backtrace:
>  1. IMP_Dynamic_Base->__construct() /var/www/horde/imp/dynamic.php:31
>  2. IMP_Dynamic_Compose->_init() 
> /var/www/horde/imp/lib/Dynamic/Base.php:90
>  3. Horde_Notification_Handler->notify() 
> /var/www/horde/imp/lib/Dynamic/Compose.php:260
>  4. Horde_Notification_Handler_Decorator_Alarm->notify() 
> /usr/share/php/Horde/Notification/Handler.php:317
>  5. Horde_Core_Factory_Alarm->create() 
> /usr/share/php/Horde/Notification/Handler/Decorator/Alarm.php:61
>  6. Horde_Injector->getInstance() 
> /usr/share/php/Horde/Core/Factory/Alarm.php:93
>  7. Horde_Injector->createInstance() /usr/share/php/Horde/Injector.php:247
>  8. Horde_Injector_Binder_Factory->create() 
> /usr/share/php/Horde/Injector.php:213
>  9. Horde_Core_Factory_MailBase->create() 
> /usr/share/php/Horde/Injector/Binder/Factory.php:111
> 10. Horde_Core_Factory_Mail->create() 
> /usr/share/php/Horde/Core/Factory/MailBase.php:37
> 11. Horde_Mail_Transport_Smtp->__construct() 
> /usr/share/php/Horde/Core/Factory/Mail.php:55
> 12. Horde::debug() /usr/share/php/Horde/Mail/Transport/Smtp.php:147
>
>
> But when I click the *Send* button on the compose window I get this:
>
> 2013-07-06T01:49:44+00:00 DEBUG: Variable information:
> array(10) {
>   ["auth"]=>
>   bool(true)
>   ["debug"]=>
>   bool(false)
>   ["host"]=>
>   string(14) "smtp.gmail.com"
>   ["localhost"]=>
>   string(9) "localhost"
>   ["password"]=>
>   string(6) "horde-dummy-password"                   <-- Not Ok!
>   ["persist"]=>
>   bool(false)
>   ["pipelining"]=>
>   bool(false)
>   ["port"]=>
>   int(587)
>   ["timeout"]=>
>   NULL
>   ["username"]=>
>   string(4) "horde-dummy-username"                   <-- Not Ok!
> }
>
> Backtrace:
>  1. Horde_Core_Ajax_Application->doAction() 
> /var/www/horde/services/ajax.php:58
>  2. call_user_func() /usr/share/php/Horde/Core/Ajax/Application.php:162
>  3. IMP_Ajax_Application_Handler_Common->sendMessage()
>  4. IMP_Compose->buildAndSendMessage() 
> /var/www/horde/imp/lib/Ajax/Application/Handler/Common.php:528
>  5. IMP_Compose->sendMessage() /var/www/horde/imp/lib/Compose.php:842
>  6. Horde_Injector->getInstance() /var/www/horde/imp/lib/Compose.php:1066
>  7. Horde_Injector->createInstance() /usr/share/php/Horde/Injector.php:247
>  8. Horde_Injector_Binder_Factory->create() 
> /usr/share/php/Horde/Injector.php:213
>  9. IMP_Factory_Mail->create() 
> /usr/share/php/Horde/Injector/Binder/Factory.php:111
> 10. Horde_Core_Factory_Mail->create() 
> /var/www/horde/imp/lib/Factory/Mail.php:64
> 11. Horde_Mail_Transport_Smtp->__construct() 
> /usr/share/php/Horde/Core/Factory/Mail.php:55
> 12. Horde::debug() /usr/share/php/Horde/Mail/Transport/Smtp.php:147
>
>
> And authentication with gmail smtp server fails:
>
> Jul  5 22:49:47 mserver HORDE: [imp] Failed to set sender: 
> xxxxxx at xxxxxx.xxx.xx [SMTP: Invalid response code received from server 
> (code: 530, response: 5.5.1 Authentication Required. Learn more 
> at#0125.5.1 http://support.google.com/mail/bin/answer.py?answer=14257 
> h26sm17104593yhb.21 - gsmtp)] [pid 6800 on line 1068 of 
> "/var/www/horde/imp/lib/Compose.php"]
>
> Prior to updating horde via pear it was working just fine.
>
> Any directions?
>
> Thanks a lot.
> Luis Felipe



More information about the imp mailing list