Hi Mark

normally , dovecot service will save a copy of mail that i sent , but , mailx won't ,

i was using mailx to sent those test mails to you , so , there were no raw message left in my mail server

from the message that you received , there is nothing wrong with the spoofing mail(test mail 1)

remeber i said i have two mail servers and one client machine,

i sent those test mail to these two mail servers , one accept test mails just did as yours , another one (the one are fixing ), lost the To: and subject:header.

i start to believe that is my sendmail service's problem.

On 12/29/2015 11:58 AM, Mark Sapiro wrote:
On 12/27/2015 10:11 PM, MichaelLeung wrote:
please tell me what did you see the To: and the Subject:header

Look at the raw message or at least the raw message headers. You can do
this with, e.g., less or vi on the mailbox containing the message or
with any mail client that will show you the raw message or the complete
headers.

Here are the messages I received from you minus some headers such as
Received:, Delivered-To: and MailScanner headers added by MTAs in transit.

message sent by echo "test message 1" | mail -s 'test mail 1' -r mark@
msapiro.net [email protected]
----------------------------------------------------------
Return-Path: <[email protected]>
Received: (from root@localhost)
        by ali.gbcbooks.eu.org (8.14.4/8.14.4/Submit) id tBS3e95u030672
        for [email protected]; Mon, 28 Dec 2015 11:40:09 +0800
Date: Mon, 28 Dec 2015 11:40:09 +0800
From: [email protected]
To: [email protected]
Subject: test mail 1
Message-ID: <5680af19.5tmi+2oltzoltjxo%[email protected]>
User-Agent: Heirloom mailx 12.4 7/29/08
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

test message 1
----------------------------------------------------------

Return-Path: is set by the final MTA to the envelope sender set by the
-r option. The message contains both Subject: from the -s option and To:
with the recipients address. The From: header is also set freom the -r
option


message sent by echo "test message 2" | mail -s 'test mail 2'
[email protected]
----------------------------------------------------------
Return-Path: <[email protected]>
Received: (from root@localhost)
        by ali.gbcbooks.eu.org (8.14.4/8.14.4/Submit) id tBS3e9io030675
        for [email protected]; Mon, 28 Dec 2015 11:40:09 +0800
From: root <[email protected]>
Message-Id: <[email protected]>
Date: Mon, 28 Dec 2015 11:40:09 +0800
To: [email protected]
Subject: test mail 2
User-Agent: Heirloom mailx 12.4 7/29/08
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

test message 2
----------------------------------------------------------

This message is the same except the From: and Return-Path: are the
user@host that sent it because there is no -r option.


i issue these commands

echo "test message 1" | mail -s 'test mail 1' -r [email protected]
[email protected]

echo "test message 2" | mail -s 'test mail 2' [email protected]

i got test mail 2 as normal ,but test mail 1 did not have To:and
Subject:header

And how did you look at it to determine that? The messages you sent to
me clearly do have appropriate To: and Subject: headers put there by
your mailx User-Agent:


------------------------------------------------------
Mailman-Users mailing list [email protected]
https://mail.python.org/mailman/listinfo/mailman-users
Mailman FAQ: http://wiki.list.org/x/AgA3
Security Policy: http://wiki.list.org/x/QIA9
Searchable Archives: http://www.mail-archive.com/mailman-users%40python.org/
Unsubscribe: 
https://mail.python.org/mailman/options/mailman-users/archive%40jab.org

Reply via email to