Error when sending e-mails through OTRS

Moderator: crythias

Locked
PatrickI
Znuny newbie
Posts: 3
Joined: 18 Oct 2013, 11:51
Znuny Version: 3.1.7

Error when sending e-mails through OTRS

Post by PatrickI »

Hello everyone,

we currently are having the following issues with OTRS: Until now we used an account from "1und1" to send e-mails from OTRS per SMTP. This account is being closed so we are required to switch to our own exchange server. After changing the settings in OTRS we are receiving the following error when sending a mail through OTRS / opening a new e-mail ticket:

Code: Select all

Internal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, webmaster@somenet.com and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.
Settings:

Code: Select all

SendmailModule SMTP
SendmailModule::CMD /usr/sbin/sendmail -i -f
SendmailModule::Host OurExchangeServer.OurDomain.local
SendmailModule::Port 25
SendmailModule::AuthUser ArbitratyUserWithMailAccount
SendmailModule::AuthPassword UserPassword
In this forum I found someone with a similar problem. He was able to solve his problem by not using the authentification. I unchecked the settings "SendmailModule::AuthUser" and "SendmailModule::AuthPassword" and tried again. This time it was possible to send e-mails to internal mail addresses (within the company) but not to external addresses. When sending mail to external addresses the following error occurs:

Code: Select all

"Fehlermeldung: Impossible to send message to: ExterneAdresse@Domain.de ."
Details:

Code: Select all

"Backend ERROR: OTRS-CGI-10 Perl: 5.12.3 OS: MSWin32 Time: Wed Apr 2 10:28:41 2014 Message: Impossible to send message to: p.iserhardt@gmx.de . RemoteAddress: 172.16.100.51 RequestURI: /otrs/index.pl Traceback (4792): Module: Kernel::System::Ticket::Article::ArticleSend (OTRS 3.2.12) Line: 2071 Module: Kernel::Modules::AgentTicketCompose::Run (OTRS 3.2.12) Line: 765 Module: Kernel::System::Web::InterfaceAgent::Run (OTRS 3.2.12) Line: 863 Module: C:/Program Files (x86)/OTRS/OTRS/bin/cgi-bin/index.pl (unknown version) Line: 41"
In the OTRS log:

Code: Select all

[Wed Apr  2 10:28:41 2014][Error][Kernel::System::Email::SMTP::Send][140] Can't send to 'ExternalAddress@Domain.de': 5505.7.1 Unable to relay
! Enable Net::SMTP debug for more info!
[Wed Apr  2 10:28:41 2014][Info][Kernel::System::Email::Send] Error sending message
[Wed Apr  2 10:28:41 2014][Error][Kernel::System::Ticket::Article::ArticleSend][2071] Impossible to send message to: ExternalAddress@Domain.de .
I know that the error message "unable to relay" comes from our exchange server, but I don't understand why it wouldn't work. Internal mails work flawless and sending mail to external addresses also works flawless with our normal e-mail accounts, so I don't think it's a misconfiguration on the exchange server.

Why can't I send mails to external e-mail addresses from OTRS? Why doesn't it work at all when I am using authentification? Any idea?

We are using:
OTRS 3.2.12
Exchange 2010

Thanks for any advice.
crythias
Moderator
Posts: 10170
Joined: 04 May 2010, 18:38
Znuny Version: 5.0.x
Location: SouthWest Florida, USA
Contact:

Re: Error when sending e-mails through OTRS

Post by crythias »

The (multiple) send from email address(es) are unable to relay. There's a powershell command to allow relay from any for this authenticated account.
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