Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 779076

Summary: mail-mta/opensmtpd: systemd units should be updated
Product: Gentoo Linux Reporter: amachronic
Component: Current packagesAssignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it <maintainer-needed>
Status: RESOLVED FIXED    
Severity: normal CC: ionen
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

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(+)