Change DISPLAY NAME

I install this messaging :

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

My problem is:

When user send email to internet user ( ex: yahoo.com or gmail.com etc. ) the messaging. must change the DISPLAY NAME with other DISPLAY.

ex: from: Giovanni <giovanni@test.com>

on

from: External Mail <service@test.com>

I try with CONVERSION channel but it's change only body of mail.

### mappings

CONVERSION

IN-CHAN=tcp_*;OUT-CHAN=tcp_*;CONVERT Yes

### Conversion

! Append disclaimer to single part messages if the body part

! is text.

!

in-channel=tcp_*; out-channel=tcp_*;

in-type=text; in-subtype=*; part-number=1;

parameter-symbol-0=NAME; parameter-copy-0=*;

dparameter-symbol-0=FILENAME; dparameter-copy-0=*;

message-header-file=2; original-header-file=1;

override-header-file=0;

command="/opt/iplanet/sitescripts/change.sh footer.txt"

!

! Append disclaimer only to the first part of a multipart message

! if that part is a text message part. (part-number=1.1 is the

! first part of a multipart message).

!

in-channel=tcp_*; out-channel=tcp_*;

in-type=text; in-subtype=*; part-number=1.1;

parameter-symbol-0=NAME; parameter-copy-0=*;

dparameter-symbol-0=FILENAME; dparameter-copy-0=*;

message-header-file=2; original-header-file=1;

override-header-file=0;

command="/opt/iplanet/sitescripts/change.sh footer.txt"

!

### Script Change.sh

Change $MESSAGE_HEADERS

cat NEW_MESSAGE_HEADERS > $MESSAGE_HEADERS

But don't work.....

I try with reverse mapping but change only email address don't change display name

#### mappings

REVERSE

*|tcp_local|giovanni@test.com$D$Y"NEW DISPLAY"service@test.com

I try with sieve filter but I don't know how change FROM.

### imta.cnf

tcp_local destinationfilter file:///opt/SUNWmsgsr/config/invia.filter

What is the correct way ? There are other way ?

It's possible change the Display Name ?

Thank's

Giovanni

[2304 byte] By [giovanni.romaneghia] at [2007-11-27 3:56:30]
# 1

Hi,

> My problem is:

> When user send email to internet user ( ex: yahoo.com

> or gmail.com etc. ) the messaging. must change the

> DISPLAY NAME with other DISPLAY.

> ex: from: Giovanni <giovanni@test.com>

>on

> : External Mail <service@test.com>

>

> I try with CONVERSION channel but it's change only

> body of mail.

Correct, the conversion channel only deals with MIME body parts and not the email headers themselves.

> I try with reverse mapping but change only email

> address don't change display name

> #### mappings

> REVERSE

> *|tcp_local|giovanni@test.com$D$Y"NEW

> DISPLAY"service@test.com

Haven't tried this myself but will take your word for it.

> I try with sieve filter but I don't know how change

> FROM.

> ### imta.cnf

> tcp_local destinationfilter

> file:///opt/SUNWmsgsr/config/invia.filter

With 6.3 you could use the deleteheader/addheader to remove the From: and replace it with something else - this ability doesn't exist in 6.2.

> What is the correct way ? There are other way ?

> It's possible change the Display Name ?

Yes.

You can change the display name by using the PERSONAL_NAMES mapping table.

For example to change the following on outgoing email (via tcp_local):

From: Shane Hjorth <Shane.Hjorth@sun.com>

to

From: What The <Shane.Hjorth@sun.com>

1) Add the personalmap keyword to the tcp_local channel

2) Add the following mapping table to the mappings file:

PERSONAL_NAMES

*|shane.hjorth@sun.com$YWhat$ The

3) Rebuild config

./imsimta cnbuild; ./imsimta restart

This is all explained in the messaging server admin guide "Handling Personal Names in Address Header Lines".

Regards,

Shane.

shane_hjortha at 2007-7-12 9:00:43 > top of Java-index,E-Mail, Calendar, & Collaboration,Sun Java System Messaging Server...
# 2
With PERSONAL_NAMES work !!!! Thank's I add this in tcp_local channel personalmapon mappings PERSONAL_NAMES *|servizio-edp@test.it $YEdp$ Service$ TESTBye Giovanni
tecnicih3ga at 2007-7-12 9:00:43 > top of Java-index,E-Mail, Calendar, & Collaboration,Sun Java System Messaging Server...