Please do not reply privately to me.

On Wed, Dec 06, 2006 at 09:26:05AM -0000, Paul Dabbs wrote:
> >How you do this depends on the authentication module you are using, and
> you gave absolutely no details on how your system is set up for
> authentication.
> >
> >For example, if you are using authuserdb then you can put whatever
> usernames you like in the file, with or without domains.
> >
> >Or working the other way round, you can also use the DEFDOMAIN option
> to append a domain of your choice to logins which don't include a
> domain.
> >
> >Brian.
> 
> 
> 
> Thanks for you reply, apologies for the lack of info, I quickly posted
> from work! Initially I only wanted general information, rather than
> installation specific, but as you correctly guessed, that has quickly
> changed!
> 
> I am using authmysql, which successfully connects to a mysql database
> and gathers the relevant user/password combination. However the problem
> I am having is as follows:
> 
> With Thunderbird set to use mail.domain.com, for both imap and smtp, it
> sends [EMAIL PROTECTED], rather than [EMAIL PROTECTED] (which is the
> email address stored in the database), so authentication fails due to
> bad username.

Well, in the first place this is a client configuration issue. You could
just configure your Thunderbird client with IMAP username set to
"[EMAIL PROTECTED]"

> I want to be able to do both things I asked above, ie if a
> user logs in with just a user name then append @domain.com to the name,

See DEFDOMAIN in the pop3d/imapd config files

> or if the user logs in with [EMAIL PROTECTED], then rewrite the
> address as [EMAIL PROTECTED] before the address is authenticated against
> the database.

So you want the same user to be able to login with two different E-mail
addresses? Then you can put two different entries in your mysql database for
each user; or you can use a custom SQL query in authmysqlrc to perform the
mapping.

> 
> Sorry if I am not giving you enough info, but I'm fairly new to linux
> server configuration!
> 
> If it helps, I used the following guide to set up my server:
> http://flurdy.com/docs/postfix/
> 

Brian.

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Courier-imap mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-imap

Reply via email to