Skip to content
GitLab
    • GitLab: the DevOps platform
    • Explore GitLab
    • Install GitLab
    • How GitLab compares
    • Get started
    • GitLab docs
    • GitLab Learn
  • Pricing
  • Talk to an expert
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Switch to GitLab Next
    Projects Groups Topics Snippets
  • Register
  • Sign in
  • Sympl Sympl
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 66
    • Issues 66
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • sympl.iosympl.io
  • SymplSympl
  • Issues
  • #315
Closed
Open
Issue 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.

Assignee
Assign to
Time tracking