Solved: SMTP Connection Refused

Moderator: crythias

Locked
RBehr
Znuny expert
Posts: 167
Joined: 26 Jan 2011, 13:23
Znuny Version: 3.0.7
Real Name: Rod Behr
Company: Impact
Location: London, United Kingdom
Contact:

Solved: SMTP Connection Refused

Post by RBehr »

Sending an e-mail from our OTRS system causes an error saying the target machine actively refused the connection. I have ensured that the SMTP server settings are correct and that connections are allowed for the IP address of our OTRS server. I have even used a different SMTP server with no security settings whatsoever, however this error continues. Other applications using the SMTP server are working fine.

Obviously, IP addresses and port setting have been checked.

What should I be looking for?

Full text of the error encountered is as follows:

Code: Select all

Backend ERROR: OTRS-CGI-10 Perl: 5.12.2 OS: MSWin32 Time: Tue Apr 19 12:39:20 2011

Message: Can't connect to 172.20.1.88: No connection could be made because the target machine actively refused it.!

Traceback (164): 
   Module: Kernel::System::Email::SMTP::Send (v1.29) Line: 117
   Module: Kernel::System::Email::Send (v1.70) Line: 682
   Module: Kernel::Modules::AdminEmail::Run (v1.48) Line: 177
   Module: Kernel::System::Web::InterfaceAgent::Run (v1.58) Line: 838
   Module: ModPerl::ROOT::ModPerl::Registry::C_3a_Program_20Files_OTRS_OTRS_bin_cgi_2dbin_index_2epl::handler (unknown version) Line: 48
   Module: (eval) (v1.89) Line: 204
   Module: ModPerl::RegistryCooker::run (v1.89) Line: 204
   Module: ModPerl::RegistryCooker::default_handler (v1.89) Line: 170
   Module: ModPerl::Registry::handler (v1.99) Line: 31
Last edited by RBehr on 19 Apr 2011, 16:05, edited 1 time in total.
Rod Behr
Software Design Manager and Database Analyst | Impact Audiovisual | London
Installation: OTRS 3.0.7, Apache 2, Strawberry Perl 5 on Ubuntu 10.04.3 Server with separate MySQL Server, also on Ubuntu 10.04.3
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: SMTP Connection Refused

Post by crythias »

being refused is being refused. either 172.20.1.88 port 25 is inaccessible or the smtp server is blocking you for being an unauthorized relay or something.

If you can attempt to telnet (or putty with telnet) to 172.20.1.88 port 25 from the otrs box, you can see what happens in real time. If it kicks you out, it's likely because:
a) wrong IP address or port
b) source or destination IP has been blocked by a firewall.
c) smtp server is otherwise refusing connections from OTRS (SSL/invalid number of connection attempts/timeout/down)
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
RBehr
Znuny expert
Posts: 167
Joined: 26 Jan 2011, 13:23
Znuny Version: 3.0.7
Real Name: Rod Behr
Company: Impact
Location: London, United Kingdom
Contact:

Re: SMTP Connection Refused

Post by RBehr »

Thank you Crythias.

The odd thing is that I can send via SMTP from Outlook Exchange on our OTRS server, so the connection across our network is working. The same IP and Port settings which work in Outlook Express do not work in OTRS.

Are there any settings other than Core::Sendmail that I should be looking at?
Rod Behr
Software Design Manager and Database Analyst | Impact Audiovisual | London
Installation: OTRS 3.0.7, Apache 2, Strawberry Perl 5 on Ubuntu 10.04.3 Server with separate MySQL Server, also on Ubuntu 10.04.3
RBehr
Znuny expert
Posts: 167
Joined: 26 Jan 2011, 13:23
Znuny Version: 3.0.7
Real Name: Rod Behr
Company: Impact
Location: London, United Kingdom
Contact:

Re: SMTP Connection Refused

Post by RBehr »

Found it - and it had nothing to do with OTRS.

Antivirus software had been installed on our server over the weekend which chose to treat OTRS SMTP mailing attempts as a spam worm. We have disabled this setting.

Thank you for your help and sorry to have wasted your time.
Rod Behr
Software Design Manager and Database Analyst | Impact Audiovisual | London
Installation: OTRS 3.0.7, Apache 2, Strawberry Perl 5 on Ubuntu 10.04.3 Server with separate MySQL Server, also on Ubuntu 10.04.3
Locked