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.
I am using Postfix to send and receive email on my email server and also have Spamassassin scoring incoming email. I was told that procmail can filter email from Spamassassin into a folder by placing a procmail.rc hidden file in the users home directory to then move mail labeled SPAM in the header into a specific folder. I would love to do this but don't know where to begin on setting something like this up. I am sick of having labeled SPAM in my inbox.
Postfix will use procmail (they seem to hate it there for some reason), but I use maildrop for the same purpose.
There are a number of ways to do this, one is given above, or a few ways via the transport mechanism. Although for maildrop, I'm sure these would apply for procmail too.
OK - There is a lot of info here. Let me cap everything up. And by the way I Am using Maildir style, not sure if this makes any difference or not...
1 - I am going to touch ~/.procmailrc as Deleriux suggested.
2 - vim ~/.procmailrc & add what he suggested.
3 - Reload postfix and see if emails that are normally labeled [***** SPAM 6.7 *****] Increase Your Member Size in the subject get filtered w/o having to create a .forward file or adjusting any MTA (Postfix) settings.
Do I need to create ~/.spam or will the .procmailrc file auto generate this for me?
In my /etc/postfix/main.cf, I have the following entry commented out for procmail. Should I enable this setting? Not sure I understand what it does but it seems that it obviously relates to procmail and Postfix.
Personaly I dont like procmail as it such a cryptic syntax that isnt suitable for users to exploit. Although I didnt suggest it initially i would recommend as the above poster pointed out to use maildir instead of mbox since it is easier to read and simpler to administrate.
Personaly I dont like procmail as it such a cryptic syntax that isnt suitable for users to exploit. Although I didnt suggest it initially i would recommend as the above poster pointed out to use maildir instead of mbox since it is easier to read and simpler to administrate.
I am not sure I understand what you mean. I am using Maildir style messaging in Postfix rather than mbox as shown in my config:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.