• We value your experience with Plesk during 2025
    Plesk strives to perform even better in 2026. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2025.
    Please take this short survey:

    https://survey.webpros.com/

How to setup a .procmailrc correctly

kadoudal

Regular Pleskian
I would like to pipes all incoming mail to "tracker@mydomain.com" 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 tracker@mydomain.com, 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