Using email address as login name

Paul Kreiner deacon at thedeacon.org
Thu Oct 16 19:14:07 EDT 2003


Avtar Gill wrote:
>Gerard Ceraso wrote:
>> I have seen some places where the login name for the email would be
>> name at server.com so for example if I wanted to login my login for this
>> account would be gerard at devslash.org. How is this done with cyrus, I
>> tried and it didn't work. Am I missing something? Is it possible with
>> cyrus?
>
>It's possible with version 2.2, you can log in using the default domain 
>that Cyrus is configured for (user at defaultdomain.com) or any virtual 
>domain (user at virtualdomain.com).

If you want your username to contain an '@' sign, you need to patch SASL to 
make this work, otherwise you'll get '(-13) NO User does not exist' errors or 
something (forget the message off the top of my head).  This is because SASL 
internally uses the '@' character to delimit the SASL realm from the 
username, which messes up your authentication scheme.

I've got this exact setup running at three sites in 2.1 and 2.2, with logins 
of the form 'username at domain1.com', 'username at domain2.com', etc.  It's a 
little bit of a hack, but it works for me.  I definitely recommend using 2.2 
-- it makes some of the other virtual domain stuff quite a bit easier/better.





More information about the Info-cyrus mailing list