You can do it with or without root shell access to your server. With root access it's easiest: You'll need to extract the email addresses into a file located at: /etc/virtual/DOMAIN-NAME/majordomo/lists/LIST-NAME
For example, if the name of our list is
[email protected], the file location will be:
/etc/virtual/example.com/majordomo/lists/mylist
Note that if you want to keep any of the addresses that are already on the list you'll have to append to the file. You can even do a merge as well, not copying in addresses you already have, depending on your PHP skills.
If you don't have root access to the server you'll need to create the list and then paste it into the DirectAdmin mailing list interface, or you can send an email to majordomo.
If this is a one-time project, just have your php program create a list of addresses, one line each, and then manually paste the output into your DirectAdmin mailing list interface. If you're going to be doing this more than once it may be a good idea to write a php program which will create an email and send it to majordomo as follows:
Code:
From: YOUR ADDRESS
To: [email protected][code]
With the body as followed (one line per address you're adding):
[code]approve PASSWORD subscribe LISTNAME EMAIL-ADDRESS
where PASSWORD is the list's administration password, LISTNAME is the name of the list (i.e.,
mylist, and EMAIL-ADDRESS is the email address you're adding.
If this is something you can't figure out how to do yourself then I and/or others can do it for you; check the Advertising sub-forum here and you'll see lots of people willing to help you as a commercial service. If contacting me please use my email address rather than a private message for fastest response.
If you're using Majorodmo (the list manager included in DirectAdmin by default) then you may want to see the
List-owner-info file which the creators of majordomo have published. You can get a generic copy of it (not customized for your list)
here (nobaloney.net).
Depending on your needs you may decide to use a more sophisticated mailing list. For an announce list there are some good solutions available in either Installatron or one of the other one-click installers if installed on your server. For a discussion list you might want to look at Mailman.
Jeff