1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

enable spam filter by default.

Discussion in 'Plesk for Linux - 8.x and Older' started by mysticav, Oct 12, 2007.

  1. mysticav

    mysticav Guest

    0
     
    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.
     
  2. Da Domain Masta

    Da Domain Masta Guest

    0
     
  3. mysticav

    mysticav Guest

    0
     
    Resource you requested cannot be found.

    Any other resource ?
     
  4. Filipe Miranda

    Filipe Miranda Guest

    0
     
  5. Filipe Miranda

    Filipe Miranda Guest

    0
     
    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,
     
  6. danliker

    danliker Silver Pleskian Plesk Certified Professional

    33
    43%
    Joined:
    Feb 15, 2006
    Messages:
    575
    Likes Received:
    0
    Location:
    Switzerland
    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"
     
  7. Filipe Miranda

    Filipe Miranda Guest

    0
     
    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
     
  8. danliker

    danliker Silver Pleskian Plesk Certified Professional

    33
    43%
    Joined:
    Feb 15, 2006
    Messages:
    575
    Likes Received:
    0
    Location:
    Switzerland
    Re: Not working

    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 ...
     
  9. Filipe Miranda

    Filipe Miranda Guest

    0
     
    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
     
  10. danliker

    danliker Silver Pleskian Plesk Certified Professional

    33
    43%
    Joined:
    Feb 15, 2006
    Messages:
    575
    Likes Received:
    0
    Location:
    Switzerland
    server -> event manager -> Add New Event Handler

    select "Mail account created" and add the command from above ...
     
  11. Filipe Miranda

    Filipe Miranda Guest

    0
     
    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?
     
  12. danliker

    danliker Silver Pleskian Plesk Certified Professional

    33
    43%
    Joined:
    Feb 15, 2006
    Messages:
    575
    Likes Received:
    0
    Location:
    Switzerland
    see my first post ...

    <new_mailname>
     
  13. mysticav

    mysticav Guest

    0
     
    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.
     
  14. Filipe Miranda

    Filipe Miranda Guest

    0
     
    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!!
     
  15. Filipe Miranda

    Filipe Miranda Guest

    0
     
    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!!!
     
Loading...