Automatic user e-mail creation

R1Lover

Verified User
Joined
Feb 24, 2007
Messages
420
Why does DA automatically create an e-mail address that can't be changed for all users? Most times this is not the e-mail address the user wants and it's useless.

In this case it creates [email protected] for the admin account, while I use one domain name for all servers, this is causing [email protected] to be created on all servers.

Example

server1.domain.com - creates [email protected]

server2.domain.com - creates [email protected]

The problem here is I want all of these servers to send admin emails to one account at this same domain. ([email protected]) Each servers thinks it's hosting the domain.com address so I have to log into each one to recieve e-mails. I can't change the mx record as there are no domains on the servers yet as it's just pulling this info from the hostname I assume.

So is there a way to stop DA from creating these auto e-mail addresses and/or change the name of the default e-mail account for each user?

Just the ability to change this default account would be enough.

Thanks in advance.
 
After doing a little more research I have found that there isn't a way to change this without changing the complete username.

With that said, what is the best way to forward all e-mail to the default user to another address?

Thank you
 
Change the admin email address by going to the user level, clicking Site Summary / Statistics / Logs, then scroll down to the email area. Change your email and save.
 
Thank you, I just found that after the last post.

Now for the users who don't want the default e-mail created with their username, I just put a forward file in their folder and it seems to be working.
 
Thank you, I just found that after the last post.

Now for the users who don't want the default e-mail created with their username, I just put a forward file in their folder and it seems to be working.
anyway to automaticly create this with new users?

as many spam places usually go for the admin@ or webmaster@ or hostmaster@ which is usually default....
 
I guess there may be a way to write a script that automatically creates a .forward file with the e-mail address you put in there sign up page.

That would be sweet, I'm not a big coder so does anyone know how to create this? It would be perfect.

Great idea Martyn


A question though, does the forward file forward all e-mail for that user or just their [email protected] ??
 
I guess there may be a way to write a script that automatically creates a .forward file with the e-mail address you put in there sign up page.

That would be sweet, I'm not a big coder so does anyone know how to create this? It would be perfect.

Great idea Martyn


A question though, does the forward file forward all e-mail for that user or just their [email protected] ??
ideally directadmin need to make an option "Auto Setup default Email Addresses" Which i can untick :-D
 
I'm not sure that's an option though, maybe DA will comment on this?
 
I'm not sure that's an option though, maybe DA will comment on this?
should be easy, its only an <if> function...

think about it, when you make a new account "setup.new.account" script will run, within that script it makes the email address, all they need to do is put the if function around it e.g

<if=new.email.on.create>setup.new.account-email</if></else>(carry on)
 
The default email account is a unix thing and really doesn't have anything to do with DirectAdmin. Every unix system user has an email account for the username. So anytime you add a user an email account is also created. It doesn't matter if DirectAdmin is on the server or not.
 
You can't get away with just not telling users about the email account, or not providing it, because some server-based software will send email to the username address.

I don't like to use it, and I'd rather my clients don't use it.

You can have a post-create script which will add a .forward file to the username's home directory.

Then the question becomes How do you know to where to forward the email?

The answer is simply To whatever address the user supplies when setting up the account..

If you don't know how or where to create a .forward file, then you should probably use lthis as an exercise in figuring out how to google for answers; it's simple enough :).

Jeff
 
You can't get away with just not telling users about the email account, or not providing it, because some server-based software will send email to the username address.

I don't like to use it, and I'd rather my clients don't use it.

You can have a post-create script which will add a .forward file to the username's home directory.

Then the question becomes How do you know to where to forward the email?

The answer is simply To whatever address the user supplies when setting up the account..

If you don't know how or where to create a .forward file, then you should probably use lthis as an exercise in figuring out how to google for answers; it's simple enough :).

Jeff

If you create a forward to the account they used to sign up it will work just fine. This is what I have done and I see no issues with it do you?
 
No issues here. I thought that's what my rather verbose post actually suggested :).

Jeff
 
Back
Top