Email Server Setup Question

jmd

Verified User
Joined
Jun 5, 2013
Messages
9
Hi I have a rather noobish question, I seem to have overlooked something.

When I create a new user/domain in the reseller panel, the email is using their domain as the mail server. Shouldn't it be using the resellers? What have I overlooked here? (ie all new users use the same domain for their emails).

I have read and followed this: http://help.directadmin.com/item.php?id=16 (How to setup the Mail System) and all is ok.
da.jpg
 
It doesn't matter to the world; all that really matters is that the fqdn (mail.exampe.com) points to any IP# hosted on the server.

Generally hosting companies set up new domains to use their own domain name for mail. There's probably a way to change it if it's important to you, but it's standard to use the client domain and not the reseller domain.

It may become important if the user ends up with mail hosted elsewhere as you can't point reseller.example.com to (for example) Gmail servers, but you can point user.example.com to them.

Jeff
 
It doesn't matter to the world; all that really matters is that the fqdn (mail.exampe.com) points to any IP# hosted on the server.

True

Generally hosting companies set up new domains to use their own domain name for mail. There's probably a way to change it if it's important to you, but it's standard to use the client domain and not the reseller domain.

I understand, it just looks more professional setup using the reseller's domain, if it's uniform for all users, it's easier to support email issues.

Do you Jeff, or anyone have any idea on how to set this up, or where I should start looking?
 
I understand, it just looks more professional setup using the reseller's domain, if it's uniform for all users, it's easier to support email issues.
I've always found and believed the opposite, and I believe most webhosts show their user's domain name rather than their's.
Do you Jeff, or anyone have any idea on how to set this up, or where I should start looking?
Only serverwide, not on a per-reseller basis.

Serverwide you simply change the DNS template (don't forget to move it to the custom directory first) to shw the hostname instead of the variable.

If you need to change it for multiple resellers you can experiment with provisional settings in the template (I don't know if they'll work or not; search these forums to see if anyone else has done it), or with a script to run every time a domain is set up to change the line.

First method is cleaner if it can be done.

Jeff
 
I had same problem and now I experiment your first suggestion but it is not working quite effectively as I required, I think I need to do more research :(
 
Hello,

All settings for a new email account are stored here: /usr/local/data/templates/mail_settings.html

Note, the file with the settings is used only for displaying them after a new email account is added. They are not used for any other purposes.

Related: http://www.directadmin.com/features.php?id=469

You might want to add your custom PHP code to the template, so settings would be conditional with a dependency on resellers name (i.e. creator).

Related: http://www.directadmin.com/features.php?id=285

Remember to copy the file into /usr/local/directadmin/data/templates/custom before you modify it.

Related: http://www.directadmin.com/features.php?id=541

p.s. That's up to you to change DNS templates, if you need it.
 
Back
Top