Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

(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.

share|improve this question
    
possible duplicate of What do I need to parse incoming emails? –  Ignacio Vazquez-Abrams Jun 20 '11 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 '11 at 16:52
    
Perhaps you want an "autoresponder" then. –  Ignacio Vazquez-Abrams Jun 20 '11 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 '11 at 17:04
add comment

1 Answer

procmail

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.

share|improve this answer
    
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 '11 at 17:07
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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