LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
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.

Notices



Reply
 
Search this Thread
Old 06-03-2008, 12:35 AM   #1
Elomis
Member
 
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 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?
 
Old 06-03-2008, 12:49 AM   #2
billymayday
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. http://www.postfix.org/SMTPD_PROXY_README.html
 
  


Reply

Tags
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 05:55 PM
procmail filtering for nonexistant user juu801 Linux - Software 4 10-06-2006 08:33 PM
Filtering outgoing mail through Procmail SlackDaemon Linux - Newbie 2 06-22-2006 08:05 AM
Procmail not filtering WiWa Linux - Networking 0 07-06-2004 03:22 PM
Procmail not filtering tomac Linux - General 0 05-26-2004 04:15 PM


All times are GMT -5. The time now is 04:01 AM.

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