diff --git a/CHANGELOG.md b/CHANGELOG.md
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -20,6 +20,11 @@
   - Indicate if changes are major, minor, or patch changes.
 ```
 
+- [#119](https://github.com/haskell-github-trust/smtp-mail/pull/119) @ysangkok
+  - Use `getHostName` from `network` instead of `network-bsd`, fixing the build with `network >= 3.2.10`
+  - Drop the `network-bsd` dependency and require `network >= 3.2.10`
+  - Patch change
+
 ## 0.5.0.1
 
 - [#63](https://github.com/haskell-github-trust/smtp-mail/pull/63) Switch to `ram` because the `memory` package is no longer maintained.
diff --git a/Network/Mail/SMTP.hs b/Network/Mail/SMTP.hs
--- a/Network/Mail/SMTP.hs
+++ b/Network/Mail/SMTP.hs
@@ -66,7 +66,6 @@
 import Data.Char (isDigit)
 
 import Network.Socket
-import Network.BSD (getHostName)
 import Network.Mail.Mime hiding (filePart, htmlPart, simpleMail)
 import qualified Network.Connection as Conn
 
diff --git a/smtp-mail.cabal b/smtp-mail.cabal
--- a/smtp-mail.cabal
+++ b/smtp-mail.cabal
@@ -1,5 +1,5 @@
 name:                smtp-mail
-version:             0.5.0.1
+version:             0.5.0.2
 synopsis:            Simple email sending via SMTP
 description:         This packages provides a simple interface for mail over SMTP. Please see the README for more information.
 homepage:            http://github.com/haskell-github-trust/smtp-mail
@@ -11,7 +11,7 @@
 category:            Network
 build-type:          Simple
 cabal-version:       2.0
-tested-with:         GHC ==9.12.2
+tested-with:         GHC ==9.8.4, GHC ==9.10.3, GHC ==9.12.2
 
 extra-source-files:
     README.md
@@ -35,14 +35,13 @@
                , base16-bytestring
                , base64-bytestring
                , bytestring
-               , crypton-connection ^>= 0.4.6
-               , data-default-class ^>= 0.2.0.0
+               , crypton-connection >= 0.4.6 && < 0.5
+               , data-default-class >= 0.2.0.0 && < 0.3
                , filepath
                , mime-mail
-               , network
-               , network-bsd
+               , network >= 3.2.10
                , text
-               , crypton ^>= 1.1
-               , ram ^>= 0.21.1
+               , crypton >=1.1 && <2.3
+               , ram >=0.21.1 && <0.23
 
   ghc-options: -Wall -fwarn-tabs
