views:

246

answers:

4

I was wondering how to auto generate a user email accounts in Drupal? I do not have a host currently but am trying to get my head around how this would be done.

+1  A: 

The Postfix mail server allows you to use a set of MySQL tables to set up mail accounts. With a little bit of custom coding against hook_user(), you could have new users get added to your Postfix tables and thus have e-mail addresses all nicely setup ready to go.

ceejayoz
A: 

The other way you could do it is by using exec on your local server to run a script which adds a mail account. It really depends on your server environment.

cam8001
A: 

Drupal is not an email server - hence you must connect Drupal to an email server in some way, most likely through the use of a custom module.

HipHop-opatamus
+1  A: 

There is a Drupal module for that: http://drupal.org/project/mailfix

Doka

Doka