# OpenSMTPD

OpenSMTPD is a free server-side SMTP (Simple Mail Transfer Protocol) transfer agent that sends, relays, and receives email for homelabs and small mail services.

Canonical page: https://ourlocalhost.com/app/8659/opensmtpd

## Description

OpenSMTPD is a free server-side SMTP (Simple Mail Transfer Protocol) transfer agent that sends, relays, and receives email for homelabs and small mail services.

## Platform availability

Available on 1 of 10 platforms: Any server.

## Health score

61/100 (Good), based on 4 of 5 factors.
- Maintained: 77 (last commit 18 days ago)
- Popular: 55 (588 GitHub stars)
- Easy to install: 25 (1 install platform, install notes)
- Security check: 71 (no serious findings, CI, OpenSSF Scorecard 4.9/10)

## Links

- Official website: https://opensmtpd.org/
- GitHub: https://github.com/OpenSMTPD/OpenSMTPD
- Documentation: https://opensmtpd.org/manual.html

## Common questions

### Should OpenSMTPD run as one user or multiple users?

OpenSMTPD requires at least one user, with _smtpd as the default. It preferably uses two users, _smtpd and _smtpq, because using two users increases security by a large factor.

### How do I install a ready-made OpenSMTPD package on Debian or Ubuntu?

Use the system package tool, such as apt install opensmtpd. Without that step, the mail server program is not installed and there is nothing to configure.

### Does the Docker example need a special port mapping?

Yes, map host port 25 to container port 25 using -p 25:25. Port 25 is the standard incoming mail port, and without the mapping other devices cannot send mail to the server.

### How should OpenSMTPD be configured to forward list mail to multiple recipients?

List the local networks allowed to send mail in smtpd.conf. If forwarding is used, keep list addresses and their recipient targets in lists.table, because missing or wrong entries can cause mail to be rejected or not delivered.

## Alternatives

- Postfix: Postfix is a fast, secure SMTP (Simple Mail Transfer Protocol) mail server that administrators can use to accept, relay, and deliver email…

---
Source: Our Local Host (https://ourlocalhost.com/app/8659/opensmtpd), the self-hosted and open-source app directory.
