Plesk & #8211; Enable spam and virus protection Global or Domain based

[fusion_builder_container hundred_percent = & #8220; no & #8220; equal_height_columns = #8220 NO #8220; menu_anchor = #8220; & #8220; hide_on_mobile = #8220; small-visibility, medium-visibility, large-visibility & #8220; class = & #8220; & #8220; id = & #8220; & #8220; background_color = #8220; & #8220; Background_Image = #8220; & #8220; background_position = & #8220; center center & #8220; background_repeat = #8220; no-repeat & #8220; fade = #8220 NO #8220; background_parallax = #8220; none & #8220; parallax_speed = #8220; 0.3 & #8243; video_mp4 = #8220; & #8220; video_webm = #8220; & #8220; video_ogv = #8220; & #8220; video_url = #8220; & #8220; video_aspect_ratio = #8220; 16: 9 & #8243; video_loop = #8220; yes & #8220; video_mute = #8220; yes & #8220; overlay_color = #8220; & #8220; video_preview_image = #8220; & #8220; border_size = #8220; & #8220; border_color = #8220; & #8220; border_style = #8220; solid & #8220; padding_top = #8220; & #8220; padding_bottom = #8220; & #8220; padding_left = #8220; & #8220; padding_right = & #8220; & #8220;] [fusion_builder_row] [fusion_builder_column type = & #8220; 1_1 & #8243; layout = & #8220; 1_1 & #8243; background_position = & #8220; left top & #8220; background_color = #8220; & #8220; border_size = #8220; & #8220; border_color = #8220; & #8220; border_style = #8220; solid & #8220; border_position = #8220; all & #8220; spacing = #8220; yes & #8220; Background_Image = #8220; & #8220; background_repeat = #8220; no-repeat & #8220; padding_top = #8220; & #8220; padding_right = #8220; & #8220; padding_bottom = #8220; & #8220; padding_left = #8220; & #8220; margin_top = #8220; 0px & #8220; margin_bottom = #8220; 0px & #8220; class = & #8220; & #8220; id = & #8220; & #8220; animation_type = #8220; & #8220; animation_speed = #8220; 0.3 & #8243; animation_direction = #8220; left & #8220; hide_on_mobile = #8220; small-visibility, medium-visibility, large-visibility & #8220; center_content = #8220 NO #8220; last = & #8220 NO #8220; min_height = #8220; & #8220; hover_type = #8220; none & #8220; link = & #8220; & #8220] [fusion_text]

question

How to enable spam filtering and virus protection for all mailboxes on a server or for a specific domain?

answer

Note: Before performing the following actions, connect to the server using SSH and make a backup copy of the psa database.

Use the following command to enable spam filtering and virus protection for all mailboxes on a server:

mysql -uadmin -p`cat /etc/psa/.psa.shadow `psa -NBe" select m.mail_name, d.name from mail as m left join domains as d on m.dom_id = d.id; " | while read ji; do / usr / local / psa / bin / mail -u $j "@" $i -antivirus inout; / usr / local / psa / bin / spamassassin -u $j @ $i -status true; echo ""; done

Use the following command to enable spam filtering and virus protection for all mailboxes in a particular domain (in this example, the domain is & #8222; example.com & #8220;):

mysql -uadmin -p`cat /etc/psa/.psa.shadow `psa -NBe" select m.mail_name, d.name from mail as m left join domains as d on m.dom_id = d.id where name = ' example.com '; " | while read ji; do / usr / local / psa / bin / mail -u $j "@" $i -antivirus inout; / usr / local / psa / bin / spamassassin -u $j @ $i -status true; echo ""; done

[/ Fusion_text] [/ fusion_builder_column] [/ fusion_builder_row] [/ fusion_builder_container]

en_USEnglish
de_DEDeutsch en_USEnglish
Scroll to Top