# receiving email / inbound smtp

**URL:** <https://community.fly.io/t/receiving-email-inbound-smtp/1033>\
**Category:** General\
**Created:** [April 2, 2021, 2:45pm UTC](https://community.fly.io/t/receiving-email-inbound-smtp/1033 "2021-04-02T14:45:40Z")\
**Posts on this page:** 1\
**Showing post:** 24

<div class="post-metadata">

**Author:** ![simon-weber](https://sea1.discourse-cdn.com/fly1/user_avatar/community.fly.io/simon-weber/32/659_2.png) [@simon-weber](https://community.fly.io/u/simon-weber)\
**Post date:** [January 15, 2022, 12:35am UTC](https://community.fly.io/t/receiving-email-inbound-smtp/1033/24 "2022-01-15T00:35:45Z")

</div>

To close the loop here: I finally got back to this project and everything is working beautifully! The secrets limit has been raised, and now that [all ports are allowed](https://community.fly.io/t/new-feature-every-public-ports-are-now-allowed-for-tcp-services-this-means-http-too/3624) I can run on 25, 465, and 587.

In case it’s helpful for others working on smtp, here’s the relevant bits of my fly.toml:

```auto
[[services]]
  internal_port = 25
  protocol = "tcp"

  [[services.ports]]
    port = 25

  [[services.ports]]
    handlers = ["tls"]
    port = 465

  [[services.ports]]
    port = 587

```

Thanks for all the improvements along the way! I’m really excited to cut traffic over from my old server.

---

_[View the full topic](https://community.fly.io/t/receiving-email-inbound-smtp/1033)._
