IMAPS is ok but SMTPTLS didn't work.
/opt/otrs/Kernel/Config/Files/ZZZAAuto.pm:
Code: Select all
$Self->{'SendmailModule'} = 'Kernel::System::Email::SMTPTLS';
$Self->{'SendmailModule::AuthPassword'} = 'password';
$Self->{'SendmailModule::AuthUser'} = 'Support@mymail';
$Self->{'SendmailModule::CMD'} = '/usr/sbin/sendmail -i -f';
$Self->{'SendmailModule::Host'} = 'smtp.office365.com';
$Self->{'SendmailModule::Port'} = '587';


/var/log/syslog
Code: Select all
Jun 24 18:09:35 mm-my-otrs OTRS-otrs.Console.pl-Maint::Email::MailQueue-10[21999]: [Error][Kernel::System::CommunicationLog::_LogError][Line:538]: CommunicationLog(ID:57354,AccountType:-,AccountID:-,Direction:Outgoing,Transport:Email,ObjectLogType:Message,ObjectLogID:81855)::Kernel::System::Email::SMTP => Could not send message to server: 354, Start mail input; end with <CRLF>.<CRLF>#012!
Jun 24 18:09:36 mm-my-otrs OTRS-otrs.Console.pl-Maint::Email::MailQueue-10[21999]: [Error][Kernel::System::CommunicationLog::_LogError][Line:538]: CommunicationLog(ID:57354,AccountType:-,AccountID:-,Direction:Outgoing,Transport:Email,ObjectLogType:Message,ObjectLogID:81855)::Kernel::System::Email => Error sending message using backend 'Kernel::System::Email::SMTPTLS'.
Jun 24 18:09:36 mm-my-otrs OTRS-otrs.Console.pl-Maint::Email::MailQueue-10[21999]: [Error][Kernel::System::CommunicationLog::_LogError][Line:538]: CommunicationLog(ID:57354,AccountType:-,AccountID:-,Direction:Outgoing,Transport:Email,ObjectLogType:Message,ObjectLogID:81855)::Kernel::System::MailQueue => Message could not be sent! Error message: Could not send message to server: 354, Start mail input; end with <CRLF>.<CRLF>#012!
I don't know where to look for the reason here.