Re: [courier-users] Multible Mail Domains

This is a discussion on Re: [courier-users] Multible Mail Domains within the Courier-Imap forums, part of the Mail Servers and Related category; -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 tps@netmaster.dk wrote: > If I do this then the user will not ...


Go Back   Usenet Forums > Mail Servers and Related > Courier-Imap

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 06-22-2007
Jeff Jansen
 
Posts: n/a
Default Re: [courier-users] Multible Mail Domains

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

tps@netmaster.dk 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. 'user2@domain2.com'. 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
> 'user2@domain1.com'. I have not tried to send mail but I assumes he
> sends from 'user2@domain1.com' and not what I want 'user2@domain2.com'
> 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
'user1@domain1.com', 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 "FROM=user2@domain.com" (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 user2@domain2.com's FROM line to be

FROM=USER+20TWO+20<user2@domain2.com>

Which will show up as

From: USER TWO <user2@domain.com>

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+mfGfIHDMaiC9cRAqBkAJ9ZDqylqyrQRzcJx5QDrC hJwLyEsgCfXmM1
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
courier-users@lists.sourceforge.net
Unsubscribe: https://lists.sourceforge.net/lists/.../courier-users
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 08:06 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0