Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Executing a script from .qmal file

Status
Not open for further replies.

chedder123

Programmer
Jan 2, 2003
7
US
I'm running Linux, Redhat 7.3, and Qmail. I do have procmail installed, however if I don't need to, I don't want to use procmail as it seems just a little more difficult. My question is, how can I setup a mailbox so whenever it receives an email, it runs a perl script? I've read the manuals on qmail and it seems that all I have to do is enter in:

| /home/httpd/vhosts/domainname.com/httpdocs/admin/esi-orders.cgi

Into the .qmail file. I did that, however it's not running the script. I'm using virtual hosting on this, so would that make a difference? The qmail is in the home directory of the user.. ie:

/var/qmail/mailnames/domainname.com/orders/.qmail


Do I have to restart qmail once I make changes to the alias files? Or is there something I need to do so the changes take affect?

The entire .qmail file reads:

| /home/httpd/vhosts/successmm.com/httpdocs/admin/esi-orders.cgi
| true
./Maildir/

Any help?

Thanks...

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top