Bug 174252

Summary: mail goes to root@localhost.localdomain
Product: [Fedora] Fedora Reporter: Pierre Ossman <pierre-bugzilla>
Component: smartmontoolsAssignee: Tomas Mraz <tmraz>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 4   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: smartmontools-5.33-4 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-12-16 22:35:05 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: 150221    

Description Pierre Ossman 2005-11-26 15:42:42 UTC
The script that generates smartd.conf uses the mail address
root. Since every (more or less) other tool sends their
mail to just 'root', these messages tend to be lost using certain setups.

My system directs the mail to a central root account by having domain-less
addresses routed to a complete non-local address. In order to catch these
localhost.localdomain addresses I had to add a special alias for them.

Please change the script so it uses just 'root' (or gets the machine's domain
name if you insist on a complete address). The current situation is terribly
annoying and repeatedly causes errors.

Comment 1 Tomas Mraz 2005-11-28 10:16:43 UTC
Is root@localhost (that's the way it is in the latest FC development package)
good enough?


Comment 2 Pierre Ossman 2005-11-28 10:35:11 UTC
No, the name needs to be unqualified. The mailserver completes unqualified to
user and sends it through normal processing.

root@localhost is considered complete so it is scheduled for local delivery
instead of being handed of to the central mail server (unless an alias is added).

A default crontab has 'MAILTO=root', logwatch has 'MailTo = root' and mdadm has
'MAILADDR root', so smartmontools should probably fall in line. :)