Bug 2109421

Summary: Sendmail package not present on RHEL8 and needs manual configuration
Product: Red Hat Satellite Reporter: Shweta Singh <shwsingh>
Component: PackagingAssignee: Evgeni Golov <egolov>
Status: CLOSED ERRATA QA Contact: Shweta Singh <shwsingh>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 6.11.0CC: ahumbe, egolov, ehelms, pcreech, pdwyer, pmendezh, rdrazny
Target Milestone: 6.12.0Keywords: AutomationBlocker, Regression, Triaged
Target Release: Unused   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: foreman-3.3.0.7-2 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 2126167 (view as bug list) Environment:
Last Closed: 2022-11-16 13:34:44 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Shweta Singh 2022-07-21 07:50:31 UTC
Description of problem:
Sendmail package is not part of RHEL8 Satellite and needs to be configured manually. 
Same works fine on EL7.

Version-Release number of selected component (if applicable):
6.11

How reproducible:
Always

Steps to Reproduce:
1. Configure Satellite 6.11 EL8
2. Sendmail binary is not present in EL8
3.

Actual results:
Sendmail binary is not present in EL8

Expected results:
Sendmail binary should be part of EL8 Satellite and shouldn't need explicit configuration.

Additional info:

Comment 1 Evgeni Golov 2022-07-21 07:59:47 UTC
Bit of context:
Foreman (and thus Satellite) defaults to using sendmail as the mail delivery method (alternative, it could use SMTP).
As Sendmail is not installed by default on EL8, this delivery method fails.

I've asked Shweta to post this BZ against the Installer, but am not 100% sure it is the correct place (but a good one to start!):
- we could also make packaging depend on Sendmail (or Postfix, or /usr/sbin/sendmail)
- in theory, it's not a hard dependency, as the user *can* chose to use SMTP
- we can use any /usr/sbin/sendmail, which can be also provided by Postfix and others (created by some 3rd party package)

Comment 2 Evgeni Golov 2022-08-31 05:22:39 UTC
Created redmine issue https://projects.theforeman.org/issues/35461 from this bug

Comment 3 Bryan Kearney 2022-08-31 12:05:02 UTC
Moving this bug to POST for triage into Satellite since the upstream issue https://projects.theforeman.org/issues/35461 has been resolved.

Comment 12 Shweta Singh 2022-10-03 10:45:41 UTC
Thanks Eric and Evgeni for actively working on this issue. 

Verified the fix on Satellite 6.12 Snap 13
Verification Steps:
1. Check if postfix service is enabled on satellite using command "systemctl status postfix" and enable the service if it is not. 
1. Update users email address to satellite fqdn to receive emails(Navigate to Adminiter --> Users)
2. Navigate to Administer --> Settings in UI 
3. Move to Email Tab and set the fields "Email reply address" to satellite hostname and "Send welcome email" to yes.
4. Verify "Email sent successfully" message on clicking "Test Email"
5. Verify the email received on email address configured in users email address(in /var/mail/root).

Note: Postfix service should be enabled and included as a part of email configuration in the documentation.

Comment 16 errata-xmlrpc 2022-11-16 13:34:44 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory (Important: Satellite 6.12 Release), and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHSA-2022:8506