PDA

View Full Version : How can I use email addresses for usernames


skeeta
25th August 2005, 12:45
I have removed the username prefix as I want to use email addresses as usernames.
However, when I try to use an email address I get an error as "@" is not an accepted character.

Could you please guide me to which file/line needs modifying.

falko
25th August 2005, 13:55
You cannot use email addresses as usernames because email addresses aren't accepted by Linux as usernames. There's nothing you can do about it... :(

domino
25th August 2005, 14:03
I'm a bit confused here. As it stands, the current username for webmail is: web1_username@domain.com

If by removing the prefix web1_, wouldn't the username just be: username@ domain.com? WHich is completely acceptable with the two popular webmail clients, Horde and Squirrelmail.

falko
25th August 2005, 14:30
I'm a bit confused here. As it stands, the current username for webmail is: web1_username@domain.com

If by removing the prefix web1_, wouldn't the username just be: username@ domain.com? WHich is completely acceptable with the two popular webmail clients, Horde and Squirrelmail.

Yes, but skeeta is talking about system users; system users are the part before the @ sign. System users are the users you create in ISPConfig and who can then use FTP and email. The login for webmail is then [username]@[domain].

Bedevere
25th August 2005, 15:57
I think this whole set up is pretty good, but it is too bad that users of email readers (Outlook, etc) have to put in "web<number>_Username" for their log in. I too wish I could put "username@domain.com".

Along this line I saw a setting for the default prefix for domain accounts. maybe you could create an option to use a suffix instead or to use other fields...so instead of id number use the domain name for the real user name in the system, then you could have "user_domain" or even "domain_user" as the mail and ftp log in which would be more intuative for a user.

falko
25th August 2005, 18:23
I think this whole set up is pretty good, but it is too bad that users of email readers (Outlook, etc) have to put in "web<number>_Username" for their log in. I too wish I could put "username@domain.com".

Along this line I saw a setting for the default prefix for domain accounts. maybe you could create an option to use a suffix instead or to use other fields...so instead of id number use the domain name for the real user name in the system, then you could have "user_domain" or even "domain_user" as the mail and ftp log in which would be more intuative for a user.

Go to Management -> System Config -> Settings. On the tab ISP-Manager you will see the field User Prefix where you can specify a prefix for users. You can use one of the following placeholders:


[DOMAIN]
[HOST]
[WEBID]


If you don't want a prefix, just leave it blank.

till
25th August 2005, 21:14
I think this whole set up is pretty good, but it is too bad that users of email readers (Outlook, etc) have to put in "web<number>_Username" for their log in. I too wish I could put "username@domain.com".

Mailboxes are linux system user accounts in the current ISPConfig setup. An the "@" sign is not allowed in linux usernames.

willcee
27th November 2005, 22:33
good evening,

i also want to use the full email addresse instead of the system username (web#_username) to login to horde.
im asking me, why does it function in uebimail with the email address, and in horde it wont run?
must i set a config entry in horde, or do anybody no how to fix this?

does it run with just leave blank the user prefix?

sorry i dont really understand the answers above...

thanks for help

willcee

falko
27th November 2005, 22:51
im asking me, why does it function in uebimail with the email address, and in horde it wont run?

Because we tweaked Uebimiau so that it accepts email addresses.

willcee
28th November 2005, 00:22
o yes i see... but is it possible to tweak horde that it also accept email addresses?

i know its possible, my hosting provider also has horde an it accept email addresses.
or could it be that my provider has an other imap or pop server behind horde, who has its own users and do not use the system users?
thanks for all

falko
28th November 2005, 00:47
o yes i see... but is it possible to tweak horde that it also accept email addresses?
I think so - if you're good in programming. You have to look up the email address in the ISPConfig database and map it to the actual system user.


i know its possible, my hosting provider also has horde an it accept email addresses.
or could it be that my provider has an other imap or pop server behind horde, who has its own users and do not use the system users?
thanks for all
I guess your provider is using virtual email accounts, as described in this tutorial: http://www.howtoforge.com/virtual_postfix_mysql_quota_courier

rosa hsiao
1st December 2005, 07:36
Go to Management -> System Config -> Settings. On the tab ISP-Manager you will see the field User Prefix where you can specify a prefix for users. You can use one of the following placeholders:


[DOMAIN]
[HOST]
[WEBID]


If you don't want a prefix, just leave it blank.

If I have used ISPConfig for a few weeks and already created several websites by using Webid as prefix for users. Can I make any change to the users' prefix now? for example:

Management -> System Config -> Settings
change webid_ to testid_

Will ISPConifg change all the created website directory paths automatically from webXX_username to testXX_username?

falko
1st December 2005, 09:59
If I have used ISPConfig for a few weeks and already created several websites by using Webid as prefix for users. Can I make any change to the users' prefix now? for example:

Management -> System Config -> Settings
change webid_ to testid_

Will ISPConifg change all the created website directory paths automatically from webXX_username to testXX_username?
I wouldn't recommend it. You'll have inconsistent usernames (users with web<xx>_ and users with test<xx>_)!

rosa hsiao
1st December 2005, 10:32
I wouldn't recommend it. You'll have inconsistent usernames (users with web<xx>_ and users with test<xx>_)!

Can't you just write a bash file to replace all the related web<xx>_users with test<xx>_user? Or update database with phpmyadmin?

till
1st December 2005, 10:39
Can't you just write a bash file to replace all the related web<xx>_users with test<xx>_user? Or update database with phpmyadmin?

It will be very complicated. You will have to change the database, password, shadow and group files, postfix virtuasertable, permissins in the websites and the ISPConfig database.

rosa hsiao
2nd December 2005, 01:40
It will be very complicated. You will have to change the database, password, shadow and group files, postfix virtuasertable, permissins in the websites and the ISPConfig database.

I know it will be very complicated. But since all of them are text files except database,I do hope there will be someone to write a bash file to do the job automatically.

transops.net
17th December 2005, 11:52
I know it will be very complicated. But since all of them are text files except database,I do hope there will be someone to write a bash file to do the job automatically.

I agree that it would be nice to have a means of avoiding the issue of prefixes in user accounts, at least as far as webmail users are concerned. Let me take a look at your script request and see what can be done. What distro are you using?

willcee
20th December 2005, 16:20
so i think, we'll go back to my topic.

I guess your provider is using virtual email accounts, as described in this tutorial: http://www.howtoforge.com/virtual_postfix_mysql_quota_courier[/QUOTE]

Can i create these virtual email accounts with ISPconfig? or can ISPconfig only create system Users?

thanks for response

willcee

falko
20th December 2005, 16:44
Can i create these virtual email accounts with ISPconfig? or can ISPconfig only create system Users?

This will be possible in ISPConfig 3. Right now, ISPConfig can only create system users.

willcee
21st December 2005, 10:34
okay... thanks a lot!

so is there probably a release date of ISPconfig 3?

falko
21st December 2005, 10:57
Not yet...

willcee
21st December 2005, 11:28
okay... we'll see..! i think i schouldnt be a problem to make some changes in horde so that it accepts e-mail adresses!

If i understood this correct, i can enter the email adresse then i must make a SQL query to get the username, that fits to the entered email address. and give the username to the system. i would say its not so complicated as it seems?

thanks for all

falko
21st December 2005, 11:54
If i understood this correct, i can enter the email adresse then i must make a SQL query to get the username, that fits to the entered email address. and give the username to the system. i would say its not so complicated as it seems?

It's not that difficult. Have a look here: http://www.howtoforge.com/forums/showpost.php?p=9684&postcount=5

willcee
24th December 2005, 17:52
hi i tried to insert your code from above into horde IMP. and adapted the variable $f_email into $imapuser. so i think it should be possible to access IMP. Or does anyone know whether i must adapt some other things in the code?

when i want to submit my login informations in horde IMP i see the following errors.

Notice: Undefined index: s in /home/admispconfig/ispconfig/lib/config.inc.php on line 53

Fatal error: Cannot redeclare class db_mysql in /home/admispconfig/ispconfig/lib/classes/ispconfig_db_mysql.lib.php on line 32

do anyone know this error messages and can help me out?

falko
25th December 2005, 14:12
Notice: Undefined index: s in /home/admispconfig/ispconfig/lib/config.inc.php on line 53
This is just a notice, nothing serious. You should use a higher error level in your php.ini then that message will not appear anymore.


Fatal error: Cannot redeclare class db_mysql in /home/admispconfig/ispconfig/lib/classes/ispconfig_db_mysql.lib.php on line 32

It seems as if you've declared the db_mysql class somewhere earlier in your code.

willcee
28th December 2005, 15:12
It seems as if you've declared the db_mysql class somewhere earlier in your code.
but where? i cant find it. its a normal horde/Imp installation. an there i include the code you gave me above.
so there shouldnt be a class called db_mysql?!

thanks for all

willcee

falko
28th December 2005, 17:48
Maybe Horde also uses a class called db_mysql?

willcee
30th July 2006, 16:04
hi you all, its me again,

im now trying to set up virtual hosts, like described in the tutorial above. but it seems to me that only the server admin can set up email accounts using phpmyadmin. is there a way that users can set up email addresses by themselves?

cheers willcee

falko
31st July 2006, 16:06
You can write a PHP web application that allows you to do this. It gives you the freedom to tailor it to your needs. :)