• Inviting everyone who uses WordPress management tools in Plesk
    The Plesk team is conducting a 60-minute research session that includes an interview and a moderated usability test.
    To participate, please use this link .
    Your experience will help shape product decisions and ensure the tools better support real-world use cases.

Enable Spamassassin for all email accounts inside a domain

steavieleeking

New Pleskian
With plesk 9 there was a method to enable anti-spam to all email accounts inside a domain.
I think it was called group editing or something like that.

In plesk 10 i can't find that same option, there is no Modify button and the change settings button shows no anti-spam options.


thx.
 
Hi,

You could use the following command to do this on all mailboxes for a given domain:

for i in `mysql -uadmin -p\`cat /etc/psa/.psa.shadow\` -sNe "use psa; select concat(mail_name,'@',name) from mail m left join domains d on m.dom_id=d.id where name='<domain>'"`; do /usr/local/psa/bin/spamassassin --update $i -status true; done;

Thanks
 
Back
Top