-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

[EMAIL PROTECTED] wrote:
> If I do this then the user will not have the correct e-mail address in
> the upper right corner of the sqwebmail interface. The username is
> correct but the domain is my 'main' domain and not the domain I wish.
> Ie. I run 'domain1.org' (my main domain) and 'domain2.org'. I have a
> system account that I want to give an e-mail address on 'domain2.com',
> ie. '[EMAIL PROTECTED]'. When that user goes to
> http//www.domain2.com/courier/webmail he sees the sqwebmail login
> dialog. He logs in with only his userid (no domain) and that works fine
> (I have delete the 'logindomainlist' file). Now the user gets into
> sqwebmail, but sqwebmail shows that his e-mail address is
> '[EMAIL PROTECTED]'. I have not tried to send mail but I assumes he
> sends from '[EMAIL PROTECTED]' and not what I want '[EMAIL PROTECTED]'
> I am new to this stuff and I very much appreciate your help.

Happy to help.  You are correct that when users log into sqwebmail they
show up at your "main" domain, because they ARE all at your main domain.
 That what local domains are.  The email account isn't really
'[EMAIL PROTECTED]', it's 'user1 on your box.  And your box answers to
'domain1.com', 'domain2.com', etc.  But they are all really just users
on the box.

Fortunately, unless you have explicitly denied it, sqwebmail allows you
to set the FROM address in emails you send.  Click the "Create Message"
link and you'll see that the first line is the FROM: line, and you can
edit it.  So your users can set it to be whatever they want.

If you want to preset this for them to avoid confusion, then in each
user's Maildir, edit (or create it if doesn't exist) the file
'sqwebmail-config' and add "[EMAIL PROTECTED]" (or whatever is
appropriate for this user).  This will set the FROM address
automatically when they create a message.  They can still change it,
however, manually.  If they do, then whatever they change it to will
become the new default.

Spaces are not allowed in the "FROM=", so use "+20" in its place.  So
you could set [EMAIL PROTECTED]'s FROM line to be

FROM=USER+20TWO+20<[EMAIL PROTECTED]>

Which will show up as

From: USER TWO <[EMAIL PROTECTED]>

when they send an email.

This doesn't solve your problem of users seeing themselves as members of
the "main" domain instead of one of the other local domains when they
log into sqwebmail, but I don't think there's a way to change that
except to move to using hosted domains.

Enjoy!

Jeff Jansen
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGe+mfGfIHDMaiC9cRAqBkAJ9ZDqylqyrQRzcJx5QDrChJwLyEsgCfXmM1
ettgnLt5VZkcxhIHgK2qjWw=
=0UEF
-----END PGP SIGNATURE-----

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
courier-users mailing list
[email protected]
Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Reply via email to