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" 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/ |
Quote:
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) |
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...
|
All times are GMT -5. The time now is 05:57 PM. |