Receiving admin email for different sites on one address

Boballoo

Verified User
Joined
Aug 31, 2005
Messages
62
I have 9 of my own sites which I have created using DirectAdmin. Each of these has the default "[email protected]" email address which I am unable to delete or change the password on. I don't know why this is the case but I accepted this as a DirectAdmin quirk. I use the admin address as the contact address for each of the sites. However, when I send a message to [email protected] and then check my mail at "[email protected]" I receive the message sent to the other site. It works the opposite way too or for any of the nine sites. How can I stop this? I think the problem is that the admin email password is the same for all the sites since I am unable to change this password but why would [email protected] get sent to [email protected]?

There is also the question of the way I set them up. I did not create any users or resellers and simply placed all my sites at the admin level since I have no need to resell or create users and the program allows me to do this (at least it works so far) Maybe I need to create a user and reseller but I don't know why when I have no intentions of using my server for anything but my own sites.
 
"admin" is a reserved system address and there is only one admin address on the server.

I'm not sure if setting up "admin" forwards for each site to another address would work or not; I haven't tested it.

Are all the sites set up under the administrator's user panel?

Jeff
 
Thanks for getting back to me Jim. I am new to DirectAdmin so maybe I am not doing things right.

jlasman said:
"admin" is a reserved system address and there is only one admin address on the server.
That is strange. Every site has an admin and should be allowed to have an admin email address. I have gotten around this by creating "[email protected]" addresses for each of my sites where "XX" is the first letter of each word in the site name.

I'm not sure if setting up "admin" forwards for each site to another address would work or not; I haven't tested it.
That isn't what I want to do but what was happening was that I had "admin" addresses for each of my sites and mail would be downloaded by the first "admin" address I checked no matter which address it was sent to.

Are all the sites set up under the administrator's user panel?
Yes. I am the only one using this server and have no need for resellers but maybe I don't understand the purpose of this function.
 
The main function of resellers and users is virtualization.

DId you create separate users, one domain for each?

Or one separate user under your admin reseller account, with all the domains?

Or did you just click on "user panel" from your admin account, and set up all the domains there?

If either of the two first above, you could have a separate admin mailbox. If the last one, you can't, because admin is the reserved mailbox name for that user.

Jeff
 
jlasman said:
Or did you just click on "user panel" from your admin account, and set up all the domains there?
Thanks for your help Jim.
That's what I did. I now have nine domains there and will be adding more. All my own. I can't see any need for creating users aside from the admin email issue but that has been solved and since they are all my domains I don't think I need to create any other users. However, if there is something I am missing I would like to know now (earlier would have been better but...) so I can change it before I add any more domains.
 
Boballoo said:
Thanks for your help Jim.
That's what I did. I now have nine domains there and will be adding more. All my own. I can't see any need for creating users aside from the admin email issue but that has been solved and since they are all my domains I don't think I need to create any other users. However, if there is something I am missing I would like to know now (earlier would have been better but...) so I can change it before I add any more domains.
I'd say create a seperate user for the domains you're using. The way I do it is I group similar domains together under one account (not being admin).

This way backup and restoring would be more specific (you can select which user to restore instead of x number of domains etc.)

Also the admin mail issue would be fixed.
 
Megalan-Robert said:
This way backup and restoring would be more specific (you can select which user to restore instead of x number of domains etc.)
Thanks for the specifics here but I am not sure I understand or see the benefits of this. I can back up and restore each of my sites at any time now. How would the above make it easier? Why would I want to back up or restore my sites using DirectAdmin? What exactly do you mean by back up and restore? I have backups made everyday of the sites' DBs. This is automatic. The sites are saved on my local machines' hard drives (three copies on three different machines.) The programmer also has a copy of each site.

