DER Management

September 14, 2007

Manually mass adding users to qmail or vpopmail

Filed under: MTA, Scripts, email, ezmlm, qmail, vpopmail — daver @ 11:41 am

I was surprised that documentation is so sparse on the ‘net on how to manually mass add users to ezmlm for qmail or vpopmail.

 Let’s assume you’ve create a list called mylist@example.com

Let’s also assume you have a text file called “ezmlmusers-add.txt” that contains the new users you want to add with one full email address per line.

On linux, you can use this bash script to add that list:

=================================================================

#!/bin/sh

for name in $(cat ./ezmlmusers-add.txt)
do
        /usr/local/bin/ezmlm/ezmlm-sub /home/vpopmail/domains/example.com/mylist/ $name
done
====================================================

This works to manually mass add a list of formatted names to your ezmlm list. 

It obviously needs to be based upon a clean list file. 

No Comments

No comments yet.

RSS feed for comments on this post. TrackBack URL

Sorry, the comment form is closed at this time.

Powered by WordPress