Mail Receiver setup

Have a problem with mail receiver won’t rebuild, log:

:/var/discourse# /var/discourse/launcher rebuild mail-receiver
x86_64 arch detected.
Ensuring launcher is up to date
Launcher is up-to-date
Stopping old container
+ /usr/bin/docker stop -t 600 mail-receiver
mail-receiver
2.0.20240502-0021: Pulling from discourse/base
Digest: sha256:ca10543693caa0b52f7318105dea1d47a84991e7927330db1010e13e39777ba7
Status: Image is up to date for discourse/base:2.0.20240502-0021
docker.io/discourse/base:2.0.20240502-0021
/usr/local/lib/ruby/gems/3.2.0/gems/pups-1.2.1/lib/pups.rb
/usr/local/bin/pups --stdin
I, [2024-05-10T20:33:37.287835 #1]  INFO -- : Reading from stdin
/usr/local/lib/ruby/gems/3.2.0/gems/pups-1.2.1/lib/pups/merge_command.rb:50:in `merge': no implicit conversion of String into Hash (TypeError)

      first.merge(second, &merger)
                  ^^^^^^^^^^^^^^^
        from /usr/local/lib/ruby/gems/3.2.0/gems/pups-1.2.1/lib/pups/merge_command.rb:50:in `deep_merge'
        from /usr/local/lib/ruby/gems/3.2.0/gems/pups-1.2.1/lib/pups/cli.rb:61:in `block in run'
        from /usr/local/lib/ruby/gems/3.2.0/gems/pups-1.2.1/lib/pups/cli.rb:57:in `each'
        from /usr/local/lib/ruby/gems/3.2.0/gems/pups-1.2.1/lib/pups/cli.rb:57:in `run'
        from /usr/local/lib/ruby/gems/3.2.0/gems/pups-1.2.1/bin/pups:9:in `<top (required)>'
        from /usr/local/bin/pups:25:in `load'
        from /usr/local/bin/pups:25:in `<main>'
bootstrap failed with exit code 1
** FAILED TO BOOTSTRAP **

Don’t know what would cause this failure?

May be this: no implicit conversion of String into Hash (TypeError)

Rebuild has worked now but haven’t gotten mail receiving to work yet.

YAML is good set with domain even with rebuilding mail receiver still states base url as “discourse.example.com” instead of specified domain, that seems like there is a problem with that.

Hopefully will be able to figure out how to make this work, if anyone has any ideas about what problem may be would appreciate ideas about how to make this go.

There is an error: ERROR: Can't find Ruby library file or shared library pups

Have gone through steps of guide: Configure direct-delivery incoming email for self-hosted sites with Mail-Receiver - documentation / sysadmin - Discourse Meta

Edit: after another rebuild correct record has updated and mail receiving works!!!

2 Likes

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.