Rewrite from address and display name

I use the messaging server:

Sun Java(tm) System Messaging Server 6.2-8.04 (built Feb 28 2007)

libimta.so 6.2-8.04 (built 19:20:35, Feb 28 2007)

SunOS sunmail 5.10 Generic_125101-01 i86pc i386 i86pc

I have 2 domain test.example.com e example.com.

I have 2 user giovanni@test.example.com and customer-service@example.com.

I want that when the user giovanni@test.example.com sent email to internet ( example to domain yahoo.com ) the mta rewrite the from address on customer-service@example.com. It's only when this user sent email to internet. It's possible ? I try to use the mailequivalentaddress but the problem that I must configure 2 profile on email client , i want that this configuration is trasparent for the final users.

Any Ideas ?

Bye Giovanni

[814 byte] By [giovanni.romaneghia] at [2007-11-27 3:11:59]
# 1

A reverse rewrite rule would rewrite the address all the time, but not just when sending to external addresses.

mailEquivalentaddress will not work, as no rewrite is involved.

mailAlternateAddress will cause rewrite, but, again, globally, not just for external sending.

I suspect that it will be far easier to configure the user's mail client to have two accounts, with different return addresses.

jay_plesseta at 2007-7-12 8:14:28 > top of Java-index,E-Mail, Calendar, & Collaboration,Sun Java System Messaging Server...