• The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Antivirus not enabled when using CLI

das_d

New Pleskian
Hey there!

when trying to add several useraccounts to our mail domain using the cli, we have a problem enabling the antivirus. We add user with the following CLI command, the antivirus flag is set.

/usr/local/psa/bin/mail --create [email protected] -mailbox true -antivirus inout -passwd yourpassword -cp-access true

But when we got to the web interface and select the newly created user, the antivirus is still disabled for him and has to be enabled manually. Is this a known problem? Or is there any other way to automatically enable antivirus than using the "-antivirus" flag? Because we 're talking about more than 100 users it would take a lot of time enabling the AV manually for each of them..

We 're running 12.0.18 Update Nr. 29


Thank you in advance!
 
I have checked this issue and can confirm this behaviour despite this message in creation log:

# /usr/local/psa/bin/mail --create [email protected]12-0.demo.pp.plesk.ru -mailbox true -antivirus inout -passwd yourpassword -cp-access true
[2014-12-30 11:50:12] DEBUG [util_exec] [4e5893a6580a79c200557b426419374a][0] Starting: mailmng-core --add-mailname --domain-name=damoredibbert.ppu12-0.demo.pp.plesk.ru --mailname=mailw2
[2014-12-30 11:50:12] DEBUG [util_exec] [4e5893a6580a79c200557b426419374a][0] Finished in 0.14975s, Error code: 0
[2014-12-30 11:50:12] DEBUG [util_exec] [ff09d7eae502c9ad5410c46e398ec4ce][0] Starting: mailmng-outgoing --add-mailname --domain-name=damoredibbert.ppu12-0.demo.pp.plesk.ru --mailname=mailw2 --out-limit=10
[2014-12-30 11:50:12] DEBUG [util_exec] [ff09d7eae502c9ad5410c46e398ec4ce][0] Finished in 0.28971s, Error code: 0
[2014-12-30 11:50:13] DEBUG [util_exec] [3a0a451fe08810dbdcdd91d3c1876c2d][0] Starting: mailmng-core --add-mailbox --domain-name=damoredibbert.ppu12-0.demo.pp.plesk.ru --mailname=mailw2
[2014-12-30 11:50:13] DEBUG [util_exec] [3a0a451fe08810dbdcdd91d3c1876c2d][0] Finished in 0.11507s, Error code: 0
[2014-12-30 11:50:13] DEBUG [util_exec] [ffbdb63944090ab4628cc6de76353cc0][0] Starting: drwebmng --status
[2014-12-30 11:50:13] DEBUG [util_exec] [ffbdb63944090ab4628cc6de76353cc0][0] Finished in 0.0042s, Error code: 0
[2014-12-30 11:50:13] DEBUG [util_exec] [67149a59e660d6e9d3286c96687c9e2e][0] Starting: drwebmng --add-check --mailname=[email protected]12-0.demo.pp.plesk.ru --type=any
[2014-12-30 11:50:13] DEBUG [util_exec] [67149a59e660d6e9d3286c96687c9e2e][0] Finished in 0.09384s, Error code: 0

SUCCESS: Creation of mailname '[email protected]12-0.demo.pp.plesk.ru' complete

Looks like bug. I will notify developers.
As possible workaround you can run additional command like:

# /usr/local/psa/bin/mail -u [email protected]12-0.demo.pp.plesk.ru -antivirus inout

It will enable antivirus for mailbox. Or use this script for mass update of all your mailboxes:

# for i in `mysql -uadmin -p\`cat /etc/psa/.psa.shadow\` psa -Ns -e "select concat(mail.mail_name,\"@\",domains.name) as address from mail,domains,accounts where mail.dom_id=domains.id and mail.account_id=accounts.id order by address"`; do /usr/local/psa/bin/mail -u $i -antivirus inout; done
 
Back
Top