Re: [imp] Cant send mails; No Postfix-Login of Horde?

2013-05-19 Thread Michael Lehner

>> Hey Community,
>>
>> I'm a little bit lost in configuration the imp-Part of Horde.
>>
>> I made a fresh installation of Groupware Edition including imp. I was
able to
>> make the authentication via my IMAP-Server working. I can log in, use all
>> features - also the Administration part .
>>
>> But what I'm not able to is sending mails via Horde. When I press
Send in the
>> Composing-Part nothing happens. No sending or an error info after a few
>> seconds/minutes.
>
> Have you verified that the request is actually being sent to Horde?  
> (e.g. you see a POST request in the httpd logs).  It is pretty much 
> impossible to have a compose action fail and not have SOMETHING either 
> logged or returned to the browser if the request actually makes it to 
> the server.
>
> michael
>
> ___
> Michael Slusarz [slus...@horde.org]
>
Hey Michael,

thx for your reply.

The only request between browser and server is when imp is trying to
find the receipient of the mail I try to send:

217.254.95.102 - - [19/May/2013:20:00:07 +0200] "POST
/horde/services/ajax.php/horde/imple?token=irqPQLjJSgG-gt3kpZ2mag2&app=imp&imple=IMP_Ajax_Imple_ContactAutoCompleter&input=to
HTTP/1.1" 200 458
"https://62.113.200.150/horde/imp/dynamic.php?page=compose&popup=1";
"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:20.0) Gecko/20100101
Firefox/20.0"
217.254.95.102 - - [19/May/2013:20:00:09 +0200] "POST
/horde/services/ajax.php/horde/imple?token=irqPQLjJSgG-gt3kpZ2mag2&app=imp&imple=IMP_Ajax_Imple_ContactAutoCompleter&input=to
HTTP/1.1" 200 458
"https://62.113.200.150/horde/imp/dynamic.php?page=compose&popup=1";
"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:20.0) Gecko/20100101
Firefox/20.0"

Nothing more. After  a few minutes a socket error as ajax-popup appears.

Is there a special imp-logfile I can use to track the error?


Thx, Michael


-- 
imp mailing list
Frequently Asked Questions: http://wiki.horde.org/FAQ
To unsubscribe, mail: imp-unsubscr...@lists.horde.org


Re: [imp] Cant send mails; No Postfix-Login of Horde?

2013-05-19 Thread Michael M Slusarz

Quoting Michael Lehner :


The only request between browser and server is when imp is trying to
find the receipient of the mail I try to send:

217.254.95.102 - - [19/May/2013:20:00:07 +0200] "POST
/horde/services/ajax.php/horde/imple?token=irqPQLjJSgG-gt3kpZ2mag2&app=imp&imple=IMP_Ajax_Imple_ContactAutoCompleter&input=to
HTTP/1.1" 200 458
"https://62.113.200.150/horde/imp/dynamic.php?page=compose&popup=1";
"Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:20.0) Gecko/20100101
Firefox/20.0"


This is the request to expand a contact.

If you are truly seeing no other HTTP entries, then there is something  
wrong with your browser in that it is not successfully submitting the  
compose message to the server.  You're going to have to do javascript  
debugging to figure out what is wrong.


michael

___
Michael Slusarz [slus...@horde.org]

--
imp mailing list
Frequently Asked Questions: http://wiki.horde.org/FAQ
To unsubscribe, mail: imp-unsubscr...@lists.horde.org


[imp] Username hook not working when sending email

2013-05-19 Thread Luis Felipe Marzagao

Hello:

IMP 6.1.0beta2
Horde 5.1.0beta3

I have a username hook in horde that converts the username to 
usern...@example.com.


So the user inputs 'test' in horde login screen, and then 
$registry->getAuth() will return 't...@example.com'.


When I click "New Message" in IMP, the 'username' field in '_params' 
from Horde_Mail_Transport_Smtp is set correctly (with the 
'@example.com'), like this:



2013-05-20T04:06:47+00:00 DEBUG: Variable information:
object(Horde_Mail_Transport_Smtp)#277 (6) {
  ["greeting"]=>
  NULL
  ["queuedAs"]=>
  NULL
  ["_smtp":protected]=>
  NULL
  ["_extparams":protected]=>
  array(0) {
  }
  ["sep"]=>
  string(2) "
"
  ["_params":protected]=>
  array(10) {
["auth"]=>
bool(true)
["debug"]=>
bool(false)
["host"]=>
string(9) "localhost"
["localhost"]=>
string(14) "smtp.gmail.com"
["password"]=>
string(17) "XXX"
["persist"]=>
bool(false)
["pipelining"]=>
bool(false)
["port"]=>
int(465)
["timeout"]=>
NULL
["username"]=>
string(22) *"t...@example.com"*
  }
}

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_Mail->create() 
/usr/share/php/Horde/Injector/Binder/Factory.php:111
10. Horde_Mail_Transport_Smtp->__construct() 
/usr/share/php/Horde/Core/Factory/Mail.php:32

11. Horde::debug() /usr/share/php/Horde/Mail/Transport/Smtp.php:155



But when I click the *'send'* button, the 'username' is set without the 
domain part ('@example.com'), and then the smtp authentication fails (in 
my case the smtp server needs the complete address in order to success).


This is the same debug information as above, but this is shown when I 
click the 'send' button in the compose window (you can see the username 
without the domain part):




2013-05-20T04:12:09+00:00 DEBUG: Variable information:
object(Horde_Mail_Transport_Smtp)#208 (6) {
  ["greeting"]=>
  NULL
  ["queuedAs"]=>
  NULL
  ["_smtp":protected]=>
  NULL
  ["_extparams":protected]=>
  array(0) {
  }
  ["sep"]=>
  string(2) "
"
  ["_params":protected]=>
  array(11) {
["auth"]=>
bool(true)
["debug"]=>
bool(false)
["host"]=>
string(20) "ssl://smtp.gmail.com"
["localhost"]=>
string(9) "localhost"
["password"]=>
string(17) "XXX"
["persist"]=>
bool(false)
["pipelining"]=>
bool(false)
["port"]=>
int(465)
["timeout"]=>
NULL
["username"]=>
string(6) *"test"*
["secure"]=>
string(3) "ssl"
  }
}

Backtrace:
 1. Horde_Core_Ajax_Application->doAction() 
/var/www/horde/services/ajax.php:56

 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:1067
 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_Mail_Transport_Smtp->__construct() 
/var/www/horde/imp/lib/Factory/Mail.php:62

11. Horde::debug() /usr/share/php/Horde/Mail/Transport/Smtp.php:155



Any pointers?

Thanks.
--
imp mailing list
Frequently Asked Questions: http://wiki.horde.org/FAQ
To unsubscribe, mail: imp-unsubscr...@lists.horde.org