Return Path should be of Authenticate User

Hello to all Sun Gurus

We are using Sun JES6. We are facing problem as when we send any mail, using any other email id like xyz@yahoo.com, through local SMTP OUT server. In mail header it shows xyz@yahoo.com as return path. Which is not acceptable as it should display the address of the SMTP Authenticated User ID.

Can anyone help me in this regard and guide me where to change and what ?

An immediate response is awaited !!!

Thanks in Advance

[475 byte] By [Yadwendrav] at [2007-11-26 11:53:13]
# 1
Hi,Please refer to the messaging server admin guide on the "authrewrite" channel keyword. This keyword provides the functionality you require.Regards,Shane.
shane_hjorth at 2007-7-7 12:09:53 > top of Java-index,E-Mail, Calendar, & Collaboration,Sun Java System Messaging Server...
# 2
HiThanks for your reply. I have gone thru the keyword and applied the same but of no use. I have added authrewrite 2 to the channle but still I am not getting the result.Regards
yadwendrav at 2007-7-7 12:09:53 > top of Java-index,E-Mail, Calendar, & Collaboration,Sun Java System Messaging Server...
# 3
You did remember to run:imsimta cnbuildimsimta restart right?Perhaps you might want to post the channel definitions where you added the keyword, in case there's an error in what you did. . .
jay_plesset at 2007-7-7 12:09:53 > top of Java-index,E-Mail, Calendar, & Collaboration,Sun Java System Messaging Server...
# 4

Hi,

Firstly, authrewrite 2 will add a 'Sender: <email address>' to the message, which is not the same as replacing the return-path.

I was able to add a 'Sender:' header AND replace the return-path: with the authenticated users email address using the following settings:

<--imta.cnf-->

tcp_auth smtp mx single_sys mustsaslserver missingrecipientpolicy 4 authrewrite 3

<--end imta.cnf file-->

<--mappings file-->

AUTH_REWRITE

! mail-from|sender|from|auth-sender

! $J$K$3 -> replace envelope from: with auth-sender

! $Y$T$3 -> add Sender:/Resent-sender: header

*|*|*|*$J$K$3|$Y$T$3

<--end mappings file-->

**NOTE: there needs to be a space in front of the *|*|*|*$J$K$3|$Y$T$3 line**

As Jay noted, you need to make sure that you:

a. Add the keyword to the correct channel (i.e. tcp_auth)

b. Make sure that you recompile and restart the MTA:

./imsimta cnbuild; ./imsimta restart

Regards,

Shane.

shane_hjorth at 2007-7-7 12:09:53 > top of Java-index,E-Mail, Calendar, & Collaboration,Sun Java System Messaging Server...
# 5

Thank you very much for your support ||

I am able to solve my problem. Shane, missingrecipientpolicy is already set in option.dat file so I avoid using the keyword with the channel.

I have changed the value of authrewrite to 3 as adviced and it is working fine.. I also tried changing the diffirent value .. when I set it to 5 .. it replace the original from envelope .. which I don't think is a good idea.. It worth having return path as authenticated user instead of replacing the from ID.

Once again Thank you guys.

Regards

Yadwendra

yadwendrav at 2007-7-7 12:09:53 > top of Java-index,E-Mail, Calendar, & Collaboration,Sun Java System Messaging Server...