Batch import users ##mysql
vi Batchimport.sh ##Create a script
#/bin/bash
cd /home/data/iRedmail/iRedMail-1.4.0/tools/ #This is the path to the tools tool directory. The path may not be the same for each server
bash create_mail_user_SQL.sh user1@domain '123456'>>/tmp/user. sql &#&&&&&&&& command sequence executor domain is your own domain name such as semi-home.com.
bash create_mail_user_SQL.sh user2@domain '123456'>>/tmp/user. sql &&” One user, one line, just change the mailbox and password
mysql -uroot -p****<EOF #**** is mysql password
USE vmail;
SOURCE /tmp/user.sql;
EOF
Execute Batchimport.sh with root privileges
tool resources
iredmail batch import users
Batch import users ##mysql vi Batchimport.sh ##Create scripts #/bin/bash cd / […]