Email - Pipe to a Program

grayloon

Well-Known Member
Oct 31, 2007
117
4
68
Evansville, IN
cPanel Access Level
Root Administrator
Twitter
I have a developer trying to set up an email account that will forward to a PHP script, but it's not working. The email for the domain is hosted externally, so I created a new subdomain and MX record in my external DNS and pointed them to my cPanel server. Since my cPanel server has never hosted email accounts before, I started up the Dovecot service. I set up the new subdomain on my cPanel server and created the email forwarder.

On another linux server, I sent an email (via command line) to the forwarding address. It seemed to leave the server just fine and said it was headed to my cPanel box. However, I can't find any record of it coming into my cPanel box. I checked the /var/log/maillog, and there's no incoming mail there. Is there some additional setup?
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,909
2,227
463
Hello :)

Please ensure you review /var/log/exim_mainlog when attempting to see if the message was delivered. Exim is the MTA that handles incoming/outgoing email.

Thank you.