[otrs] How to enable debug for smtp?

Christian Schoepplein christian.schoepplein at otrs.com
Fri Aug 18 11:54:28 CEST 2006


Hello Keith,

On Thu, Aug 17, 2006 at 11:57:18AM -0500, Keith Turner wrote:
>We are still experiencing some very annoying behavior after moving to
>a new SMTP account.
>
>Agent Notifications from the Agent site and email ticket replies from
>the Agent Site go through perfectly.
>
>All the automatic notifications fail.
>
>The otrs log says:
>[Fri Aug  4 09:40:13
>2006][Error][Kernel::System::Email::SMTP::Send][100] Can't send mail
>to: xxx at xxx.com! Enable debug for more info!
>
>I tried adding the code below to enable debug, to no avail, same error
>message either way. I tried both  $Self->{SMTPDebug} = 1; and
>$Self->{SMTPDebug} = 0;, restarting otrs between each test to the same
>result.
>
>  # debug
>  $Self->{Debug} = $Param{Debug} || 0;
>  if ($Self->{Debug} > 2) {
>      # shown on STDERR
>      $Self->{SMTPDebug} = 1;
>  }
>  # added by Keith
>  $Self->{SMTPDebug} = 1;
>
>So how do you enable debug? Do debug results even show up in otrs.log?
>Is it perhaps in a PERL or Apache error log instead.

The debug output is in apache error log. To enable it, just open

    Kernel/System/Email/SMTP.pm

and insert in line 38 the following:

    $Self->{Debug} = 1000;

So it should look like that after the change:

-----
[...]
    # debug
    $Self->{Debug} = $Param{Debug} || 0;
    $Self->{Debug} = 1000;
    $Self->{Debug} = 10;
    if ($Self->{Debug} > 2) {
[...]
-----

>Keith Turner

Regards,

  Christian

-- 
((otrs)) :: OTRS GmbH :: Europaring 4 :: D - 94315 Straubing
  Fon: +49 (0) 9421 1862 760 :: Fax: +49 (0) 9421 1862 769
    http://www.otrs.com/ :: Communication with success!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.otrs.org/pipermail/otrs/attachments/20060818/97f1f7a8/attachment.pgp


More information about the otrs mailing list