Project

General

Profile

Actions

communication #136058

open

Discourse missing "receive-mail"

Added by crameleon 3 months ago. Updated about 2 months ago.

Status:
Workable
Priority:
Normal
Assignee:
Category:
Forum
Target version:
-
Start date:
2023-09-19
Due date:
% Done:

0%

Estimated time:

Description

Some emails are getting stuck in the mail queue on discourse01.i.o.o with the following error:

temporary failure. Command output: pipe: fatal: pipe_command: execvp /usr/bin/receive-mail: No such file or directory) noreply@forums.opensuse.org

I couldn't find what "receive-mail" is supposed to be.

Actions #1

Updated by crameleon 3 months ago

  • Private changed from Yes to No
Actions #2

Updated by hellcp 3 months ago

Actions #3

Updated by crameleon 3 months ago

  • Status changed from New to In Progress
  • Assignee changed from hellcp to crameleon

Thanks!

Actions #4

Updated by crameleon 3 months ago

  • Assignee changed from crameleon to hellcp

The Salt states had various problems, I repaired some of them (wrong repository names and quoting), but eventually just installed the mentioned package manually to resolve the original problem.

Postfix processes the emails now, but the handler fails:

Sep 19 14:58:09 discourse01 receive-mail[5379]: Unexpected error while invoking mail processor: undefined method `exists?' for File:Class (NoMethodError)
Sep 19 14:58:09 discourse01 receive-mail[5379]:   /usr/lib64/ruby/gems/3.2.0/gems/discourse_mail_receiver-4.0.7/lib/mail_receiver/mail_receiver_base.rb:8:in `initialize'
                                                  /usr/lib64/ruby/gems/3.2.0/gems/discourse_mail_receiver-4.0.7/lib/mail_receiver/discourse_mail_receiver.rb:11:in `initialize'
                                                  /usr/bin/receive-mail:12:in `new'
                                                  /usr/bin/receive-mail:12:in `<main>'
Actions #5

Updated by hellcp 3 months ago

That's a change in ruby 3.2, exists? alias for exist? has been removed. It should be fairly straight forward to patch that, though I guess would also be nice to test if there weren't other changes we are missing that would prevent this from working

Actions #6

Updated by crameleon about 2 months ago

  • Status changed from In Progress to Workable
Actions

Also available in: Atom PDF