• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

enable spam filter by default.

M

mysticav

Guest
Every time an Email account is created, the spam filter is disabled by default. So, the user must enable it manually.

I want to set the spam filter automatically enabled everytime the user creates an email account.

Same case for Dr. antivirus.

Thanks.
 
Resource you requested cannot be found.

Any other resource ?
 
Not working

Hello,

I read the basics, and setup according to what's in the manual.

My Domain was create when the option Apply individual settings to spam filtering was checked.

I disabled this option, but the new e-mail accounts that I create all comes with spamassassin disabled.

Is there an issue? or I will have to recreate the domain? Or what's going on?

Thank you,
 
i think you need to make it with the "event manager"

try something like

/opt/psa/bin/mail.sh --update <new_mailname> -antivirus inout
and
/usr/local/psa/bin/spamassassin.sh --update <new_mailname> -status true -hits 5 -modify-subj false

on "Mail account created"
 
Not working

I think I did not myself clear,

What I asked is if I can make this default server wide! All e-mail accounts created on any domain part of any client should by default have enable antivirus and antispam.

What you told me does not answer that.
The suggestion you made is for handling email accounts individually.

What I needed is to have it enabled by default server wide.


Thank you,

Regards,
Filipe Miranda
 
Re: Not working

Originally posted by Filipe Miranda
e-mail accounts created on any domain part of any client should by default have enable antivirus and antispam.

that is what my description does ....

maybe read
/opt/psa/bin/mail.sh --help
/usr/local/psa/bin/spamassassin.sh --help

i do not know another way for doing that ...
 
Hmm...

I see what you mean now...

So what we have to find out what function is called when a new email account is create. If we find this then we can just add additional parameters to the commands you mentioned and that might do the job.

I just wish we had that available as a menu inside Plesk since its a feature that is often required.

Thanks,

Keep in touch if you find anything on that
 
server -> event manager -> Add New Event Handler

select "Mail account created" and add the command from above ...
 
Almost there

I see!!!!

But one piece is missing of this puzzle:

Is there any character expander that gets the name of the e-mail account being created ?

For example I would add to the event handler during an e-mail creation:

mail.sh %u -antivirus inout

%u does this expand to users? or the specific user that is being created?
 
i think you need to make it with the "event manager"

try something like

/opt/psa/bin/mail.sh --update <new_mailname> -antivirus inout
and
/usr/local/psa/bin/spamassassin.sh --update <new_mailname> -status true -hits 5 -modify-subj false

on "Mail account created"

I tried that and it activates the antispam, but the antivirus command is not working.

Also, how can I set the spam tag (*****SPAM*****) and the automatically delete spam ?

Thanks.
 
antivirus okay! spamassassin nope!

Hello!!!
The antivirus line worked just fine like you said!!! Thank you for that!!

The spamassasin did not work with the following line:
/usr/local/psa/bin/spamassassin.sh -u <new_mailname> -status true -hits 7 -modify-subj true

I get a message : Error: Some fields are empty or contain an improper value.

I did a --help and check the parameters and they seem to be okay....

Could you help me find out what's wrong with it???

Thank you very much!!
 
Success

Ops!!!

Sorry I found the reason!!!!

In the --help it says -hits <float>

So!! We should use 7.0 instead of 7

It worked!!!! Thanks a lot!!!!

This forum rules!!!
 
Back
Top