procmail errors on Cpanel/Exim

I have .procmailrc setup on a cpanel account with Exim, on the domain level. The .forward file has this in it:

|/usr/bin/procmail
All the mail for the domain is routed to the default mailbox account, with the assumption that all local mail delivery to the individual mailboxes would be handled with:

:0
* ^(To|Cc).*user@domain.com
/home/mainusername/mail/domain.com/user/inbox
The whole system works perfectly, including for aliased/parked domains, which apparently is a pain to set up on cpanel with Exim. The only problem is that EVERY email sent to anything@ any of the domains gets a bounce back from the server with this:


pipe to |/usr/bin/procmail
generated by $user@$servername

The following text was generated during the delivery attempt:

------ pipe to |/usr/bin/procmail

Has anyone seen this before, and corrected it on cpanel/Exim? I've tried about every flavor of .forward and procmail trick and cannot get rid of itsuccessfully. Using "|/usr/bin/procmail -f-" I believe got rid of the error, but it also ate all the incoming email. $user@$servername is not in the actual error, of course. And I know that procmail shouldn't be used as an MTA, but as Cpanel doesn't seem to be able to handle aliases easily/quickly to parked and aliased domains, I couldn't spot a better way to do this. Especially as I need to be able to procmail vs. anything coming into the various hosts. Any ideas or guidance would be wildly appreciated...

 

 

 

 

Top