Fehler: Can't send message: 354Enter mail, end with "."

Hilfe zu Znuny Problemen aller Art
Locked
student-uni
Znuny newbie
Posts: 15
Joined: 17 Nov 2009, 19:03
Znuny Version: 2.2

Fehler: Can't send message: 354Enter mail, end with "."

Post by student-uni »

Hallo zusammen,

Nach Update auf die Version 2.4.7 gibt es folgendes Problem:

beim "Leeren Antwort" kommt ab und zu solche Fehler raus und wird Zeiteinheit nicht gebucht :
(Beim "Schliessen" passiert so was nie.)
Fehler: Can't send message: 354Enter mail, end with "." on a line by itself
Kommentar:
Fehler berichten:
Traceback: ERROR: OTRS-CGI-10 Perl: 5.10.0 OS: MSWin32 Time: Fri Jun 18 11:19:39 2010
Message: Can't send message: 354Enter mail, end with "." on a line by itself
Start mail input; end with <CRLF>.<CRLF>
! Enable Net::SMTP debug for more info!
Traceback (3548):
Module: Kernel::System::Email::SMTP::Send (v1.25) Line: 149
Module: Kernel::System::Email::Send (v1.64.2.1) Line: 690
Module: Kernel::System::Ticket::Article::ArticleSend (v1.232.2.1) Line: 2027
Module: Kernel::Modules::AgentTicketCompose::Run (v1.81.2.4) Line: 424
Module: Kernel::System::Web::InterfaceAgent::Run (v1.43.2.1) Line: 819
Module: C:/Programme/OTRS/OTRS/bin/cgi-bin/index.pl (v1.88) Line: 48
Sollte man den Antwort bereinigt haben
(
- Body-TExt komplett löschen und nur eigenen neuen Text reinschreiben,
- Email Feld von Aliasen bereinigen und nur E-MAil in form xxx@xxx.xx lassen,
- Zeiteinheit nicht eintragen
), so könnte man den Fehler vermeiden.

Besonders spielt die Rolle Zeiteinheit. Ohne Zeiteiheit passiert Fehler viel seltener.
Auch Anführungszeichen in Email Alias helfen manchmal: "My Name" <mymail@mydomain.de>. Ohne die passiert Fehler öfter.
Allerdings, wie gesagt, kann man nicht behaupten dass der Fehler unbedingt daran liegt.

Wir beutzen MS Exchange Server und in SendMAil steht sein SMTP-Name. (nicht IP)
Ich hab gegoogled und gefunden, dass Email-Server Fehler 354 bedeutet, dass Email Server irgendetwas bekommen hat, was er "nicht erwartet" hat.
Also könnte man definitiv auch auf der EmailServer Seite irgendwas ändern.

Aber es wurde doch OTRS Upgegradet. Also könnte man wohl auch auf OTRS seite irgendwas anpassen.

Hat jemand ne Idee ?

Danke im Voraus.
"Produktiv": OTRS: 2.4.5
OS: Windows 2003 Server
IIS 6 /MySQL 5
Andre Bauer
Znuny guru
Posts: 2189
Joined: 08 Dec 2005, 17:01
Znuny Version: 5.0.x
Real Name: André Bauer
Company: Magix Software GmbH
Location: Dresden
Contact:

Re: Fehler: Can't send message: 354Enter mail, end with "."

Post by Andre Bauer »

Das hab ich seit Kurzem auch.

Zeiteinheiten nutzen wir aber gar nicht.
ERROR: OTRS-PMAccount-10 Perl: 5.10.1 OS: linux Time: Tue Jun 22 15:10:33 2010

Message: Can't send message: 354Enter message, ending with "." on a line by itself
! Enable Net::SMTP debug for more info!

Traceback (1506):
Module: Kernel::System::Email::SMTP::Send (v1.25) Line: 149
Module: Kernel::System::Email::Send (v1.64.2.1) Line: 690
Module: Kernel::System::Ticket::Article::ArticleSend (v1.232.2.1) Line: 2027
Module: Kernel::System::Ticket::Article::SendAutoResponse (v1.232.2.1) Line: 2743
Module: Kernel::System::Ticket::Article::ArticleCreate (v1.232.2.1) Line: 334
Module: Kernel::System::PostMaster::FollowUp::Run (v1.65) Line: 273
Module: Kernel::System::PostMaster::Run (v1.83) Line: 318
Module: Kernel::System::MailAccount::POP3::_Fetch (v1.6.2.1) Line: 165
Module: Kernel::System::MailAccount::POP3::Fetch (v1.6.2.1) Line: 45
Module: Kernel::System::MailAccount::MailAccountFetch (v1.9) Line: 380
Module: main::Fetch (v1.10) Line: 181
Module: /opt/otrs//bin/PostMasterMailbox.pl (v1.10) Line: 94

