Problem sending mail in Znuny — error with sender address otrs@yourhost.example.com

Moderator: crythias

Post Reply
MaximZainulin
Znuny newbie
Posts: 2
Joined: 28 Apr 2025, 08:22
Znuny Version: 7.0.6
Real Name: Maxim

Problem sending mail in Znuny — error with sender address otrs@yourhost.example.com

Post by MaximZainulin »

Hello!

I am facing a problem in Znuny (version 7.1, OS: Windows).
An error constantly appears in the logs:

Kernel::System::MailQueue Invalid email address Sender - otrs@yourhost.example.com: invalid otrs@yourhost.example.com (yourhost.example.com has no MX or A record defined)!
Kernel::System::Email Errors occurred during message sending: Error while queueing email to 'root@localhost' from 'otrs@yourhost.example.com'.


Logs:
Message: CommunicationLog(ID:2,AccountType:-,AccountID:-,Direction:Outgoing,Transport:Email,ObjectLogType:Message,ObjectLogID:2)::Kernel::System::Email => Errors occurred during message sending: Error while queueing email to 'root@localhost' from 'otrs@yourhost.example.com'. Subject => 'OTRS Scheduler Daemon SystemConfigurationSyncManager: ConfigurationDeploySync';

Traceback (1468):
Module: Kernel::System::CommunicationLog::_LogError Line: 535
Module: Kernel::System::CommunicationLog::ObjectLog Line: 303
Module: Kernel::System::Email::__ANON__ Line: 181
Module: Kernel::System::Email::Send Line: 657
Module: Kernel::System::Daemon::DaemonModules::BaseTaskWorker::_HandleError Line: 71
Module: Kernel::System::Daemon::DaemonModules::SystemConfigurationSyncManager::Run Line: 135
Module: (eval) Line: 320
Module: main::Start Line: 320
Module: /opt/znuny/bin/znuny.Daemon.pl Line: 138

ERROR: Znuny-znuny.Daemon.pl - Daemon Kernel::System::Daemon::DaemonModules::SystemConfigurationSyncManager-10 Perl: 5.38.2 OS: linux Time: Mon Apr 21 04:13:09 2025

Problem:
The corresponding mail channel is set up in the system Help@example.com .
Applications arrive without errors, an error occurs when responding to an application. As soon as the response is processed, it goes away without errors, but later it gets lost and does not reach the mail.


Questions:
How can I correctly disable sending attempts from the wrong sender address otrs@yourhost.example.com?
Or how can I set the correct sender address for background tasks?


Thank you for your help!
wurzel
Znuny guru
Posts: 3270
Joined: 08 Jul 2010, 22:25
Znuny Version: x.x.x
Real Name: Florian

Re: Problem sending mail in Znuny — error with sender address otrs@yourhost.example.com

Post by wurzel »

Hi,

1. check all sender mail addresses and all system config settings with outgoing
mail addresses. There are some settings.

2. check your local mta/mda settings if needed, as well

Flo
OTRS 2025 SILVER (Prod)
OTRS 2025 auf Debian 12 (Test)
Znuny 7.x latest version testing auf Debian 12

-- Ich beantworte keine Forums-Fragen PN - No PN please

I won't answer to unfriendly users any more. A greeting and regards are just polite.
MaximZainulin
Znuny newbie
Posts: 2
Joined: 28 Apr 2025, 08:22
Znuny Version: 7.0.6
Real Name: Maxim

Re: Problem sending mail in Znuny — error with sender address otrs@yourhost.example.com

Post by MaximZainulin »

As for the first point, everything is fixed and everything is working, I don't see a problem.

As for the second point, where can I find the local mta/mda settings?
wurzel
Znuny guru
Posts: 3270
Joined: 08 Jul 2010, 22:25
Znuny Version: x.x.x
Real Name: Florian

Re: Problem sending mail in Znuny — error with sender address otrs@yourhost.example.com

Post by wurzel »

Hi,

local mailing or mta/mda is dependend on your distribution. Some use postfix, others exim. There are several. You may also use no mail service locally.
Setting up a FQDN (not localhost as hostname) is another step. This is actually no znuny topic. But Znuny will use the mailservices and configuration.

Flo
OTRS 2025 SILVER (Prod)
OTRS 2025 auf Debian 12 (Test)
Znuny 7.x latest version testing auf Debian 12

-- Ich beantworte keine Forums-Fragen PN - No PN please

I won't answer to unfriendly users any more. A greeting and regards are just polite.
Post Reply