LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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
  Search this Thread
Old 02-14-2008, 06:01 PM   #1
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Rep: Reputation: 77
Help ID Postfix Config Entry?


I have this line in my /etc/postfix/main.cf file and it is commented out however I am not really sure I understand what it does if I enable it.

Code:
#mailbox_command = procmail -a "$EXTENSION"
I Googled "procmail" and I think this is something I would like to use to filter SPAM messages from ever making it to my inbox.

Can anyone explain?
 
Old 02-16-2008, 10:14 AM   #2
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Original Poster
Rep: Reputation: 77
bump for help.
 
Old 02-16-2008, 02:07 PM   #3
WindowBreaker
Member
 
Registered: Oct 2005
Distribution: Slackware
Posts: 228

Rep: Reputation: 40
Once postfix determines a message is to be delivered locally, it [ by default ] hands it off to the local delivery agent.

That sould look like this:

(SMTP) or (local submission) -> (Postfix) -> (local) -> (mailbox)


You can change that behavior by setting the mailbox_command parameter in /etc/postfix/main.cf.

For instance, if you would like local messages to be handed off to procmail, instead of the default local delivery agent, you would set:
mailbox_command = procmail -a "$EXTENSION"

The it would look like this:
(SMTP) or (local submission) -> (Postfix) -> (procmail) -> (mailbox)
 
Old 02-16-2008, 04:11 PM   #4
Deleriux
Member
 
Registered: Nov 2003
Posts: 89

Rep: Reputation: 17
procmail is a nice server side way of filtering messages based on header, subjects or content into say different folders (if you use maildir) instead of needing clients to setup their own filtering rules. The normal postfix delivery agent doesnt provide the same functionality.

Unfortunately it has a ridiculously cryptic syntax. Useful to know though if you have an hour to experiment with it.

Last edited by Deleriux; 02-16-2008 at 04:12 PM.
 
  


Reply



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
Question about Postfix Log Entry mrtwice Linux - Server 7 02-11-2007 02:59 PM
please help me with my postfix config carlene Linux - Networking 1 10-17-2006 09:45 PM
Postfix config problem Rarrum Linux - Networking 2 01-08-2005 07:48 PM
How do i find out the fedora entry for the lilo config xiato Linux - Newbie 3 05-05-2004 02:50 PM
slackware and grub; what should the config entry be? CrazyPilot Slackware 4 04-11-2004 11:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 04:45 PM.

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