OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
Re: mail from(Return-Path) when a mail relay via alias

From: Jeff Huang (jbhuangscut.edu.cn)
Date: Wed Apr 21 2010 - 21:12:34 CDT


For Example£º

Mail Server1(domain1.com):
alias:
id1:id2domain2.com

when I send a email from other domain(not domain1.com) to id1domain1.com.

I will receive this email from id2domain2.com.

And I check the header of the email,I found that:Return-Path: <>.

--------------------------------------------------
From: "mouss" <moussml.netoyen.net>
Sent: Thursday, April 22, 2010 6:09 AM
To: <postfix-userspostfix.org>
Subject: Re: mail from(Return-Path) when a mail relay via alias

> Jeff Huang a ¨¦crit :
>> Hi All.
>>
>> I found when I send a email via alias,the Return-Path is null.
>>
>> For example,the alias :
>>
>> id1domain1.com:id1domain2.com <mailto:id1domain1.com:id1domain2.com>
>
> sorry, unparsable...
> please copy-paste.
> anyway, in alias_maps, there's no domain in the left hand side:
> joe: jimexample.com
>
>>
>> when I sent a email from id2domain.com <mailto:id2domain.com> to
>> id1domain1.com,I <mailto:id1domain1.com,I> found I recevie from
>> id1domain2.com <mailto:id1domain2.com> and found the Return-Path is null.
>>
>> How can I set it to enable returen path
>
> the return-path is null in bounces or if your mailer generates it.
> and in any case, alias rewrite doesn't has no influence on the return-path.
>
> so you have another problem. please explain exactly what happens and
> show examples and logs.
>
>