Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Multi Domain and different email address 1

Status
Not open for further replies.

murphyc

Programmer
Sep 6, 2002
25
HK
- Domain
adomain.com, bdomain.com.

- User
user1, user2

- Address
apple@adomain.com > user1
apple@bdomain.com > user2

How to setup this config?

Thanks

 

Hi,
first you have to make sure you have the two lines

sender_canonical_maps = hash:/usr/local/etc/postfix/sender_canonical
virtual_alias_maps = hash:/usr/local/etc/postfix/virtual

in your main.cf. The first line is pointing to the rewrite outgoing addresses rules and the second is pointing to the incoming maps.

Then you have to create sender_canonical like:

username email@address
user1 apple@adomain.com
user2 apple@bdomain.com

And your virtual file would be:

adomain.com DOMAIN
apple@adomain.com user1
apple@bdomain.com user2

After creating the two files you create the maps by running

postmap sender_canonical
postmap virtual

and you're good to go.

Cheers


Henrik Morsing
Certified AIX 4.3 Systems Administration
& p690 Technical Support
 
Now, the user1 and user2 use squirrelmail to send out a email. These 2 email account same display apple@adomain.com on email sender field. The correct address is user1 = apple@adomain.com, user2 = apple@bdomain.com. How to solve this problem? %-)

Thanks
 
Using squirrelmail, go to options/personal information and check/change/or make the correct entry.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top