My reluctance is due to the perceived hassle of switching all my sites to another user. That seems like a lot of work and maybe some down time for benefits I cannot see. (perhaps I don't understand the process involved in this well enough)
 
Boballoo said:
Thanks for the specifics here but I am not sure I understand or see the benefits of this. I can back up and restore each of my sites at any time now. How would the above make it easier? Why would I want to back up or restore my sites using DirectAdmin? What exactly do you mean by back up and restore? I have backups made everyday of the sites' DBs. This is automatic. The sites are saved on my local machines' hard drives (three copies on three different machines.) The programmer also has a copy of each site.

My reluctance is due to the perceived hassle of switching all my sites to another user. That seems like a lot of work and maybe some down time for benefits I cannot see. (perhaps I don't understand the process involved in this well enough)
If you're restoring your website that's ok, I'm talking about complete user restores. E-mail settings, domain redirects, ftp accounts etc.

But if it's working currently, never change a winning team :D
 
Megalan-Robert said:
If you're restoring your website that's ok, I'm talking about complete user restores. E-mail settings, domain redirects, ftp accounts etc.
Sorry to keep on about this but I am just learning the workings of DA so your help is appreciated. I am still not sure how creating different users would help in the back up of the settings etc. I can still back up what is there now can't I? I can't envision a scenario where I would lose the settings for one user but not the others. I can see how I might lose them all but then I would have to restore them all and create new users again (If the server crashed). Maybe I am missing something?
But if it's working currently, never change a winning team :D
I am thinking the same thing. That's why I am hesitating to make any changes. It is working fine now that I have the admin email address problem solved so I would rather not touch it BUT if there is something I am missing that will make things difficult for me in the future with the way I have it set up then I would like to know and make the changes now before I get too far down the road and have additional sites that will need to be changed aside from the 9 sites I have there already.
 
The source of your admin problem is:

In the alias file for each domain, DA creates an alias for the domain owmer:
owner: owner

This forwarder essentially says all mail addressed to "[email protected]" will forward to user id "owner". Therefore, the reason you have admin as an address for all of your domains is that you configured your domains as owned by user admin. You may be able to solve the problem by manually editing the alias file for each domain and changing the admin forwarder to forward to a different user or to another email address. I am not sure because I haven't tried. The DA virtual POP for the owning user may interfere. I avoided the problem because I created a special user id and placed all of my domains under that user id. The forwarder for this id doesn't really matter, because it receives no email unless I send to it. I would recommend never having user admin own any domains except the master domain. (Actually, I would like to change the owner of that domain as well)

In the simplest of all possible worlds, an email address like [email protected] would end up in the mailbox of user Joe at the domain somedomain.com. However, MTAs let you route mail any way you like, so this model is long outdated. I personally N-E-V-E-R disclose my user ids as email addresses. I always use aliases as email addresses. The owning userid of my domains is never known by anybody outside my system, so does not receive email unless I send email to it. DA complicates the picture somewhat with virtual POP accounts. I don't use POP for email and I discovered after some experimentation that my IMAP client does not like DA virtual POPs, so I threw away all of the virtual POPs I had created, and instead created for IMAP purposes a set of actual user accounts (using the shell adduser command). (Again, these users are known only inside my system) Therefore, I have no experience to share with respect to how forwarding behaves with virtual POPs.

DA will only configure forwarders to email addresses. It will not allow you to configure a forwarder that forwards to a user account other than the domain owner. To get around this I configured forwarders that forward from [email protected] to a fictitious email address like [email protected]. Forwarders for domain1 are stored in file \etc\virtual\domain1.com\aliases. I inserted this entry in alphabetic order into this file:
fictitious: ActualUser1, ActualUser2

As a result of these settings, Exim follows the forwarding chain [[email protected]] --> [[email protected]] --> [ActualUser1,ActualUser2]. Where ActualUser1 and ActualUser2 are user accounts that I want to receive email addressed to [email protected]. Using this technique you can direct any email address to any userid(s). The advantage of the intermediary "fictitious", is that you can use DA to forward other email addresses to the same userid(s).

Also using this technique, you can route [email protected] and [email protected] to different mailboxes. (At least you can if the owning user is not user admin) DA will not complain about entries forwarded to users but it will not allow you to edit them. (Actually, I am getting so much spam sent to admin at each domain that I may just forward it to ":fail:" and give out a more unique alias for admin purposes.)

Hope this all helps someone.

I am using DA on a Fedora server running Exim as the MTA. If you are using something else, you may have to salt to taste.

PS: I am not quite sure why DA will not configure a forwarder to a userid other than the owner of the domain. However, I think it should at least allow administrative users to create this kind of forwarder. Manual editing of the aliases file gets around the problem, but is a small PITA.
 
Back
Top