Bug 772291

Summary: using commands in aliases doesn't work
Product: [Fedora] Fedora Reporter: Eddie Lania <eddie>
Component: sendmailAssignee: Jaroslav Škarvada <jskarvad>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 16CC: jskarvad, mlichvar
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-01-06 17:58:51 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Eddie Lania 2012-01-06 17:21:13 UTC
Description of problem: I am trying to make sendmail extract attachments from mail for a specific purpose.

I added a line to /etc/aliases:

emailorder: |"/usr/bin/ripmime -i - --mailbox -d /mnt/data/emailorder"

 and ran "newaliases" afterwards.

The program /usr/bin/ripmime is symlinked to /etc/smrsh/ripmime

When a message for "emailoder" arrives, the command seems to work an no error is reported in /var/logmaillog or /var/log/messages.
I also see no selinux denials.

However, nothing is being written to /mnt/data/emailorder.

When i manually pipe an email message containing an attachment through the same command everything works as aspected.

I also tried other programs as commands in /etc/aliases but none of them work while they manually all do their job fine.


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

sendmail-8.14.5-11.fc16.i686


How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Eddie Lania 2012-01-06 17:58:51 UTC
Sorry, i already found it: it was a permissions problem.