• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • We are looking for U.S.-based freelancer or agency working with SEO or WordPress for a quick 30-min interviews to gather feedback on XOVI, a successful German SEO tool we’re looking to launch in the U.S.
    If you qualify and participate, you’ll receive a $30 Amazon gift card as a thank-you. Please apply here. Thanks for helping shape a better SEO product for agencies!
  • 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.

Question Prevent default creation of Plesk user when creating mailbox

Kaspar

API expert
Plesk Guru
Currently when creating a mailbox in Plesk the option "Can be used to log in to Plesk" is checked by default. Which for me isn't always preferable.

Schermafbeelding 2021-08-27 150127.png

Does anyone know if there is any setting to not have this option checked by default? An thus prevent the default creation of a Plesk user when creating a mailbox.
 
  • Like
Reactions: mow
Hello,
there is no known possibility to set it as default disabled in plesk, but you can run it via CLI:

Code:
plesk bin mail --create [email protected] -passwd "#_123244hjhdsf" -cp-access false -mailbox true
 
In fact, maybe you could use the Event Manager in Plesk: Create an event for "Mail account created"

Configure this event to execute plesk bin mail -u ${NEW_EMAIL} -cp-access false

Not sure if this will work, I haven't used Event Manager in a long time but may you'll have a look at the documentation:
and
 
Thnx @m3lezZ and @Monty, much apricated. However your suggestions will disable the mailbox user as Plesk user after it's already created. I am looking for an option to prevent a Plesk user being made in the first place when a new mailbox is created trough the GUI as a default. In some cases it might still be useful to have a mailbox user double as a Plesk user. So rather have this option checked by explicit choice of the user, not by default.

As a solution I've added this peace of Javascript to Plesk (in case anyone is interested).

JavaScript:
<script>
    let loginAsUser = document.getElementById("general-generalSection-loginAsUser");
    loginAsUser ? loginAsUser.checked = false : false;
</script>
 
Thnx @m3lezZ and @Monty, much apricated. However your suggestions will disable the mailbox user as Plesk user after it's already created. I am looking for an option to prevent a Plesk user being made in the first place when a new mailbox is created trough the GUI as a default. In some cases it might still be useful to have a mailbox user double as a Plesk user. So rather have this option checked by explicit choice of the user, not by default.

As a solution I've added this peace of Javascript to Plesk (in case anyone is interested).

JavaScript:
<script>
    let loginAsUser = document.getElementById("general-generalSection-loginAsUser");
    loginAsUser ? loginAsUser.checked = false : false;
</script>
how could i add this code?
 
Back
Top