• Halloween is coming! To celebrate the occasion, we dusted off a couple of old skins, and even created a brand new one (Pixel).
    To get into the festive spirit, install the Skins extension.
  • The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • The Plesk Mobile apps for iOS and Android and the Plesk Mobile Center extension have been deprecated, and are no longer available for new installations. In Plesk Obsidian 18.0.84, the Plesk Mobile Center extension will be removed from servers during the upgrade, and the Plesk Mobile apps will lose their server management features.
  • The Social Login extension has been deprecated and will be removed in Plesk Obsidian 18.0.84. After that, it will no longer be possible to log in to Plesk with a Google, Facebook, GitHub account, or with a passkey. Plesk usernames and passwords, as well as logging in with a WebPros Account, are not affected.

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