Setting some configuration for all email accounts
Hello,
I need to create 271 email accounts in a new cPanel account. I'll use /scripts/addpop in a script to do this.
But I want to change, for all email accounts, some extra configuration:
- Disable Plus Addressing
- Set "Open my inbox when I log in" by default, to user go directly to webmail (server has only Roundcube)
- (optional) Set default Roundcube auto-check time from 1 to 3 minutes
I can do scripts to change this, but I need to know where (files) to edit and set this.
Thanks a lot!
-
- Disable Plus Addressing
For plus addressing - you can't disable the actual plus addressing itself but you can disable automatic folder creation which will send emails sent to plus addresses to the INBOXSet "Open my inbox when I log in" by default, to user go directly to webmail (server has only Roundcube)
I answered this in another thread this morning I believe you commented on:(optional) Set default Roundcube auto-check time from 1 to 3 minutes
Can you explain what you mean by this?0 -
Thanks for your post, surely this is very helpful for creating the email ids. Keep updating about this. UNIX Operating System is the best for your pc. 0 -
Hello @cPanelLauren This "/home/$username/.cpanel/nvdata/user@domain_tld_default_webmail_app" resolve the "Open my inbox when I log in" for me. Thanks. About "Automatically Create Folders for Plus Addressing", you're right, I want to disable this using a script for all 271 accounts. About Roundcube, 1 minute is the default time to check for new email. I want to change to 3 minutes, using a script too, in all 271 email accounts. Thanks 0 -
About "Automatically Create Folders for Plus Addressing", you're right, I want to disable this using a script for all 271 accounts.
@Arvy the UAPI Function here should disable this for you: roundcube/roundcubemail0 -
Hello @cPanelLauren, perfect, the UAPI resolves. The 1->3 minutes in Roundcube is not so important. Thanks for your help! 0 -
Awesome!! I'm happy to hear this news :) Thanks for letting us know! 0 -
This "/home/$username/.cpanel/nvdata/user@domain_tld_default_webmail_app" resolve the "Open my inbox when I log in" for me. Thanks.
The file name is wrong/old. Now cPanel uses this file name:"/home/$username/.cpanel/nvdata/user@domain.tld_default_webmail_app"
It's ...@domain.tld... (and not ...@domain_tld...)0 -
In case of someone consider this useful, I've created a script to disable on all email accounts the functionality "Automatically Create Folders for Plus Addressing". I've tried to find a better way searching through the forum, but couldn't find it. I didn't spend much time to parse the output in a nice format. Although I would have seemed normal to have this functionality implemented in Whm and the option to allow you to set the default value of "Automatically Create Folders for Plus Addressing" to new accounts, but maybe the impact isn't known to everyone right now. #!/bin/bash function list_user_mailboxes() { uapi --user="${1}" Email list_pops 2>/dev/null | grep 'email:' 2>/dev/null | awk -F': ' '{print $2}' } function disable_bulk_mailbox_autocreate() { for user in $(users); do mailboxes=$(list_user_mailboxes ${user}) for email in ${mailboxes}; do uapi --user="$user" Email disable_mailbox_autocreate email="$email" done done } function users() { whmapi1 list_users | grep '\ - ' | awk -F'- ' '{print $2}' } disable_bulk_mailbox_autocreate0
Please sign in to leave a comment.
Comments
8 comments