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]

# 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.
# 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