I dont have sendmail installed in the box, hence I need to go with postfix sendmail.
Below is the output of sendmail (from Solaris box as I dont have a Linux 4/5 and this Solaris box has sendmail):
On Solaris:
-----------
bash-3.00# sendmail -bv pnet_register@bmc.compnet_register@bmc.com... deliverable: mailer esmtp, host bmc.com., user
pnet_register@bmc.com
On Linux
----------
[root@vm-rlnx-rds1203 /]# sendmail -bv
pnet_register@bmc.com
Mail Delivery Status Report will be mailed to <root>.
[root@vm-rlnx-rds1203 /]# mail
Heirloom Mail version 12.4 7/29/08. Type ? for help.
"/var/spool/mail/root": 8 messages 1 new
1 Mail Delivery System Thu May 5 11:52 62/2105 "Mail Delivery Status Report"
2 Mail Delivery System Thu May 5 11:54 62/2135 "Mail Delivery Status Report"
3 Mail Delivery System Thu May 5 11:57 62/2077 "Mail Delivery Status Report"
4 Mail Delivery System Mon May 9 10:32 62/2105 "Mail Delivery Status Report"
5 Mail Delivery System Mon May 9 10:32 62/2135 "Mail Delivery Status Report"
6 Mail Delivery System Mon May 9 10:45 62/2143 "Mail Delivery Status Report"
7 Mail Delivery System Mon May 9 10:51 62/2077 "Mail Delivery Status Report"
>N 8 Mail Delivery System Mon May 9 10:51 61/2066 "Mail Delivery Status Report"
& 8
Message 8:
From MAILER-DAEMON Mon May 9 10:51:50 2011
Return-Path: <>
X-Original-To:
root@vm-rlnx-rds1203.bmc.com
Delivered-To:
root@vm-rlnx-rds1203.bmc.com
Date: Mon, 9 May 2011 10:51:50 +0530 (IST)
From:
MAILER-DAEMON@vm-rlnx-rds1203.bmc.com (Mail Delivery System)
Subject: Mail Delivery Status Report
To:
root@vm-rlnx-rds1203.bmc.com
Auto-Submitted: auto-replied
Content-Type: multipart/report; report-type=delivery-status;
boundary="029AD162778.1304918510/vm-rlnx-rds1203.bmc.com"
Status: R
Part 1:
Content-Description: Notification
Content-Type: text/plain; charset=us-ascii
This is the mail system at host vm-rlnx-rds1203.bmc.com.
Enclosed is the mail delivery report that you requested.
The mail system
<pnet_register@bmc.com>: delivery via phx-flicker-01.bmc.com[172.24.33.152]:25:
250 2.1.5 Ok
Part 2:
Content-Description: Delivery report
Content-Type: message/delivery-status
Part 3:
Content-Description: Message Headers
Content-Type: text/rfc822-headers
Return-Path: <root@vm-rlnx-rds1203.bmc.com>
Received: by vm-rlnx-rds1203.bmc.com (Postfix, from userid 0)
id 029AD162778; Mon, 9 May 2011 10:51:48 +0530 (IST)
From:
root@vm-rlnx-rds1203.bmc.com
Subject: probe
To:
pnet_register@bmc.com
Message-Id: <20110509052149.029AD162778@vm-rlnx-rds1203.bmc.com>
Date: Mon, 9 May 2011 10:51:48 +0530 (IST)
&
The sendmail command returned the host as bmc.com. and the postfix output says delivery via phx-flicker-01.bmc.com I was wondering why both are different as I had given the same recipient. I couldnt find the exact equivalent of host from sendmail -bv output in postfis output
Regards