• Plesk Uservoice will be deprecated by October. Moving forward, all product feature requests and improvement suggestions will be managed through our new platform Plesk Productboard.
    To continue sharing your ideas and feedback, please visit features.plesk.com

How to setup a .procmailrc correctly

kadoudal

Regular Pleskian
I would like to pipes all incoming mail to "[email protected]" to the ruby script 'tracker_email.rb' ,
located at /var/www/vhosts/mydomain.com/httpdocs/tracker

so , at : /var/qmail/mailnames/mysportacademy.com/tracker, I created a .procmailrc file

== START OF FILE==
:0
*
#* ^To:*
|ruby /var/www/vhosts/mydomain.com/httpdocs/tracker/tracker_email.rb
==END OF FILE ===

but when I send an email to [email protected], the script doesn't seems to be executed ....
the email is there in the mailbox...

in which log file can I check what happen ?

thanks for your suggestions
[DEBIAN Lenny OS]
 
procmailrc

Thanks Igor is running now ..

In /var/qmail/mailnames/mydomain.com/tracker

I modified the .qmail file :

======
| true
| /usr/bin/procmail -m -o ./.procmailrc

and I inserted a .procmailrc file

=====
LOGFILE=/var/log/procmail.log

:0
*
#* ^To:*
|ruby /var/rails/mysportacademy.com/tracker/tracker_email.rb

then I had to deal with the permissions.. (tried to understand who is the runner in this case.... )
 
Back
Top