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
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-03-29 12:25 UTC by amachronic
Modified: 2023-08-28 15:32 UTC (History)
1 user (show)

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


Attachments

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/smtpd.pid 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.
Comment 1 Larry the Git Cow gentoo-dev 2023-08-26 14:22:30 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1c72dffdc796b9aa428abc9e9d557f817f6f9baa

commit 1c72dffdc796b9aa428abc9e9d557f817f6f9baa
Author:     David Seifert <soap@gentoo.org>
AuthorDate: 2023-08-26 14:21:08 +0000
Commit:     David Seifert <soap@gentoo.org>
CommitDate: 2023-08-26 14:21:08 +0000

    mail-mta/opensmtpd: add 7.3.0_p1
    
    Bug: https://bugs.gentoo.org/779076
    Bug: https://bugs.gentoo.org/881701
    Bug: https://bugs.gentoo.org/899788
    Bug: https://bugs.gentoo.org/908836
    Signed-off-by: David Seifert <soap@gentoo.org>

 mail-mta/opensmtpd/Manifest                  |  1 +
 mail-mta/opensmtpd/files/smtpd-r1.service    | 11 ++++
 mail-mta/opensmtpd/opensmtpd-7.3.0_p1.ebuild | 91 ++++++++++++++++++++++++++++
 3 files changed, 103 insertions(+)