Can't send e-mails over SMTP [SOLVED]

Moderator: crythias

Locked
ktkbb
Znuny newbie
Posts: 3
Joined: 15 Jul 2011, 00:57
Znuny Version: 3.0.9

Can't send e-mails over SMTP [SOLVED]

Post by ktkbb »

Well, I've checked around the net for the past two days for a solution to this problem but I still can't get out new OTRS installation to send any e-mails. I'm running OTRS 3.0.9 on a Ubuntu server box and while it can receive mail and create tickets fine, I'm unable to get it to send any mail.

I get this error when I try to send an admin notification using our mail server as the host
Backend ERROR: OTRS-CGI-10 Perl: 5.10.1 OS: linux Time: Thu Jul 14 16:04:06 2011 Message: Can't connect to mail.server.usually.here: Connection timed out! Traceback (2497): Module: Kernel::System::Email::SMTP::Send (v1.29) Line: 117 Module: Kernel::System::Email::Send (v1.72.2.2) Line: 704 Module: Kernel::Modules::AdminEmail::Run (v1.48) Line: 177 Module: Kernel::System::Web::InterfaceAgent::Run (v1.58.2.1) Line: 853 Module: /opt/otrs/bin/cgi-bin/index.pl (v1.89.2.1) Line: 46
I've also tried sending messages from my personal g-mail account, and that does not work either. I get a similar error, except it kills the entire page instead of the web page recovering and displaying the error under details.

Any ideas would be greatly appreciated.
Last edited by ktkbb on 16 Jul 2011, 01:14, edited 1 time in total.
OTRS 3.0.9 Ubuntu 11.04 64 bit
MichaelR
Znuny expert
Posts: 250
Joined: 12 Oct 2010, 01:35
Znuny Version: 3.0.9
Company: LRS Health

Re: Can't send e-mails over SMTP

Post by MichaelR »

From within the OTRS box, telnet into the SMTP server and try sending an email. If you cannot even do that,it is not OTRS' fault. You have incorrectly setup the mail server.
OTRS: 3.0.9 & ITSM 3.0.4 - OS: Windows 7 - DB: MySQL - Heaps of random/useful hacks :)
[Major Code Changes]
ArticleFreeTime1-3
Ability to search ArticleFreeText
ktkbb
Znuny newbie
Posts: 3
Joined: 15 Jul 2011, 00:57
Znuny Version: 3.0.9

Re: Can't send e-mails over SMTP

Post by ktkbb »

Well, I would accept that the mail server was the problem if the issue did not also present itself when using a webmail system such as gmail. In addition, we have many copiers in the office that are able to send messages using smtp and the same mail server.
OTRS 3.0.9 Ubuntu 11.04 64 bit
MichaelR
Znuny expert
Posts: 250
Joined: 12 Oct 2010, 01:35
Znuny Version: 3.0.9
Company: LRS Health

Re: Can't send e-mails over SMTP

Post by MichaelR »

Sorry, so have you actually telnet'd to the mail server and tried to send an email? Because that error looks like you have typed the wrong fqdn of the mail server...
OTRS: 3.0.9 & ITSM 3.0.4 - OS: Windows 7 - DB: MySQL - Heaps of random/useful hacks :)
[Major Code Changes]
ArticleFreeTime1-3
Ability to search ArticleFreeText
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Can't send e-mails over SMTP

Post by crythias »

ktkbb wrote:Well, I would accept that the mail server was the problem if the issue did not also present itself when using a webmail system such as gmail. In addition, we have many copiers in the office that are able to send messages using smtp and the same mail server.
The copiers aren't the box running OTRS.
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
ktkbb
Znuny newbie
Posts: 3
Joined: 15 Jul 2011, 00:57
Znuny Version: 3.0.9

Re: Can't send e-mails over SMTP

Post by ktkbb »

Well, no wonder trying everything online wouldn't work. I was told multiple times over multiple days to use a specific server alias by our system wide IT staff when that is not the correct server alias for sending SMTP e-mail. Sigh.

Thanks for the help.
OTRS 3.0.9 Ubuntu 11.04 64 bit
Locked