Plesk bin spamassassin -u $mailbox -action move Ĭongratulations, you have now configured incoming spam filters with SpamAssassin. Plesk bin spamassassin -u $mailbox -status true If you want the same settings for all existing mail accounts on your Plesk server just run the following as root in SSH: for mailbox in $(plesk db -Ne"select as email from mail as m left join domains as d on m.dom_id=d.id") do Step 5: Enable SpamAssassin for all existing users (optional but recommended) In the field at Command you enter /usr/local/sbin/mail_create_post.shįrom now on whenever a new mail account is created the script /usr/local/sbin/mail_create_post.sh will enable SpamAssassin and change the setting for that user to move spam to the Spam folder. On the next page select the option Mail account created as Event. On the next page click on the button + Add Event Handler. View tab Tools & Resoucres and click on Event Manager. On the left pane, click Tools and Settings. 14.4.5 SpamAssassin Configuration Examples To File Spam to a Separate Folder To Add a Header Containing SpamAssassin Score to Spam Messages To Add the. Although there is some overhead in running and maintaining an. A MySQL database affords increased performance to SpamAssassin and message processing as it allows for concurrent access to the indexed database. Make this script executable: chmod 700 /usr/local/sbin/mail_create_post.sh Alternatively, SpamAssassin can be configured to use a dedicated MySQL back-end database on an MTA node to store its Bayes filtering data. We will save this script as /usr/local/sbin/mail_create_post.sh cat /usr/local/sbin/mail_create_post.sh This script will enable SpamAssassin and change the default action of rewriting the subject to moving the mail to the Spam folder. Step 4: Enable SpamAssassin by default for new users (optional but recommended)Ĭreate a new script on your server which will be called upon mailbox creation. Make following field blank: “Add the following text to the beginning of subject of each message recognized as spam” ![]() View tab Mail and open the Spam Filter settings by clicking on Spam Filter.Įnable “Switch on server-wide SpamAssassin spam filtering”Įnable “Switch on server-wide greylisting spam protection” (highly recommended)Įnable “Apply individual settings to spam filtering” On the left pane, click Tools and Settings. ![]() Step 2: Install SpamAssassin plesk installer -select-release-current -install-component spamassassin Step 3: Configure SpamAssassin Please read this article for instructions if you don’t know how to connect. You must be logged in via SSH as sudo or root user. A VPS, Budget Dedicated Server or Dedicated Server running Plesk Obsidian control panel.These articles will help with installing and configuring both. SpamAssassin in combination with ClamAV is considered a standard setup to protect against viruses and spam. In this article, we will describe how you can configure the incoming spam filter of SpamAssassin in Plesk.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |