Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
  • Sympl Sympl
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 61
    • Issues 61
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • Sympl
  • SymplSympl
  • Issues
  • #315

Closed
Open
Created Aug 13, 2021 by Paul Cammish@kelduumOwner

sympl-mail: sympl-mail-poppassd fails to start in Bullseye IPv6-only

It seems that on an IPv6-only instance running Bullseye falls fowl of a change in Ruby which prevents it from binding to 127.0.0.1, but adding a IPv4 address on loopback means it's okay, and this is fine with prior debian versions.

As a short-term work-around, adjusting https://gitlab.mythic-beasts.com/sympl/sympl/-/blob/bullseye/mail/sbin/sympl-mail-poppassd and changing:

EventMachine.run do
  begin
    EventMachine.start_server "127.0.0.1", port, Symbiosis::Email::PoppassHandler
  rescue StandardError => err
    syslog.info "Caught #{err.to_s} "
    EM.stop
  end
end

to:

EventMachine.run do
  begin
    EventMachine.start_server "127.0.0.1", port, Symbiosis::Email::PoppassHandler
  rescue StandardError => err
    begin
      EventMachine.start_server "::", port, Symbiosis::Email::PoppassHandler
    rescue StandardError => err
      syslog.info "Caught #{err.to_s} "
      EM.stop
    end
  end
end

Will have it fallback and still bind to 127.0.0.1. This also binds to other addresses, but it's firewalled so shouldn't be an issue.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking