I just upgraded to a dedicated 2 plan with lunar panel (coming from a vps with plesk) and I cant figure out how to pipe incoming email to a php script with the new service.
With Plesk I was able to edit /var/qmail/mailnames/domain.com/user/.qmail and set it as the following:
| /usr/local/psa/bin/psa-spamc reject
| true
| /usr/bin/php -q /var/www/vhosts/domain.com/httpdocs/emailpipe.php
#./Maildir/
Incoming email would be filtered through spamassasin then piped to the php script
With cPanel, this can be done from the email filters option simply by adding the following as a filter.
| /usr/bin/php -q /var/www/vhosts/domain.com/httpdocs/emailpipe.php
How would I accomplish this with the new lunar panel?
Thanks