Bug 723461

Summary: when password reset is attempted for user with email root@localhost, message is incorrect
Product: [Community] Spacewalk Reporter: Jan Hutař <jhutar>
Component: ServerAssignee: Michael Mráka <mmraka>
Status: CLOSED CURRENTRELEASE QA Contact: Red Hat Satellite QA List <satqe-list>
Severity: low Docs Contact:
Priority: unspecified    
Version: 1.5CC: slukasik
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: spacewalk-web-1.6.22-1 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-12-22 16:47:01 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:
Bug Depends On:    
Bug Blocks: 723481    

Description Jan Hutař 2011-07-20 09:38:11 UTC
Description of problem:
When password reset is attempted for user with email root@localhost, WebUI reports "Email sent.", but email is not sent and error_log says "Recipients (root@localhost, , ) failed validate_allowed_recipients check, mail not sent.".


Version-Release number of selected component (if applicable):
spacewalk-html-1.5.15-1.el6.noarch


How reproducible:
always


Steps to Reproduce:
1. Create user with login "root@localhost"
2. Forgot password for him and log out form Spacewalk WebUI
3. Go to https://FQDN/help/forgot_password.pxt and try to reset password for him


Actual results:
WebUI says "Email sent.".

Error log says:
# tail -1 /var/log/httpd/error_log
[Wed Jul 20 09:24:21 2011] [error] Recipients (root@localhost, , ) failed validate_allowed_recipients check, mail not sent.

Email was not sent.


Expected results:
WebUI should not say email was sent when it was not, or email validation should allow this email to be sent.

Comment 1 Šimon Lukašík 2011-07-20 10:00:19 UTC
This is most probably because of:

    web.disallowed_mail_domains = localhost.localdomain, localhost

in your /etc/rhn/default/rhn_web.conf

But I think, we may still want to revisit this setting and described
behavior. The problem is that within Spacewalk there are multiple
ways how to send an e-mail and some of them disregards this setting.
For example tracebacks mails as well as mails from Taskomatic are send
to localhost, even when it's set in disallowed_mail_domains.

Comment 2 Jan Pazdziora (Red Hat) 2011-07-20 11:48:40 UTC
Aligning under space16.

Comment 3 Michael Mráka 2011-09-19 07:12:44 UTC
Emails to locahost are now allowed by default.
Spacewalk master commit cbfb04ee39c85df3d2005593a6c4507e0e2084f8.

Comment 4 Milan Zázrivec 2011-12-22 16:47:01 UTC
Spacewalk 1.6 has been released.