[Resolved]Sending mail with SMTP

Moderator: crythias

Locked
mavrie
Znuny newbie
Posts: 43
Joined: 02 Sep 2014, 15:04
Znuny Version: 4.0.7
Real Name: Mattias
Company: BusSaP
Location: Belgium

[Resolved]Sending mail with SMTP

Post by mavrie »

Hello everyone

I recently modified the sysconfig settings for sendmail of our otrs system (OTRS v3.3.4 on CentOS virtual machine).

Changing this to sendmail failed and I can't seem to get sendmail working.
Changing it back to SMTP and filling in the settings doesn't work either. I get an error message in systemlog saying: "No route to host" and that is why i'm failing to send out mail.

The error message I get is the following

Code: Select all

Backend ERROR: OTRS-CGI-10 Perl: 5.10.1 OS: linux Time: Wed Sep 10 15:19:24 2014 Message: Impossible to send message to: anoniem@hotmail.com . RemoteAddress: 192.168.1.252 RequestURI: /otrs/index.pl Traceback (1398): Module: Kernel::System::Ticket::Article::ArticleSend (OTRS 3.3.4) Line: 2078 Module: Kernel::Modules::AgentTicketCompose::Run (OTRS 3.3.4) Line: 784 Module: Kernel::System::Web::InterfaceAgent::Run (OTRS 3.3.4) Line: 863 Module: ModPerl::ROOT::ModPerl::Registry::opt_otrs_bin_cgi_2dbin_index_2epl::handler (unknown version) Line: 41 Module: (eval) (v1.99) Line: 204 Module: ModPerl::RegistryCooker::run (v1.99) Line: 204 Module: ModPerl::RegistryCooker::default_handler (v1.99) Line: 170 Module: ModPerl::Registry::handler (v1.99) Line: 31
Can anyone supply some tips to debug and find a fix for this?

Thanks in advance
Matt
Last edited by mavrie on 10 Sep 2014, 15:37, edited 1 time in total.
Otrs 4.0.7 on CentOS 6.5
MySQL Database
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Sending mail with SMTP

Post by crythias »

no route to host means network issues are preventing you from contacting the smtp server.

To troubleshoot, try to go to the command line and

Code: Select all

telnet smtpserver 25
EHLO test.com
mail from:otrssender@yourdomain.com
rcpt to:somebody@somewhere.com
data
Subject: Test Message
This is a sample to check if it will send email.
.
Chances are, you'll be stopped before you get *here*. That's network/path/route/firewall.
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
mavrie
Znuny newbie
Posts: 43
Joined: 02 Sep 2014, 15:04
Znuny Version: 4.0.7
Real Name: Mattias
Company: BusSaP
Location: Belgium

Re: Sending mail with SMTP

Post by mavrie »

Crythias, once again you saved the day.

Your advice prompted me to check the smtp server, and I will spare you the rookie mistake I had made.

All is well in the world. My internship is 5 more weeks, so you will be hearing from me again ! :D

Matt
Otrs 4.0.7 on CentOS 6.5
MySQL Database
Locked