Why is user name-domain.com craeted along with name@domain.com in /etc/passwd ?

3 posts / 0 new
Last post
#1 Thu, 01/05/2012 - 23:33
hj

Why is user name-domain.com craeted along with name@domain.com in /etc/passwd ?

I create my users as name@domain.com. However, when I inspect /etc/passwd, I also see name-domain.com being created as well.

Thus there are 2 users entered into the passwd file for each one I create from virtualmin using the name@domain format.

Any idea why?

Fri, 01/06/2012 - 08:20
andreychek

Howdy,

Not all services (and in particular, Postfix) like dealing with users that have a @ in their name. To get around that issue, two users with the same uid/gid are created. That allows the services to work properly.

Check out the last question here, "What's the deal with @ in mailbox usernames":

http://www.virtualmin.com/documentation/email/faq

Sat, 01/07/2012 - 01:46 (Reply to #2)
hj

Thanks. I see.

I didn't realise there were issues with user@domain convention. I have some users using that convention because my current system is based on POSTFIX+MYSQL and it doesn't run into that issue. When I migrate to Virtualmin, I guess I need to be aware this in case anything goes wrong. It works though, so I'm not too fussed at the moment.

rgds hj

Topic locked