An optical module has a package, a first fixing portion, a second fixing portion, and two attachment portions. The package has an optical fiber passing through a sidewall thereof. The first fixing portion fixes the optical fiber to the sidewall of the package directly or indirectly through an intermediate member. The second fixing portion fixes the optical fiber inside of the package. The two attachment portions are arranged respectively at two opposing corners of the package or at two sides of the package around the corners. A distance between the first fixing portion and the second fixing portion is less than 6 mm. |