Again thank Wietse and Jose about your clarification.

For the control subjects, I work with your advice.
But... I check with the smtpd_access_policy if the user (sasl_username) is 
allowed to use this sender (from).

I don't understand why, on some mail, postfix does not send the right from my 
script.
Below is an example of an email in error.

Do you see why postfix does not see the good sender and give to my script 
(elodie@***.fr) and not serv...@smtp.mail.taobao.com ?
I've decoded the send and to UTF8 that is "Lynx Tmall 
<serv...@smtp.mail.taobao.com>".

Bests Regards,
Nathan

That the smtpd_access_policy send to my script:

request smtpd_access_policy
helo_name aekfhwtwe
queue_id 54E721AF59E
sender elodie@***.fr
recipient 8...@21cn.com
recipient_count 1
client_address 119.189.88.156
client_name unknown
reverse_client_name unknown
instance 6fa5.5282d285.e
sasl_method LOGIN
sasl_username elodie@***.fr
sasl_sender 
size 3313

That the mail header:

Return-Path: <elodie@***.fr>
Received: from aekfhwtwe (unknown [119.189.88.156])
(Authenticated sender: elodie@***.fr)
by mx05.mail_server.tld (Postfix) with ESMTPA id 54E721AF59E
for <8...@21cn.com>; Wed, 13 Nov 2013 02:14:45 +0100 (CET)
Sender: elodie@***.fr
Message-ID: <712E0F8AF1DC3F8C383E1412D1334C69@aekfhwtwe>
From: =?gb2312?B?zOzDqFRtYWxs?= <serv...@smtp.mail.taobao.com>
To: "³ÂÇÚ" <8...@21cn.com>
Subject: =?gb2312?B?x9ewrrXEs8LH2izM1LGmsaPP1dKy09DLqzExxbajobO1z9XLxA==?=
=?gb2312?B?1dvG8KOsuPzT0NX1x665pcLUo6Gyu732yMPE+sqho6y7ucTcyMPE+g==?=
=?gb2312?B?16yjoQ==?=
Date: Wed, 13 Nov 2013 09:14:29 +0800
MIME-Version: 1.0
Content-Type: text/html;
charset="gb2312"
Content-Transfer-Encoding: base64
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2900.5512
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5512

Reply via email to