Yes you can. That's what it's there for. You don't need to actually have a user with the name webmaster, sales or info. These do however, need to resolve to a real user on your system.
Because of the way smtp and pop3 work. This is a little hard to do. Once mail make it to your server, the domain part of the address gets stripped off and you are just left with the user name. The same is true for pop3. The way most MTA's, sendmail included, is to allow virtual names. The drawback is that each virtual name must resolve to a unique user name on your system. There is software out there that use their own user database but these cost anywhere from several hundred to a couple thousand dollars. The best a poor man can do is use something like the virtusertable. This way you can have something like the following:
webmaster@abc.com joe (joe is a system user)
webmaster@xyz.com jane@her-isp.com
You can have an unlimited amount of virtual users. The nice thing about this is they don't need a real account on your system. If you do have users that only need mail access, they can have a null home directory and no shell access. There is a ray of hope however. I'm looking into a program called VxMail (you can vind it at
). This program uses its own database and will handle multiple domains with common user names. It claims to be able to run under debian and redhat, but I haven't been able to compile it yet. The other problem I am having with it is most of the docs are in German so help is hard to find.I was also at sendmail.org an clicked on the link for "Sendmail-SQL project". If I come across something that will do the trick, I will post it here and in the sendmail forums.
Uh oh. If I understand this thread correctly, as I set up a server with Sendmail, I can't have multiple domains with the same username (john@domain1.com and john@domain2.com) on the same server? Please tell me it isn't so. Newposter
"Good judgment comes from experience. Experience comes from bad judgment."
If your are john and you want mail for both domains to go to you, then you have no problems. If there are 2 johns, then they will get each others mail depending on who pops theirs first. All mail for john@alldomains.com goes to /var/spool/mail/john. Right now the only way I can think of to get around it, is to create virtualusers and point them to unique user names or other e-mail addresses.
I am no expert on this issue but I host a few domains and have been trying to resolve this issue. I'm just passing on the information as I understand it.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.