It looks like this issue was due to the dovecot conf missing some directives which caused it to stop working when using unix pipe filters with postfix.
Had to add this to /etc/dovecot/dovecot.conf
service stats {
unix_listener stats-reader {
user = vmail
group = vmail
mode = 0660
}
unix_listener stats-writer {
user = vmail
group = vmail
mode = 0660
}
}
Also noticed the perms were 777 vs 755 which is what is required. So i set those for you as well
Before:
[root@limda ~]# stat /home/limda.net/public_html/client/crons/pipe.php
File: ‘/home/limda.net/public_html/client/crons/pipe.php’
Size: 87516 Blocks: 176 IO Block: 4096 regular file
Device: 800h/2048d Inode: 519968 Links: 1
Access: (0777/-rwxrwxrwx) Uid: ( 5003/ limdane) Gid: ( 5003/ limdane)
Context: system_u:object_r:home_root_t:s0
Access: 2019-12-26 18:29:54.130000000 +0000
Modify: 2019-09-20 14:31:26.000000000 +0000
Change: 2020-01-14 17:44:27.737000000 +0000
Birth: -
[root@limda ~]#
After:
[root@limda ~]# chmod 755 /home/limda.net/public_html/client/crons/pipe.php
[root@limda ~]# stat /home/limda.net/public_html/client/crons/pipe.php
File: ‘/home/limda.net/public_html/client/crons/pipe.php’
Size: 87516 Blocks: 176 IO Block: 4096 regular file
Device: 800h/2048d Inode: 519968 Links: 1
Access: (0755/-rwxr-xr-x) Uid: ( 5003/ limdane) Gid: ( 5003/ limdane)
Context: system_u:object_r:home_root_t:s0
Access: 2020-01-15 17:06:05.457000000 +0000
Modify: 2019-09-20 14:31:26.000000000 +0000
Change: 2020-01-15 17:06:59.656000000 +0000
Birth: -
[root@limda ~]#
Also, I set it to use the full path to php. This might not be needed but its always good to use the full path to minimize issues.
/usr/bin/php -q /home/limda.net/public_html/client/crons/pipe.php
I don’t have access to the WHMCS but it looks like its working how my WHMCS does when it gets an email via pipe so let us know if it’s working on your end when you can.