Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 06-02-2008, 11:35 PM   #1
Registered: Dec 2004
Location: Sydney
Distribution: SUSE
Posts: 89

Rep: Reputation: 15
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 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 (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?
Old 06-02-2008, 11:49 PM   #2
LQ Guru
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
You could write a custom before queue filter for postfix if you wanted.


mail, pop, pop3, procmail, security, server

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Procmail filtering Intimidator Programming 1 06-10-2007 04:55 PM
procmail filtering for nonexistant user juu801 Linux - Software 4 10-06-2006 07:33 PM
Filtering outgoing mail through Procmail SlackDaemon Linux - Newbie 2 06-22-2006 07:05 AM
Procmail not filtering WiWa Linux - Networking 0 07-06-2004 02:22 PM
Procmail not filtering tomac Linux - General 0 05-26-2004 03:15 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:51 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration