LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
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, 05:39 PM   #1
mikeshn
Member
 
Registered: Feb 2002
Distribution: Fedora Core 2
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, 11: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, 09: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 09:25 PM. Reason: to make my comment more understandable
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 11:18 AM
Sendmail + /etc/aliases = Unprivlieged User mail ckoniecny Linux - General 1 10-22-2005 06:41 AM
sendmail: not possible to pipe mail to programs using ~/.forward && /etc/mail/aliases fhd Linux - Networking 1 01-09-2005 07:05 PM
Sendmail problem .forward.mail Please HELP kepweng Linux - Software 0 04-16-2004 05:29 AM
sendmail & /etc/mail/aliases adam_boz Linux - Software 5 09-27-2002 01:31 PM


All times are GMT -5. The time now is 06:55 AM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration