Importing numerous email accounts

Is there a way I can import name/account/passwords from a file? I have about 100 accounts to do and would like to avoid doing it one at a time. The users/domain currently have hostgator as a email service and are switching away from them to my MiaB. It’s ready to go but I would just like a way to import their current name/login/pw from a tab delimited file or the like.

There is a little utility:

/root/mailinabox/tools/mail.py

I would think you could write a simple bash script that would loop through your input file and use the above command to add the user, such as:

tools/mail.py user add user@domain.com [password]

2 Likes

or this?