PDA

View Full Version : Username = email address?


DeCSS
2007-08-29, 05:27 PM CDT
I have a Blackberry and I am trying to point it to my new mail server. Problem is, when I do it fails to authenticate. Why? Because AT&T Blackberry automatically uses your email address as your username and will not allow you to change it. So, if my email is "john@mycompany.com" the username name becomes "john@mycompany.com", but it needs to be just "john" for linux to authenticate it. What can I do?

Thanks!

Dies
2007-08-29, 05:34 PM CDT
This might be dumb....but couldn't you just create a user "john@mycompany.com" for this purpose ?

DeCSS
2007-08-29, 05:40 PM CDT
I really doubt it because that would make the email address "john@mycompany.com@mycompany.com". Anyone have any other suggestions?

Dies
2007-08-29, 05:51 PM CDT
I really doubt it because that would make the email address "john@mycompany.com@mycompany.com". Anyone have any other suggestions?

......huh?

If you make a user on your linux machine named "john@mycompany.com" it becomes "john@mycompany.com@mycompany.com" :confused:

I'm probably just not understanding what you need to do so hopefully someone else has a solution for you.

DeCSS
2007-08-29, 06:02 PM CDT
Lol. Sorry if you misunderstood. Maybe I said that wrong. What I meant is, when I create a user named "john" it automatically appends the "mycompany.com" to his email address becoming "john@mycompany.com". So, if I were to create a user named "john@mycompany.com" would it not (technically) append "mycompany.com" to that making it "john@mycompany.com@mycompany.com"?

Hope everyone understood that :p

P.S. I attempted to create a "john@mycompany.com" user account, and it says the @ character is invalid and will not create the account. So, that will not work :(

Dies
2007-08-29, 07:36 PM CDT
P.S. I attempted to create a "john@mycompany.com" user account, and it says the @ character is invalid and will not create the account. So, that will not work :(

O.K. that's why I said it might be a dumb idea :D

There has to be a way to allow that in the server config. Hopefully one of our members that does it for a living can point you in the right direction.

GSmith
2007-08-30, 11:44 AM CDT
Would be interesting to see the solution. I'm getting a blackberry perl in mid Sept.

pete_1967
2007-08-30, 04:39 PM CDT
Lol. Sorry if you misunderstood. Maybe I said that wrong. What I meant is, when I create a user named "john" it automatically appends the "mycompany.com" to his email address becoming "john@mycompany.com". So, if I were to create a user named "john@mycompany.com" would it not (technically) append "mycompany.com" to that making it "john@mycompany.com@mycompany.com"?

Hope everyone understood that :p

P.S. I attempted to create a "john@mycompany.com" user account, and it says the @ character is invalid and will not create the account. So, that will not work :(
[edit again]
Actually, it still could work:


First: remember to back up both /etc/passwd and /etc/shadow first!!!!

You can't use GUI to do this, you have to manually edit your /etc/passwd and /etc/shadow file

add user john@mydomain.com on it, if you want, you can copy your password in /etc/shadow to john@mydomain.com or create new one.

Then create the user 'john' in Blackberry and since it appends that name with '@mydomain.com' you have correct user and login for that account.

Just remember that by default 'john@mydomain.com' will get email address john@mydomain.com@mydomain.com but that's only if you logon to server with that username and use it to do thingies on server.

In the end of the day, you ain't going to lose anything by trying above.

Strictly speaking '@' or any other symbol is not illegal character in username, it's just that programs using that name for their purposes may get screwed but in your case, all you'll be doing is using it as login name.
[/edit again]

DeCSS
2007-08-30, 10:12 PM CDT
:D Okay everyone... here is the solution! I tried what you said pete_1967 right before you posted that, but unfortunately it did not work. As a matter of fact, nothing worked. The only viable solution is creating virtual aliases with MySQL, but I wasn't about to go through all that. So, here's what I did:

1.) Deleted my email account on mycingular.blackberry.com.
2.) Created a FREE "john@mycingular.blackberry.net" account.
3.) Created an alias in /etc/aliases (john: john,john@mycingular.blackberry.net", which will send all email to my account as well as my blackberry account.
4.) On mycingular.blackberry.com, I set the "reply to" address as my regular Linux Mail Server email account. This way when people reply to my emails from my Blackberry they actually get sent to my Mail Server account, which also sends to my Blackberry account.

Done and done!

Thanks for all the help!!!

GSmith
2007-08-31, 06:08 AM CDT
That's cool...!