• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

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