Cloudron makes it easy to run web apps like WordPress, Nextcloud, GitLab on your server. Find out more or install now.


Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Bookmarks
  • Search
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo

Cloudron Forum

Apps | Demo | Docs | Install
  1. Cloudron Forum
  2. Feature Requests
  3. Haraka config for controlling outbound SMTP interface

Haraka config for controlling outbound SMTP interface

Scheduled Pinned Locked Moved Feature Requests
4 Posts 3 Posters 69 Views 3 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • robiR Offline
    robiR Offline
    robi
    wrote last edited by
    #1

    Since https://forum.cloudron.io/topic/10871/smtp-using-wrong-ip-address-on-interface-with-multiple-addresses/ was never solved, and we currently resort to disabling IPv6 on the server or worse, moving entire Cloudrons to non IPv6 hosts just to fix email deliverability issues with Microsh0ft and Gmail domains, I went looking how to keep IPv6 enabled and have outbound SMTP work over IPv4.

    Starting with asking a lot of questions around how to specify the outbound SMTP interface, which led nowhere.

    Then I thought to ask why is a IPv6 SMTP server at Google/MS responding and rejecting mail. It must be getting contacted first somehow. Cloudron doing something we don't want or expect.

    Then looking at Haraka and how it handles outbound SMTP, I found this:

    - `ipv6_enabled`
    
    When this has a "true" value inside (usually a `1`), it defaults to an 'AAAA' lookup first for each MX record, and uses those hosts to send email via.
    

    This explains why it's intermittent delivery issues, since the MX lookup varies at different email providers and only fails at IPv6 nodes.

    All this happens in the outbound.ini file.

    @girish can we have a default to disable this or a toggle in the Mail UI?

    This would solve all the current problems since it defaults to attempt sending to IPv6 servers FIRST which is where all the delivery problems stem from.

    And we can keep IPv6 enabled on the server even with no RDNS configured.

    Conscious tech

    1 Reply Last reply
    3
    • girishG Offline
      girishG Offline
      girish
      Staff
      wrote last edited by
      #2

      This for the report. I will have to take a look for a future release .

      1 Reply Last reply
      1
      • girishG girish moved this topic from Support
      • girishG girish marked this topic as a regular topic
      • d19dotcaD Offline
        d19dotcaD Offline
        d19dotca
        wrote last edited by d19dotca
        #3

        I wonder if this would be helpful for this other issue too which I reported back in March but no real progress beyond my workaround yet: https://forum.cloudron.io/topic/13458/use-floating-ip-address-only-for-outbound-cloudron-docker-container-communication?_=1750223095929

        Ideally, I want to pick the specific interface / IP address being used for outbound communication. It was mostly because I wanted to prevent the IPv6 address from being used, and apparently disabling IPv6 in Cloudron doesn't achieve that result as I guess it's just for inbound traffic / DNS records, not for outbound traffic. It was the result of needing to avoid blocking in Gmail for traffic when the outbound SMTP IP used isn't the same one in the DNS record / or the one that's set in the Cloudron IPv4 address settings.

        --
        Dustin Dauncey
        www.d19.ca

        robiR 1 Reply Last reply
        2
        • d19dotcaD d19dotca

          I wonder if this would be helpful for this other issue too which I reported back in March but no real progress beyond my workaround yet: https://forum.cloudron.io/topic/13458/use-floating-ip-address-only-for-outbound-cloudron-docker-container-communication?_=1750223095929

          Ideally, I want to pick the specific interface / IP address being used for outbound communication. It was mostly because I wanted to prevent the IPv6 address from being used, and apparently disabling IPv6 in Cloudron doesn't achieve that result as I guess it's just for inbound traffic / DNS records, not for outbound traffic. It was the result of needing to avoid blocking in Gmail for traffic when the outbound SMTP IP used isn't the same one in the DNS record / or the one that's set in the Cloudron IPv4 address settings.

          robiR Offline
          robiR Offline
          robi
          wrote last edited by
          #4

          @d19dotca AFAIK this is the same issue, except it's not solved by choosing the interface, but by changing the unexpected default behavior for using IPv6 in the Haraka config.

          You should be able to test it by making the single config change in the mail container and restarting Haraka.

          Conscious tech

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Bookmarks
          • Search