Bulk email ID creation on Plesk

Bulk email ID creation on Plesk

Bulk email ID creation on Plesk

Follow the below steps to create Bulk Email ID on Plesk

1.Connect to the server via SSH/RDP.

2.Create a file mail.txt using any text editor with a list of mail addresses and passwords for it:

Note: Make sure that passwords comply with the current Password Strength Policy

Follow the instructions below for creating mailboxes from the mail.txt file

1. Download the attached script:

# wget https://support.plesk.com/hc/en-u s/article_attachments/360014711094/createmail_.tar.gz

2. Unpack the downloaded archive:

# tar -zxvf createmail_.tar.gz

3. Execute the script:

# ./createmail.sh mail.txt
Note: Other options like -mbox_quota, -aliases, -forwarding etc., can be added to the command plesk bin mail in the script. For details on using these options,check the documentation articles: for Linux and for Windows.

Retrieve Email forwarding details from the "psa" database.


Ref URL - https://talk.plesk.com/threads/display-through-command-line-mailbox-forwarding-addresses.352796/

Run the below command from the server's SSH to retrieve the details.
plesk db "SELECT concat(mail.mail_name,'@',domains.name) AS 'Email address',mail_redir.address AS 'Forward' FROM mail LEFT JOIN mail_redir ON mail.id=mail_redir.mn_id LEFT JOIN domains ON mail.dom_id=domains.id WHERE mail_redir.address <> ''"

+-----------------------------------+------------------------------------------------------------+
| Email address                     | Forward                                                                 |
+-----------------------------------+------------------------------------------------------------+
| ahana.c@shalimarcorp.in           | rahul@shalimarcorp.in                            |
| amazon@shalimarcorp.in            | rahul@shalimarcorp.in                           |
| anand.shaw@shalimarcorp.in        | aditya@shalimarcorp.in                      |
| ankana.de@shalimarcorp.in         | paramita.m@shalimarcorp.in              |
| anupam.kumar@shalimarcorp.in      | ravikant.kumar@shalimarcorp.in   |
| anuraag.seksaria@shalimarcorp.in  | sudip@shalimarcorp.in                   |
| arnabroy@shalimarcorp.in          | bishnupur.qc@shalimarcorp.in              |
| assam.acc@shalimarcorp.in         | sumit@shalimarcorp.in                        |
| assam.acc@shalimarcorp.in         | subhadeep@shalimarcorp.in             |

----------------------------------------------------------------------------------------------------


    • Related Articles

    • Create or delete a subdomain with Plesk

      Steps to create or delete a sub-domain Description: You have a website your-product.com dedicated to promoting and selling your product. For publishing information related to customer service and online order tracking, you can organize the subdomain ...
    • Important Plesk CLI Commands

      Important Plesk Linux CLI Commands If Plesk throws an error, these logs will help. /usr/local/psa/var/log /opt/psa/admin/logs /var/log/sw-cp-server/error_log /usr/local/psa/admin/logs/panel.log /usr/local/psa/admin/logs/httpsd_access_log ...
    • Create a mail id in Plesk

      Steps to create an email id in Plesk Description: Once your website is ready, you can start creating mail accounts. You can choose, for example, to create mail accounts for all users within your organization. Note that the number and size of ...
    • Whitelist, Blacklist Email IDs and Bounce options in Plesk Obsidian

      How to Email Address Whitelist or Blacklist in Plesk Step 01: Go to the Mail tab on the left panel and click on the email address. Step 02: Click on the Spam Filter tab. Step 03: Enable "Switch on spam filtering for this email address" and expand the ...
    • Configuring authenticated email form delivery with PHPMailer

      Objective: We have disabled the support for script through mails without authentication along with the up-gradation to Plesk. If a website uses a feedback or any mail sending script, then it has to be updated to ensure that it uses authenticated SMTP ...