Bad File Descriptor when sending mail

Moderator: crythias

Locked
SteveClarkson
Znuny newbie
Posts: 6
Joined: 10 Sep 2012, 16:23
Znuny Version: 3.1.9
Real Name: Steve Clarkson
Company: A J Bell Securities

Bad File Descriptor when sending mail

Post by SteveClarkson »

Hello,

Apologies if this has been answered lots, or if it is just my idiocy that is causing the problem - any assistance you can render would be most appreciated! I have been playing with this for hours, and just can't get anywhere!

I am running OTRS 3.1.9 for Windows, and am trying to make it connect to my Exchange 2007 server to use it's SMTP functionality, so that I can send mail from OTRS.

I have a Recieve Connector set up on Exchange, receiving mail from any IP address, allowing "Basic Authentication", for any Permission Group.
OTRS is configured to use SMTP, port 25, my exchange servers internal IP address and my username and password for the time being.

I have downloaded a little tool called TestSMTP.exe that has checked the SMTP server, and merrily connects to it etc.

However, when I try and send an admin message through OTRS, it thinks about it for a while, then gives me this error:

Code: Select all

Backend ERROR: OTRS-CGI-10 Perl: 5.12.3 OS: MSWin32 Time: Mon Sep 10 15:15:28 2012 Message: Can't connect to 192.168.0.69: Bad file descriptor! Traceback (7676): Module: Kernel::System::Email::SMTP::Send (v1.29) Line: 117 Module: Kernel::System::Email::Send (v1.75.2.5) Line: 711 Module: Kernel::Modules::AdminEmail::Run (v1.50) Line: 180 Module: Kernel::System::Web::InterfaceAgent::Run (v1.64) Line: 868 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.90) Line: 204 Module: ModPerl::RegistryCooker::run (v1.90) Line: 204 Module: ModPerl::RegistryCooker::default_handler (v1.90) Line: 170 Module: ModPerl::Registry::handler (v1.99) Line: 31 
Does anyone have any brilliant ideas? I'm stumped!

Thanks lots!

Steve
OTRS 3.1.9 on Windows with MySQL database
Using LDAP to Active Directory for Agent and Customer authentication & customer information
Using IMAP4 to receive messages and SMTP through Exchange 2007 to send messages
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Bad File Descriptor when sending mail

Post by crythias »

First, see if a generic search might help. If not, let us know.
(hint: probably you say send from sendmail and you're using windows and need smtp to send).
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
SteveClarkson
Znuny newbie
Posts: 6
Joined: 10 Sep 2012, 16:23
Znuny Version: 3.1.9
Real Name: Steve Clarkson
Company: A J Bell Securities

Re: Bad File Descriptor when sending mail

Post by SteveClarkson »

Thanks crythias,

I've already had a root around the web - but didn't think of not referring to OTRS in my search. I've just tried the search you suggest, and all I could really find of any use was the suggestion that I use the FQDN, instead of the IP of the mail server.
I've changed to the FQDN, but to no avail, I still get exactly the same message.

The following is the line from the OTRS log file, which I'm not sure helps... but thought I would include it anyway!

Code: Select all

[Mon Sep 10 15:57:13 2012][Error][Kernel::System::Email::SMTP::Send][117] Can't connect to xxxxxx.xxxxxxxxxxxxx.com: Bad file descriptor!
[Mon Sep 10 15:57:13 2012][Info][Kernel::System::Email::Send] Error sending message
OTRS 3.1.9 on Windows with MySQL database
Using LDAP to Active Directory for Agent and Customer authentication & customer information
Using IMAP4 to receive messages and SMTP through Exchange 2007 to send messages
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Bad File Descriptor when sending mail

Post by crythias »

it's not the location, it's the method.
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
SteveClarkson
Znuny newbie
Posts: 6
Joined: 10 Sep 2012, 16:23
Znuny Version: 3.1.9
Real Name: Steve Clarkson
Company: A J Bell Securities

Re: Bad File Descriptor when sending mail

Post by SteveClarkson »

I'm sorry - you've lost me?

It's not the location, it's the method???
OTRS 3.1.9 on Windows with MySQL database
Using LDAP to Active Directory for Agent and Customer authentication & customer information
Using IMAP4 to receive messages and SMTP through Exchange 2007 to send messages
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Bad File Descriptor when sending mail

Post by crythias »

Did you miss the hint about sendmail vs smtp? How is your send configured? Don't tell me where you're connecting to. Tell me how you're connecting. Screenshot if you can.
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
SteveClarkson
Znuny newbie
Posts: 6
Joined: 10 Sep 2012, 16:23
Znuny Version: 3.1.9
Real Name: Steve Clarkson
Company: A J Bell Securities

Re: Bad File Descriptor when sending mail

Post by SteveClarkson »

No - didn't miss the hint, but did confuse me slightly. I put in my original post that I was using SMTP to connect... please see the attached screenshot...
You do not have the required permissions to view the files attached to this post.
OTRS 3.1.9 on Windows with MySQL database
Using LDAP to Active Directory for Agent and Customer authentication & customer information
Using IMAP4 to receive messages and SMTP through Exchange 2007 to send messages
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Bad File Descriptor when sending mail

Post by crythias »

OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
SteveClarkson
Znuny newbie
Posts: 6
Joined: 10 Sep 2012, 16:23
Znuny Version: 3.1.9
Real Name: Steve Clarkson
Company: A J Bell Securities

Re: Bad File Descriptor when sending mail

Post by SteveClarkson »

All these errors seem to refer to file structures and commands in Linux - I am running on Windows - I barely know one end of Linux from the other!!!

I just been checking the SMTP logs on the Exchange server, and it doesn't appear to show anything, so it doesn't look like an Exchange problem to me... I am guessing something to do with one of the components that ships with OTRS for Windows, for example StrawberryPerl or similar.
OTRS 3.1.9 on Windows with MySQL database
Using LDAP to Active Directory for Agent and Customer authentication & customer information
Using IMAP4 to receive messages and SMTP through Exchange 2007 to send messages
SteveClarkson
Znuny newbie
Posts: 6
Joined: 10 Sep 2012, 16:23
Znuny Version: 3.1.9
Real Name: Steve Clarkson
Company: A J Bell Securities

Re: Bad File Descriptor when sending mail

Post by SteveClarkson »

Equally - if there is any other route to getting e-mails to send out, I am open to suggestions!

I don't really care HOW OTRS sends e-mails, I just need it to send them! I don't think I can write off many more days work on this project without someone higher-up getting annoyed, and canning the project altogether, and I don't want that to happen!

If there is an easier option than Exchange, I'm open to anything at present!
OTRS 3.1.9 on Windows with MySQL database
Using LDAP to Active Directory for Agent and Customer authentication & customer information
Using IMAP4 to receive messages and SMTP through Exchange 2007 to send messages
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Bad File Descriptor when sending mail

Post by crythias »

Theoretically, you could install the Windows SMTP service, but also checkdisk on your system.


I don't know what the problem is on *your* system. This install generally just works.
A brief additional search appears to indicate that you're trying to use smtp port 25 on a server that may require ssl/tls (SMTPS may be a better choice).

If you install SMTP service locally, you don't need authentication to send, just send to 127.0.0.1
OTRS 6.0.x (private/testing/public) on Linux with MySQL database.
Please edit your signature to include your OTRS version, Operating System, and database type.
Click Subscribe Topic below to get notifications. Consider amending your topic title to include [SOLVED] if it is so.
Need help? Before you ask
Locked