set seconds interval and number of retry when sending mail

Moderator: crythias

Locked
rodolfor
Znuny advanced
Posts: 103
Joined: 11 Jun 2020, 14:56
Znuny Version: 6.5.8
Real Name: Rodolfo Rughi
Company: none

set seconds interval and number of retry when sending mail

Post by rodolfor »

My sendmail module is "kernel::system::email::smtp"
The system try to send email each minute.
After 2 minutes it try to resend.
If it fails it stops.

How can I sets the parameters for seconds interval and retry number?
In sysconfig I have ,in key MailQueue, IncrementAttemptDelayInMinutes = 2 and ItemMaxAttempts = 3.
(seems like do not consider the value of ItemMaxAttempts
or it consider the message "Resending pause still active for message" as a try)

Code: Select all

Kernel::System::Email::SMTP	Received message for sending, validating message contents.	23/01/2025 08:57:08
Kernel::System::Email	Error sending message using backend 'Kernel::System::Email::SMTP'.	23/01/2025 08:57:09
Kernel::System::MailQueue	Message could not be sent! Error message: Can't connect to test.aloha.net: !	23/01/2025 08:57:09
Kernel::System::MailQueue	Temporary problem returned from server, requeuing message for sending. Message: SMTPCode: -, ErrorMessage: Can't connect to test.aloha.net: !	23/01/2025 08:57:09
Kernel::System::MailQueue	Resending pause still active for message with id "143140", please wait until "2025-01-23 08:59:09"!	23/01/2025 08:58:07
Kernel::System::MailQueue	Resending pause still active for message with id "143140", please wait until "2025-01-23 08:59:09"!	23/01/2025 08:59:07
Kernel::System::MailQueue	Message could not be sent! Error message:	23/01/2025 09:00:08
Kernel::System::MailQueue	Permanent sending problem or we reached the sending attempt limit. Message will be removed	23/01/2025 09:00:08
Locked