LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 03-26-2008, 05:16 PM   #1
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Rep: Reputation: 77
Email Stops Working w/ Procmail (Postfix)


I have a full functioning email server running Postfix, Spamassassin, and Dovecot on my Linux server. Now I am trying to filter email from Spamassasin headers using procmail however when I add this:

Code:
mailbox_command = /usr/bin/procmail -a "$EXTENSION"
to my /etc/postfix/main.cf, any email that normally gets delivered to /home/user_name/Maildir from Postfix now gets queued in /var/mail/user_name.

I don't understand why this small change is causing Postfix not to deliver incoming messages to my Maildir and rather to /var/mail/user_name.

I am posting my main.cf if anyone can please tell me what I am doing wrong. When I disable (comment) this option from my main.cf. Incoming email is no problem.

****

main.cf

carlos@swordfish:/var/mail$ cat /etc/postfix/main.cf
# See /usr/share/postfix/main.cf.dist for a commented, more complete version


# Debian specific: Specifying a file name will cause the first
# line of that file to be used as the name. The Debian default
# is /etc/mailname.
#myorigin = /etc/mailname

smtpd_banner = $myhostname ESMTP $mail_name (Linux)
biff = no

# appending .domain is the MUA's job.
append_dot_mydomain = no

# Uncomment the next line to generate "delayed mail" warnings
#delay_warning_time = 4h

# TLS parameters
smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem
smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key
smtpd_use_tls=yes
smtpd_tls_session_cache_database = btree:${queue_directory}/smtpd_scache
smtp_tls_session_cache_database = btree:${queue_directory}/smtp_scache

# See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for
# information on enabling SSL in the smtp client.

myhostname = swordfish.carlwill.com
alias_maps = hash:/etc/aliases
alias_database = hash:/etc/aliases
myorigin = carlwill.com
mydestination = carlwill.com, swordfish.carlwill.com, localhost.carlwill.com, localhost
relayhost =
mynetworks = 192.168.1.0/24, 192.168.2.0/24, 127.0.0.0/8
#mailbox_command = /usr/bin/procmail -a "$EXTENSION"
mailbox_size_limit = 0
recipient_delimiter = +
inet_interfaces = all
relay_domains = carlwill.com
home_mailbox = Maildir/
 
Old 03-26-2008, 05:22 PM   #2
billymayday
LQ Guru
 
Registered: Mar 2006
Location: Sydney, Australia
Distribution: Fedora, CentOS, OpenSuse, Slack, Gentoo, Debian, Arch, PCBSD
Posts: 6,678

Rep: Reputation: 122Reputation: 122
Quote:
I don't understand why this small change is causing Postfix not to deliver incoming messages to my Maildir and rather to /var/mail/user_name.
Because Postfix isn't delivering the messages any more procmail is.

I don't know a heap about procmail (I use maildrop), but I would guess you need a suitably configured .procmailrc in the user's home direcory. The Postfix site has info on using procmail (most of it in the negative as I recall)
 
Old 03-26-2008, 05:28 PM   #3
carlosinfl
Senior Member
 
Registered: May 2004
Location: Orlando, FL
Distribution: Arch
Posts: 2,905

Original Poster
Rep: Reputation: 77
OK - before I created the .procmailrc file in the home dir, I wanted to make sure I was not going to far and breaking stuff and noticed a huge change after step one. I will read Postfix info and see what the best route would be...
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Book review: Setup and Run a Small Office Email Server Using Postfix, Courier, Procmail, Squirrelmail, Clamav and Spamassassin LXer Syndicated Linux News 0 08-24-2006 09:21 AM
Need help POSTFIX,PROCMAIL tkmuthuvel Linux - General 9 04-18-2006 11:31 PM
Using Procmail with Postfix jomy Linux - Networking 1 06-05-2005 09:38 AM
postfix, procmail, cyrus jonin Linux - Software 0 10-15-2004 02:09 PM
email from the console (fetchmail/procmail/mutt/postfix) TedMaul Linux - Software 0 03-04-2004 12:07 PM

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

All times are GMT -5. The time now is 08:32 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
Open Source Consulting | Domain Registration