mapping email to a script

Hello,

ok, i run a site that is hosted by a company. i need to have an email alias be sent to a script in my cgi-bin, well needless to say, i am getting no help from my host, all they are saying is that i need to find someone to map it for me, or they will do it for $60 an hour, even though i already pay them over $100 per month for my sites now. well, anyway what i have is this: currently all my emails are dropping into a catch-all box via email forwarding (which i have control over through the sites menu) but forwarding will not let me forward an address to a path. now i do have an .mail_aliases file above my public_html and in it i placed this:
test: "|/path/to/my/parser.pl"

but it still is not sending to my path.

so:
do i need to have the server restarted after making these alterations?
if so, is there a way to just restart my part locally?
im i doing something wrong in there?
do i need to maybe setup a seperate email box for each email?
or maybe do i need to forward that email to a different place so that i can alias it to the script?

please, any help will be greatly appreciated...

Thank you,
Randor
randor1973Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Nick AccadSystems AdministratorCommented:
im not sure what exactly is your host running, but shouldnt
that file be .forward instead of .mail_aliases? or is your
ISP specefically using .mail_aliases?

what is your local mailer? if its procmail the file to play
with is .procmailrc

something like this:

:0fw
| /path/to/my/parser.pl

like i said, i do not know enough about your system to give
more help, if u have any more info please post them here

tc
-nick

0
periwinkleCommented:
Assuming that you are running on a Linux system, and you have access to your aliases, you can simply set up an alias like:

thisemail:      "|/full/path/to/your/program"
0
JIEXACommented:
After changing aliases mapping for sendmail, you need to run "newaliases" in order to tell to sendmail to rebuild its aliases.db file.
0
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

randor1973Author Commented:
ok, i found out that i actually need to use the procmail, so can someone show me how to redirect anything coming in test@mydomain.com to /path/to/my/parser.pl

Thank you for any help
0
periwinkleCommented:
Why do you need to use procmail?  

In the /etc/aliases file, you can set up:

test:      "|/path/to/my/parse.pl"

and then run 'newaliases' to update the aliases.
0
Nick AccadSystems AdministratorCommented:
randor, i already posted an example for procmail

anyway, here it is again:

create a .procmailrc file (that is dot procmailrc)

in it, put something like this
(this is a working procmailrc file)

##BEGIN PROCMAIL CONF
PATH=$HOME/bin;/usr/bin:/bin:/usr/local/bin
LOGFILE=$HOME/.procmail.log
LOCKFILE=$HOME/.procmail.lock
VERBOSE=off

:0fw
| /home/user1/parser.pl
##END PROCMAIL CONF

tc
-nick

0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
randor1973Author Commented:
yes, sry naccad, i was unsure if i was reading it correctly, i infact have procmasil and that worked, thank you
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Linux

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.