Running command from /etc/alaises
I want to send mail to a certain email address and have it execute a script instead. I have this in /etc/aliases: runapx:"|/usr/local/admin/myscript.pl" I ran sendmail -bi to rebuilt the database. This is not working. This works on our Irix systems. Does anyone know how to do this on SuSE? Thanks, CC
You will need to place a symlink to the executable in the /etc/smrsh directory. This is the "sendmail secure shell" or something like that, I use qmail myself ;-p This should at least point you in the right direction. On Fri, 2001-10-19 at 14:51, Chuck wrote:
I want to send mail to a certain email address and have it execute a script instead.
I have this in /etc/aliases:
runapx:"|/usr/local/admin/myscript.pl"
I ran sendmail -bi to rebuilt the database.
This is not working. This works on our Irix systems.
Does anyone know how to do this on SuSE?
Thanks, CC
* Chuck (suse@clinicomp.com) [011019 11:55]:
I want to send mail to a certain email address and have it execute a script instead. [snip] Does anyone know how to do this on SuSE?
This is probably more safely done with procmail--something like :0 * ^To: whatever_user | path_to_your_script -- -ckm
participants (3)
-
Christopher Mahmood
-
Chuck
-
Jeremy Parr