iRedMail-scripts icon indicating copy to clipboard operation
iRedMail-scripts copied to clipboard

Please share detailed procedure to execute the scripts

Open pkmkrishnakumar opened this issue 3 years ago • 1 comments

pkmkrishnakumar avatar Dec 13 '22 16:12 pkmkrishnakumar

Sample procedure to add alias and mail accounts to it:

cd /iRedMail-scripts/Scripts

bash create-alias.sh [email protected] > output.sql

In another terminal , open maria db sql terminal using following steps.

mysql -uroot -p

Change to vmail DB

mysql> USE vmail;

Import output.sql to insert the command

mysql> SOURCE /root/iRedMail-scripts/Scripts/output.sql;

Exmaple:

Step 1 : Create alias (Group Mail ID as [email protected])

bash create-alias.sh [email protected] > output.sql

Step 2:

Go To DB Terminal:

mysql -uroot -p

USE vmail;

SOURCE /root/iRedMail-scripts/Scripts/output.sql;

Thats it Group Mail ID Created

Step 4:

Add user to Group Mail ID ([email protected]) - First User

bash add-user-to-alias.sh [email protected] [email protected] > output.sql

[email protected] - Second USer

bash add-user-to-alias.sh [email protected] [email protected] >> output.sql

The above command appends the each user to the same group in same sql

Finally after adding all users , import it into SQL Terminal

SOURCE /root/iRedMail-scripts/Scripts/output.sql;

Thats it !!!

Thanks Daulton for the SCripts it will be useful novice user like me :)

pkmkrishnakumar avatar Dec 13 '22 18:12 pkmkrishnakumar