0

I have set up Dovecot with public folders on a CentOS 6-server, with sendmail and spamassassin. I'm getting a lot of spam in both public folders and in the users inboxes. I want spamassassin / procmail to move the email marked as SPAM in a folders called SPAM: One public SPAM-folder (for all the public folders) , and one for every user.

How can I do this with spamassassin and procmail?

Andy
  • 11
  • 3
  • 1
    Hi Andy, we generally frown upon 'How do I do this?' questions where the asker has not indicated what they have tried on their own. Have you googled this already? What other things have you tried? – MDMoore313 Jun 13 '14 at 16:27
  • Hi, I understand. I have already tried different approaches that works on the user's folder, but haven't found any documentation for dovecot's public folders. This works for user folders: (/etc/procmailrc) `* ^X-Spam-Status: Yes probably-spam` – Andy Jun 13 '14 at 16:51
  • The top Google hit is http://wiki2.dovecot.org/SharedMailboxes/Public -- did you read that? Is your configuration similar? How are you invoking Procmail for the public folders? You will need to add more details in order for this question to be answerable. – tripleee Jun 16 '14 at 05:01
  • Yes, that is the setup we are using. I'm invoking procmail through /etc/procmailrc. It looks like I can use something similiar to this: http://wiki2.dovecot.org/procmail. – Andy Jun 16 '14 at 09:56
  • So does that mean that you solved your problem already? – tripleee Jun 16 '14 at 13:09
  • No, I don't know how to make rules that separates mail to public folders and mail to users. I'm starting to believe this is not possible, since procmail don't know if the mail is going to a user, or a public folder.. – Andy Jun 16 '14 at 16:29

0 Answers0