10 messages in net.sourceforge.lists.courier-usersRe: [courier-users] Multible Mail Dom...
FromSent OnAttachments
tp...@netmaster.dkJun 21, 2007 12:47 am 
Sam VarshavchikJun 21, 2007 3:58 am 
tp...@netmaster.dkJun 21, 2007 5:15 am 
ScottJun 21, 2007 8:32 am 
Jeff JansenJun 21, 2007 7:50 pm 
tp...@netmaster.dkJun 22, 2007 12:26 am 
Jeff JansenJun 22, 2007 3:25 am 
tp...@netmaster.dkJun 22, 2007 3:40 am 
Jeff JansenJun 22, 2007 8:23 am 
tp...@netmaster.dkJun 24, 2007 11:07 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Re: [courier-users] Multible Mail DomainsActions...
From:tp...@netmaster.dk (tp@netmaster.dk)
Date:Jun 24, 2007 11:07:04 am
List:net.sourceforge.lists.courier-users

Jeff Jansen writes:

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

tp@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. 'use@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 'use@domain1.com'. I have not tried to send mail but I assumes he sends from 'use@domain1.com' and not what I want 'use@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 'use@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=use@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 use@domain2.com's FROM line to be

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

Which will show up as

From: USER TWO <use@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+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 cour@lists.sourceforge.net Unsubscribe: https://lists.sourceforge.net/lists/listinfo/courier-users

Hi Jeff

Thanks.

Your help is appreciated.

Your write:

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.

I might consider moving to hosted domains once in the future.

Thanks

Venlig hilsen Thomas Seilund Løkketoften 46 2625 Vallensbæk