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

