Hi i am migrating my old vpopmail installation to ispconfig. i have written a basic php script to help me with the migration of domains, users, forwards etc, without big error checks etc, it's just for my internal use and not yet finished. you can check it out at github: https://github.com/kosli/vpopmail2ispconfig now i run into a domain that has mail addresses with a leading underscore ("_"). i can not add this users to iscponfig because in /usr/local/ispconfig/interface/web/mail/form/mail_user.tform.php there is the follwing regex check (line 110): '/^[a-z0-9][\w\.\-_\+@]{1,63}$/' i don't like mail address with an underscore at the beginning, but still they seem to be valid (e.g. http://stackoverflow.com/questions/9200881/leading-underscores-in-an-email-address ). could i safely extend the regex to accept an underscore at the beginning or will that have some other implications or limitations? thanks greets KoS
Yes, you can extend the regex. I will add the underscore in the default regex as well. I was not aare that it is allowed in this place. The regex you refer to is for the login fiels, not the amila address.
i have changed the regex to Code: '/^[a-z0-9_][\w\.\-_\+@]{1,63}$/' and it works like expected. (mails for that address are accepted by postfix etc). (and yes, i use the email address as login, always )