Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 779076 - mail-mta/opensmtpd: systemd units should be updated
Summary: mail-mta/opensmtpd: systemd units should be updated
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Jason A. Donenfeld
Depends on:
Reported: 2021-03-29 12:25 UTC by amachronic
Modified: 2021-03-29 13:40 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Note You need to log in before you can comment on or make changes to this bug.
Description amachronic 2021-03-29 12:25:22 UTC
The smtpd.service unit should have PIDFile=/run/ in the [Service] section so systemd can determine the main process PID reliably.

The smtpd.socket unit should be removed. It would require code changes to make smtpd use the socket passed by systemd. At present, smtpd always creates a new fd and calls connect(), which fails because systemd has already called connect() on the socket.