LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-22-2004, 04:39 PM   #1
mikeshn
Member
 
Registered: Feb 2002
Posts: 586

Rep: Reputation: 30
Sendmail Aliases: forward mail to script


I added this line to /etc/aliases "user1: | /home/mike/forward_mail.pl"
then I run newaliases command and restarted sendmail.

When I send the email to the email address I receive Mail Delivery Subsystem

The following addresses had permanent fatal errors -----
| /home/mike/process/forward_mail.pl
(reason: Service unavailable)

----- Transcript of session follows -----
smrsh: "forward_mail.pl" not available for sendmail programs (stat failed)
554 5.0.0 Service unavailable
 
Old 01-23-2004, 10:17 PM   #2
mcleodnine
Senior Member
 
Registered: May 2001
Location: Left Coast - Canada
Distribution: s l a c k w a r e
Posts: 2,731

Rep: Reputation: 45
Looks like either the sendmail can't run it due to permissions (sendmail user) or file attributes (is it +x?)
 
Old 07-03-2010, 08:22 PM   #3
skidadon
LQ Newbie
 
Registered: Jul 2010
Posts: 2

Rep: Reputation: 1
Complete instructions on how to fix this

Looks like you need to add the following symbolic link for sendmail to php so that sendmail can run php during runtime
ln -s /usr/bin/php /etc/smrsh/php


Also, ensure your permissions are 100%. The script should 755 permissions.

Ciao.

Last edited by skidadon; 07-03-2010 at 08:25 PM. Reason: to make my comment more understandable
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to make Sendmail forward all incoming mail to localhost port 26 (Domino mail) speedgelb Linux - Software 3 09-27-2013 10:18 AM
Sendmail + /etc/aliases = Unprivlieged User mail ckoniecny Linux - General 1 10-22-2005 05:41 AM
sendmail: not possible to pipe mail to programs using ~/.forward && /etc/mail/aliases fhd Linux - Networking 1 01-09-2005 06:05 PM
Sendmail problem .forward.mail Please HELP kepweng Linux - Software 0 04-16-2004 04:29 AM
sendmail & /etc/mail/aliases adam_boz Linux - Software 5 09-27-2002 12:31 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:20 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration