OTRS won't send email via SMTP [SOLVED].

Moderator: crythias

Locked
Bucko77
Znuny newbie
Posts: 31
Joined: 29 Jun 2011, 16:02
Znuny Version: 3.0.8
Real Name: Stephen Buckton
Company: Kite Packaging

OTRS won't send email via SMTP [SOLVED].

Post by Bucko77 »

I'm fairly new to OTRS having only built the system yesterday, I can load emails into the system via IMAP but when I try to reply using SMTP I get the error message below:

Backend ERROR: OTRS-CGI-10 Perl: 5.12.3 OS: MSWin32 Time: Wed Jun 29 15:02:19 2011 Message: Impossible to send message to: "xxx" <xxx@xxx.com> . Traceback (1380): Module: Kernel::System::Ticket::Article::ArticleSend (v1.274) Line: 2042 Module: Kernel::Modules::AgentTicketCompose::Run (v1.124.2.7) Line: 534 Module: Kernel::System::Web::InterfaceAgent::Run (v1.58.2.1) Line: 853 Module: ModPerl::ROOT::ModPerl::Registry::C_3a_Program_20Files_20_28x86_29_OTRS_OTRS_bin_cgi_2dbin_index_2epl::handler (unknown version) Line: 49 Module: (eval) (v1.89.2.1) Line: 204 Module: ModPerl::RegistryCooker::run (v1.89.2.1) Line: 204 Module: ModPerl::RegistryCooker::default_handler (v1.89.2.1) Line: 170 Module: ModPerl::Registry::handler (v1.99) Line: 31

If I look in the otrs.log file I get the following:
[Wed Jun 29 15:02:19 2011][Error][Kernel::System::Email::SMTP::Send][117] Can't connect to xxx.xxx.com: Bad file descriptor!
[Wed Jun 29 15:02:19 2011][Info][Kernel::System::Email::Send] Error sending message
[Wed Jun 29 15:02:19 2011][Error][Kernel::System::Ticket::Article::ArticleSend][2042] Impossible to send message to: "xxx" <xxx@xxx.com>.

I can telnet to my Exchange 2003 server from the OTRS server and I've also allowed the OTRS server IP to relay through Exchange.

Any help is appreciated.

Thanks
Stephen.
Last edited by Bucko77 on 30 Jun 2011, 13:22, edited 1 time in total.
OTRS 3.0.9 & ITSM 3.0.4 running on Windows Server 2008 R2 with MySQL database, iPhonehandle 1.0.3, Active Directory LDAP integration.
Wolfgangf
Znuny ninja
Posts: 1029
Joined: 13 Apr 2009, 12:26
Znuny Version: 6.0.13
Real Name: Wolfgang Fürtbauer
Company: PBS Logitek GmbH
Location: Pinsdorf

Re: OTRS won't send email via SMTP.

Post by Wolfgangf »

probably your exchange admin needs to allow routing email from your OTRS server
Produktiv:
OTRS 6.0.13/ ITSM 6.0.13
OS: SUSE Linux (SLES 12, Leap), MySql 5.5.x, 5.6.x
Windows 2012 AD Integration (agents and customers), Nagios integration (incidents, CMDB), Survey, TimeAccounting
Bucko77
Znuny newbie
Posts: 31
Joined: 29 Jun 2011, 16:02
Znuny Version: 3.0.8
Real Name: Stephen Buckton
Company: Kite Packaging

Re: OTRS won't send email via SMTP [SOLVED]

Post by Bucko77 »

Thanks for the comment Wolfgangf.

I managed to resolve this by changing the IP address of my OTRS server. I was having issues running a tracert against the initial IP I used, I was getting the wrong server name back, I troubledshooted the DNS issue but couldn't resolve which effected me adding the IP to the list of allowed Servers on my Exchange SMTP virtual server. A change of IP resolved.

Thanks
Stephen.
OTRS 3.0.9 & ITSM 3.0.4 running on Windows Server 2008 R2 with MySQL database, iPhonehandle 1.0.3, Active Directory LDAP integration.
Locked