Use of uninitialized value $ArticleID in concatenation (.) or string at /opt/otrs/Kernel/System/Ticket/Article.pm line 2762.
Prod: Ubuntu Server 16.04 / Zammad 1.2

DO NOT PM ME WITH OTRS RELATED QUESTIONS! ASK IN THE FORUMS!

OtterHub.org
Andre Bauer
Znuny guru
Posts: 2189
Joined: 08 Dec 2005, 17:01
Znuny Version: 5.0.x
Real Name: André Bauer
Company: Magix Software GmbH
Location: Dresden
Contact:

Re: Fehler: Can't send message: 354Enter mail, end with "."

Post by Andre Bauer »

Also wir haben inzwischen auf den Versand per Sendmail umgestellt, um das Problem zu lösen.
Prod: Ubuntu Server 16.04 / Zammad 1.2

DO NOT PM ME WITH OTRS RELATED QUESTIONS! ASK IN THE FORUMS!

OtterHub.org
student-uni
Znuny newbie
Posts: 15
Joined: 17 Nov 2009, 19:03
Znuny Version: 2.2

Re: Fehler: Can't send message: 354Enter mail, end with "."

Post by student-uni »

Re: Fehler: Can't send message: 354Enter mail, end with "."


also ich hab ein Workaround erfunden:

Schauen wir mal den Stack

Traceback (4152):
Module: Kernel::System::Email::SMTP::Send (v1.25) Line: 149
Module: Kernel::System::Email::Send (v1.64.2.1) Line: 690
Module: Kernel::System::Ticket::Article::ArticleSend (v1.232.2.1) Line: 2027
Module: Kernel::Modules::AgentTicketCompose::Run (v1.81.2.4) Line: 424
Module: Kernel::System::Web::InterfaceAgent::Run (v1.43.2.1) Line: 819
Module: C:/Programme/OTRS/OTRS/bin/cgi-bin/index.pl (v1.88) Line: 48
Das ist offensichtlich die Endstelle des Problems

Module: Kernel::System::Email::SMTP::Send (v1.25) Line: 149

gehen wir dahin

Die Zeile

Code: Select all

if ( !$SMTP->data( ${ $Param{Header} }, "\n", ${ $Param{Body} } ) ) 
liefert offensichtlich WAHR aus unbekanntem Grund

ich hab diese Überprüfung einfach auskommentiert.

Code: Select all

    # send data
    #if ( !$SMTP->data( ${ $Param{Header} }, "\n", ${ $Param{Body} } ) ) {
    #    my $Error = $SMTP->code() . $SMTP->message();
    #    $Self->{LogObject}->Log(
    #        Priority => 'error',
    #        Message  => "Can't send message: $Error! Enable Net::SMTP debug for more info!"
    #    );
    #    $SMTP->quit;
    #    return;
    #}
Fertig
Last edited by student-uni on 09 Aug 2010, 13:14, edited 1 time in total.
"Produktiv": OTRS: 2.4.5
OS: Windows 2003 Server
IIS 6 /MySQL 5
student-uni
Znuny newbie
Posts: 15
Joined: 17 Nov 2009, 19:03
Znuny Version: 2.2

Re: Fehler: Can't send message: 354Enter mail, end with "."

Post by student-uni »

man könnte aber auch noch besser machen
indem man nur Fehler 354 ausschließt, sonst wird in Beispiel oben auch keine E-Mail verschickt

Code: Select all

# send data
if ( !$SMTP->data( ${ $Param{Header} }, "\n", ${ $Param{Body} } ) ) {
my $Error = $SMTP->code() . $SMTP->message();
if ($SMTP->code()  != 354)
{
$Self->{LogObject}->Log(
Priority => 'error',
Message => "Can't send message: $Error! Enable Net::SMTP debug for more info!"

);
$SMTP->quit;
return;
}
}


"Produktiv": OTRS: 2.4.5
OS: Windows 2003 Server
IIS 6 /MySQL 5
Locked