Bug 770357
| Summary: | default config file for mailx is missing | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 6 | Reporter: | prashant ingale <pingale> |
| Component: | abrt | Assignee: | Denys Vlasenko <dvlasenk> |
| Status: | CLOSED ERRATA | QA Contact: | qe-baseos-tools-bugs |
| Severity: | high | Docs Contact: | |
| Priority: | medium | ||
| Version: | 6.0 | CC: | dvlasenk, jjacobs, jmoskovc, mnowak, mtoman, nobody+abrt-devel-list, rvokal, vgaikwad |
| Target Milestone: | rc | ||
| Target Release: | 6.3 | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | abrt-2.0.8-1.el6 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2012-06-20 07:04:00 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: | 744774 | ||
You need to create a separate config file for mailx (eg. /etc/libreport/events/report_Mailx.conf), specify whatever options you want there and edit mailx_event.conf:
EVENT=report_Mailx reporter-mailx -c {config_file}
abrt 2.0.4-14 which is in rhel6.2 contains that by default, can you please provide output of: rpm -q abrt Fixed in git:
commit 36d4595106c8477e4e1f42a672638677764878ec
Author: Denys Vlasenko <dvlasenk>
Date: Thu Jan 12 13:30:02 2012 +0100
reporter-mailx: read /etc/libreport/plugins/mailx.conf by default
Package a default mailx.conf with all parameters commented out.
While at it, expand reporter-mailx --help
Hello, I would like to comment that this is not found in abrt-2.0.4-14.el6.x86_64. Nor does the mentioned workaround work for this version Modified /etc/libreport/events.d/mailx_event.conf. EVENT=report_Mailx reporter-mailx -c /etc/libreport/plugins/mailx.conf Config /etc/libreport/plugins/mailx.conf created: Mailx_EmailFrom = root@<domain> Mailx_EmailTo = <me>@<domain> I've tried variations omiting the Mailx_ portion and with/without quotes etc. Please let me know if I'm missing something and ty for any time devoted to this matter. Jesse (In reply to comment #9) > Hello, > > I would like to comment that this is not found in abrt-2.0.4-14.el6.x86_64. > > Nor does the mentioned workaround work for this version > > Modified /etc/libreport/events.d/mailx_event.conf. > > EVENT=report_Mailx reporter-mailx -c /etc/libreport/plugins/mailx.conf > > Config /etc/libreport/plugins/mailx.conf created: > > Mailx_EmailFrom = root@<domain> > Mailx_EmailTo = <me>@<domain> > > I've tried variations omiting the Mailx_ portion and with/without quotes etc. > > Please let me know if I'm missing something and ty for any time devoted to this > matter. > > Jesse - it depends on what do you want to achieve, if you want to use the mailx when you're reporting something manually then your solution should work - if you want to make abrt to send the mail automatically when the crash happens then the line in /etc/libreport/events.d/mailx_event.conf should be like this: EVENT=post-create reporter-mailx -c /etc/libreport/plugins/mailx.conf - note the EVENT=post-create part, post-create means right after the crash is detected - if you're interested in details you can find more detailed description here: http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/6/html-single/Deployment_Guide/#sect-abrt-configuration-events (it takes a while to load, but it will eventually ;)) Hello Jiri, Ty for the response. :) I had tried this prior to posting without success. I even removed in case it did not support comments. #EVENT=report_Mailx reporter-mailx -c /etc/libreport/plugins/mailx.conf EVENT=post-create reporter-mailx -c /etc/libreport/plugins/mailx.conf Jesse 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, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHSA-2012-0841.html |
Description of problem: abrt email notification is not working. Version-Release number of selected component (if applicable): Red Hat Enterprise Linux 6+ Steps to Reproduce: edit a file /etc/libreport/events.d/mailx_event.conf EVENT=report_Mailx reporter-mailx EmailTo={custom_address} Actual results: Email should sent to root@localhost Expected results: Email should sent to custom_address Additional info: Mail still sending to root@localhost logs: Dec 20 12:14:30 devapptmpl1 abrtd: Directory 'ccpp-2011-12-20-12:14:30-2417' creation detected Dec 20 12:14:33 devapptmpl1 abrtd: Sending an email... Dec 20 12:14:33 devapptmpl1 abrtd: Email was sent to: root@localhost