• Introducing WebPros Cloud - a fully managed infrastructure platform purpose-built to simplify the deployment of WebPros products !  WebPros Cloud enables you to easily deliver WebPros solutions — without the complexity of managing the infrastructure.
    Join the pilot program today!
  • Support for BIND DNS has been removed from Plesk for Windows due to security and maintenance risks.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS.

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