LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Is procmail the answer to my filtering problem? (https://www.linuxquestions.org/questions/linux-software-2/is-procmail-the-answer-to-my-filtering-problem-646570/)

Elomis 06-02-2008 11:35 PM

Is procmail the answer to my filtering problem?
 
Hi guys,
I want to install software on my home SUSE box to download my mail from a mail server (let's say pop.mymail.com) so I point my local mail client to it locally. That's pretty straightfoward, I am just going to figure out a pop proxy or something similar (although tips on this would be appreciated).

The non-straightforward part is I want to go through the incoming mail and filter it based on a bunch of criteria, with automatic replies if the mail matches the following criteria;
  • The mail is from a hotmail or gmail or other free webmail provider
  • The mail is sent from a very old mail server, e.g. Microsoft Exchange 5.5
  • The mail contains an HTML advertisement for a particular extension to Microsoft Outlook called Increadimail

I do some security work and it's important for me to be able to set a standard on incoming email. I want someone who sends mail from hotguy4u@gmail.com (for example) to get a reply saying the server doesn't accept mail from personal webmail sites and it is solely accepts business mail. I want users who send mail from an antiquated mail server to get a response saying that my system cannot possibly accept mail from a server that is too old to be trusted and I want the auto respond for the Increadimail ad to say that the email was sent from a machine that has a non-business plugin installed that has not been determined to be safe.

Is procmail the type of application I get this going in? It seems from what I've read to check the email AFTER it's delivered to the local mail client. Is there another way? How would you go about this?

billymayday 06-02-2008 11:49 PM

You could write a custom before queue filter for postfix if you wanted. http://www.postfix.org/SMTPD_PROXY_README.html


All times are GMT -5. The time now is 02:36 PM.