LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
LinkBack Search this Thread
Old 01-31-2008, 04:40 PM   #1
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Debian
Posts: 2,831

Rep: Reputation: 65
How Does Procmail Work w/ MTA?


I noticed in my Postfix mail server running Debian 4.0 there is an option for procmail and I was wondering what exactly does Procmail do and how does it fit into the mix of Postfix MTA?

Here is the entry specifically:

Code:
swordfish:~# cat /etc/postfix/main.cf | grep "procmail"
#mailbox_command = procmail -a "$EXTENSION"
 
Old 01-31-2008, 05:01 PM   #2
frndrfoe
Member
 
Registered: Jan 2008
Distribution: RHEL, CentOS
Posts: 370

Rep: Reputation: 38
Procmail can redirect mail system wide using /etc/procmailrc or per user using ~/.procmailrc.
It is useful for redirecting mail through virus scanners or spam filters. users can individually decide if they want to use such services and configure server side email redirection, sorting, and whatever you can think of. If your building a multi user system, I highly recommend it.
 
Old 01-31-2008, 05:04 PM   #3
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Debian
Posts: 2,831

Original Poster
Rep: Reputation: 65
So do you recommend I enable that line I have commented out in my main.cf? I see what you're saying like if I want to re-direct all email labeled SPAM from Spamassassin into a ~/.spam directory. Makes sense, right?

Thanks!
 
Old 01-31-2008, 05:16 PM   #4
frndrfoe
Member
 
Registered: Jan 2008
Distribution: RHEL, CentOS
Posts: 370

Rep: Reputation: 38
I haven't worked with postfix so I am not sure if that is the only step to enabling it. I see a thread like this http://www.irbs.net/internet/postfix/0609/0322.html and wonder if it's more configuration than a one-liner.

It is pretty much a one-liner in sendmail but thats a different animal.
 
Old 01-31-2008, 08:28 PM   #5
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,063

Rep: Reputation: 221Reputation: 221Reputation: 221
Quote:
Originally Posted by Carlwill View Post
So do you recommend I enable that line I have commented out in my main.cf? I see what you're saying like if I want to re-direct all email labeled SPAM from Spamassassin into a ~/.spam directory. Makes sense, right?

Thanks!
Yes - in my .procmailrc I send straight to /dev/null:

Code:
:0fw
 | spamassassin

 :0:
 * ^X-Spam-Flag: YES
 /dev/null
You can also make rules to sort out mail into folders by subject etc. Very useful.

Last edited by dive; 01-31-2008 at 08:29 PM.
 
  


Reply


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Auto reply with postfix and procmail . my setting dosnt's work.? combilli Linux - Software 1 11-03-2006 09:16 AM
qmail work with procmail sizzlingdesi Linux - Software 0 11-02-2006 06:44 PM
Problem with mail delivery procmail>cyrus imap (using sendmail,procmail,cyrus,imap) bwana Linux - Software 2 03-24-2005 07:01 PM
how MTA works? how do they detect files to send? how do they work for queuing message ltcstyle Programming 2 11-30-2004 05:50 PM
Do I need a MTA? orso Linux - Software 5 12-06-2003 04:16 PM


All times are GMT -5. The time now is 05:49 AM.

Main Menu
 
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
Open Source Consulting | Domain Registration