Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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
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)
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...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.