Bug 2223998

Summary: Sendmail is restarted multiple times on boot
Product: [Fedora] Fedora Reporter: Eiríkur Hjartarson <eiki>
Component: sendmailAssignee: Jaroslav Škarvada <jskarvad>
Status: CLOSED EOL QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: unspecified    
Version: 38CC: anon.amish, eiki, fhrdina, jskarvad, olysonek-foss, redhat-bugzilla
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2024-05-28 13:33:06 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Eiríkur Hjartarson 2023-07-19 14:02:41 UTC
On all my fedora-38 machines sendmail is started at least three times (stopped two times).  This is apparently due to the NetworkManager-dispatcher.service, which calls scripts in /usr/lib/NetworkManager/dispatcher.d/ especially 10-sendmail:

---
#!/usr/bin/sh

case "$2" in
	up|down|vpn-up|vpn-down)
		/bin/systemctl --no-block try-restart sendmail.service || :
		;;
esac
---

Maybe sendmail.service should depend on network.target or network-online.target?

Reproducible: Always

Steps to Reproduce:
1. Configure and activate sendmail (including "systemctl enable sendmail")
2. Reboot machine
3. Execute "journalctl -b0 -u sendmail -u sm-client" (and note multiple starts)
Actual Results:  
Output shows that sendmail/sm-client are started at least three times and stopped two times.

Expected Results:  
Sendmail/sm-client should only be started once.

Comment 1 Aoife Moloney 2024-05-28 13:33:06 UTC
Fedora Linux 38 entered end-of-life (EOL) status on 2024-05-21.

Fedora Linux 38 is no longer maintained, which means that it
will not receive any further security or bug fix updates. As a result we
are closing this bug.

If you can reproduce this bug against a currently maintained version of Fedora Linux
please feel free to reopen this bug against that version. Note that the version
field may be hidden. Click the "Show advanced fields" button if you do not see
the version field.

If you are unable to reopen this bug, please file a new report against an
active release.

Thank you for reporting this bug and we are sorry it could not be fixed.