(This is a newbie question, requesting answers that will point me in the right general direction).

What would be the best way to receive emails, parse their content and send different email replies based upon certain words appearing in the content?

I have a server running CentOS Linux and WHM/CPanel.

  • possible duplicate of What do I need to parse incoming emails? Jun 20, 2011 at 16:33
  • Thank you, Ignacio, for drawing my attention to that question, which is somewhat related, but only covers the receiving and parsing aspects. I am asking if there might be some sort of solution or existing product that enables the entire sequence, possibly already part of WHM/CPanel or easily integrated. I have amended my questions tags to more clearly specify WHM and CPanel.
    – Donnacha
    Jun 20, 2011 at 16:52
  • Perhaps you want an "autoresponder" then. Jun 20, 2011 at 16:53
  • Well, an autoresponder might be the correct solution if one exists that is sophisticated enough to send different replies depending on certain words appearing in the received content. I am pretty sure that such software must exist but, at the moment, I don't know how to find it, hence my question.
    – Donnacha
    Jun 20, 2011 at 17:04

1 Answer 1



This is exactly what procmail is designed to do.

procmail Homepage

You still need to write procmail recipes to act on the e-mail, but it's powerful and flexible.

  • Thanks EightBitTony, I will start researching procmail. According to Wikipedia, the project is no longer maintained, so I am still interested in hearing about any other possible approaches, but very grateful for this first pointer.
    – Donnacha
    Jun 20, 2011 at 17:07

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.