Currently I am managing mailboxes with cPanel. I configured the mailboxes in cPanel, to pipe the emails to a PHP script. I am using cPanel only for that purpose, so I wanna get rid of all that gear.
All I need is:
- Create a email server (from here I guess I will need some PHP library/application)
- Create a email account/mailbox in the email server
- For each email received by the mailbox: run a PHP script which processes the bytes
These PHP extensions rely on preexistant email server and account, so, these alone are not enough.
From what I have been researching, apparently I need to do it throught PHP command line, with CLI or CGI, not sure which one.
I work in a VPS with LAMP CentOS, maybe there is a open source PHP application or library that can be implemented here, just for the specific task.