Bug 1276774 - demons/services that use esmtp write to /.esmpt_queue, not /root/.esmtp_queue
Summary: demons/services that use esmtp write to /.esmpt_queue, not /root/.esmtp_queue
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: esmtp
Version: 23
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
Assignee: Jaroslav Škarvada
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2015-10-30 20:37 UTC by Adam Hunt
Modified: 2016-07-22 11:30 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-07-22 11:30:45 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1140493 0 unspecified CLOSED SELinux is preventing /usr/bin/esmtp from 'read' accesses on the file . 2021-02-22 00:41:40 UTC

Description Adam Hunt 2015-10-30 20:37:59 UTC
Description of problem:
=======================
When a program executed as root utilizes esmtp to send warnings and notifications /.esmtp_queue/ is created and used for outgoing messages. This directory SHOULD NOT be where it is, it should be located at /root/.esmtp_queue/.

This is primarily a file system hierarchy issue but selinux policy is also involved (as seen in bugs 1256851, 1140493, and probably others).



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



How reproducible:
=================
This bug is 100% reproducible.



Steps to Reproduce:
===================
1. Install fail2ban with mail notification support
2. Configure fail2ban for something commonly targeted (sshd is likely your best bet)
3. Start fail2ban.service
4. Watch the journal and/or /var/log/fail2ban.log for a triggering event
5. ls -la /
6. Marvel at the presence of /.esmtp_queue



Actual results:
===============
/.esmtp_queue is created.



Expected results:
=================
/root/.esmtp_queue should be used instead.



Additional info:

Comment 1 Fedora Admin XMLRPC Client 2016-02-12 18:21:30 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 2 Fedora Admin XMLRPC Client 2016-02-14 23:18:48 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.


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