Bug 723461 - when password reset is attempted for user with email root@localhost, message is incorrect
Summary: when password reset is attempted for user with email root@localhost, message ...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Spacewalk
Classification: Community
Component: Server
Version: 1.5
Hardware: Unspecified
OS: Unspecified
unspecified
low
Target Milestone: ---
Assignee: Michael Mráka
QA Contact: Red Hat Satellite QA List
URL:
Whiteboard:
Depends On:
Blocks: space16
TreeView+ depends on / blocked
 
Reported: 2011-07-20 09:38 UTC by Jan Hutař
Modified: 2011-12-22 16:47 UTC (History)
1 user (show)

Fixed In Version: spacewalk-web-1.6.22-1
Clone Of:
Environment:
Last Closed: 2011-12-22 16:47:01 UTC
Embargoed:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.