LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Server (https://www.linuxquestions.org/questions/linux-server-73/)
-   -   how to change mail header (https://www.linuxquestions.org/questions/linux-server-73/how-to-change-mail-header-590975/)

yukinK 10-11-2007 01:34 AM

how to change mail header
 
hai ,

i have setup a new LAMP server, when i try to send mail using the server.it delivered as spam. also in the email header i have got some weird thing " Received: from smtp.com (my-site.com [127.0.0.1])"

which i want to change

Received: from xxxxx.com (my-site.com [127.0.0.1]).

any idea , where to change it , and how to change it.

please help me to fix this problem.i trying to solve it since three days.

find the result for good analysis.


Return-Path: <cyrus@xxxxxx>
Received: from xxxxx ([unix socket])
by xxxxxx (Cyrus v2.1.15) with LMTP; Tue, 09 Oct 2007 13:12:22 +0530
X-Sieve: CMU Sieve 2.2
Return-Path: <nandha@bp.com>
Received: from smtp02.xxxxx.com (smtp02.xxxxxx.com [00.0.0.0])
by xxxxx.xxxxxx.com (8.12.8/8.12.8) with ESMTP id l997fAgI022639
for <tamilmalaravan@xxxxxx.com>; Tue, 9 Oct 2007 13:12:03 +0530
Received: from smtp.com (my-site.com [127.0.0.1])
by smtp02.xxxxx.com (8.12.11.20060308/8.12.11) with SMTP id l996olE3019109
for <tamilmalaravan@xxxxxxx.com>; Tue, 9 Oct 2007 01:50:52 -0500
Message-Id: <200710090650.l996olE3019109@smtp02.xxxxxxx.com>
Date: Tue, 9 Oct 2007 01:50:52 -0500
From: "nandha"<nandha@bp.com>
Subject: fgdg
To: tamilmalaravan@xxxxx.com
Precedence: list
Content-Type: text/html
MIME-Version: 1.0
Reply-to: nandha@bp.com
X-BPCamp: cm_camp_253
X-Bulkmail: 2.04
X-yoursite-MailScanner-Information: Please contact the ISP for more information
X-yoursite-MailScanner: Found to be clean
X-MailScanner-From: nandha@bp.com




thanks in advance.

ghostdancer 10-13-2007 01:29 PM

That is not how a mail system works. I am not exactly sure how to put it more accurately, but "Received:" header is added by the mail server. The "Received:" headers of any email message will tell you where the message originated and what route it took to get to you. Technically, you can, add this "Received:" header into your email before sending it to a mail server. However, it will not prevent the mail server to add its "Received:" header.

To understand more into this, I suggest you should read:

Reading Email Headers

If you are curious, you should also read into (to get a better understanding of SMTP and mail headers):

I guess, this is not the answer you wish to see...


All times are GMT -5. The time now is 09:06 PM.