Reminder e-mails are sent twice
Added by Veit Jahns 6 months ago
Dear all,
recently, we set up the task for sending reminder e-mails:
https://www.redmine.org/projects/redmine/wiki/RedmineReminderEmails
In our test system it works fine, but on our production systems the reminder e-mails are sent twice. But we can't find a difference that might cause this behaviour (besides the data).
The message ids of the e-mails are different, thus, we think, it is not an issue with the SMTP settings or the e-mail server itself.
We also found issues/posts describing the same issue, but none of the, helped us to solve the issue:
https://www.redmine.org/issues/14251
https://www.redmine.org/boards/2/topics/54790
https://stackoverflow.com/questions/14999340/redmine-sends-mail-twice
So, we are running out of ideas and any advice is much appreciated!
Many thanks in advance,
Veit
System information (sendmail is actually postfix, but this is the same on our test system):
Environment:
Redmine version 6.0.6.stable
Ruby version 3.3.6-p108 (2024-11-05) [x86_64-linux]
Rails version 7.2.2.1
Environment production
Database adapter Mysql2
Mailer queue ActiveJob::QueueAdapters::AsyncAdapter
Mailer delivery sendmail
Replies (1)
RE: Reminder e-mails are sent twice
-
Added by Veit Jahns 2 days ago
Dear all,
we resolved this issue. It seems that it was caused by processing incoming e-mails by Redmine. This was a difference between our test und production systems, which we missed in the first place. Starting the rake task as a cronjob lead to a double initialisation, and thus to sending the e-mail twice. We changed the config file to prevent this.
Best regards
Veit