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. Support
  3. Outbound email sending from primary IP rather than Static failover IP set in Network settings

Outbound email sending from primary IP rather than Static failover IP set in Network settings

Scheduled Pinned Locked Moved Solved Support
2 Posts 1 Posters 385 Views 1 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.
    • d19dotcaD Offline
      d19dotcaD Offline
      d19dotca
      wrote on last edited by
      #1

      Hello,

      In an effort to resolve a few issues (seems like I was outgrowing the memory usage I had and the next step up was far too expensive), I ended up migrating Cloudron to a new server. The server is configured with the primary IP assigned by the provider, plus it has a failover IP I assigned to it. Cloudron is configured to use the failover IP per the Network settings, but yet it seems some (or all) emails are being sent out on the primary IP instead of the failover IP set in Network settings. Is this always the case? I think I had it working with just the failover IP before in months past.

      Here is an error I see for some people sending to Gmail addresses in particular (but funny enough no other receiving mail servers yet):

      "message": "550 5.7.1 [<primaryIP>] The IP you're using to send mail is not authorized to send email directly to our servers. Please use the SMTP relay at your service provider instead. Learn more at  https://support.google.com/mail/?p=NotAuthorizedError n1si17186552jat.109 - gsmtp",
      

      The primary IP looks like: 51.79.xx.xx

      The failover IP looks like: 51.222.xxx.xx

      The Network settings is set to use the 51.222.xxx.xx failover IP address. So why is email going out on the primary IP instead?

      I believe I've worked around this temporarily by editing the SPF record to include my IP address, but it's a pain when I have to add that for many different domains. I'd like to ultimately resolve this so email is sent on the failover IP assigned in Cloudron.

      --
      Dustin Dauncey
      www.d19.ca

      1 Reply Last reply
      0
      • d19dotcaD Offline
        d19dotcaD Offline
        d19dotca
        wrote on last edited by
        #2

        Sorry, this can be closed I guess. Turns out it was because of how I edited /etc/netplan/50-cloud-init.yaml on my server where I accidentally added both IPs when it should have only contained the failover IP. Now it's working again. 🙂 Was my own mistake.

        --
        Dustin Dauncey
        www.d19.ca

        1 Reply Last reply
        1
        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