Mailx不报告邮件是从头中发送的?

在本地服务器上使用postfix的最终邮件的头文件中,我无法看到通常在收到的发件人的IP。

From [email protected] Wed May 28 12:26:54 2014 Return-Path: <[email protected]> X-Original-To: [email protected] Delivered-To: [email protected] Received: by testmailer.com (Postfix, from userid 0) id A503876209C; Wed, 28 May 2014 12:26:54 +0530 (IST) Subject: test To: <[email protected]> Cc: <[email protected]> X-Mailer: mail (GNU Mailutils 2.2) Message-Id: <[email protected]> Date: Wed, 28 May 2014 12:26:54 +0530 (IST) From: [email protected] (root) 

这里是邮件服务器的configuration:

 myorigin = $myhostname smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu) biff = no # appending .domain is the MUA's job. append_dot_mydomain = no # Uncomment the next line to generate "delayed mail" warnings #delay_warning_time = 4h readme_directory = no # TLS parameters smtpd_tls_cert_file=/etc/ssl/certs/ssl-cert-snakeoil.pem smtpd_tls_key_file=/etc/ssl/private/ssl-cert-snakeoil.key smtpd_use_tls=yes smtpd_tls_session_cache_database = btree:${data_directory}/smtpd_scache smtp_tls_session_cache_database = btree:${data_directory}/smtp_scache # See /usr/share/doc/postfix/TLS_README.gz in the postfix-doc package for # information on enabling SSL in the smtp client. myhostname = testmailer.com virtual_alias_maps = hash:/etc/postfix/virtual alias_database = hash:/etc/aliases #myorigin = /etc/mailname mydestination = tcmailer8.in, karan-desktop, localhost.localdomain, localhost relayhost = mynetworks =192.168.1.13 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128 mailbox_size_limit = 0 recipient_delimiter = + inet_interfaces = all home_mailbox = Maildir/ #sender dependent ip sender_dependent_default_transport_maps = hash:/etc/postfix/dependent #smtp_bind_address = 192.168.1.13 #virtual mailbox setup virtual_mailbox_domains = /etc/postfix/vhosts virtual_mailbox_base = /home/vmail virtual_mailbox_maps = hash:/etc/postfix/vmaps virtual_minimum_uid = 1000 virtual_uid_maps = static:5000 virtual_gid_maps = static:5000 

当通过mail命令(或sendmail二进制)提交mail并在本地交付时,由于没有smtp事务,因此不会打印任何IP地址。 这是电子邮件stream

皮卡 – > Qmgr – > smtp(通过本地继电器)

来自maillog的certificate

 Oct 12 08:09:51 web postfix/pickup[48333]: 865E134781F: uid=1010 from=<masegaloeh> Oct 12 08:09:51 web postfix/cleanup[48757]: 865E134781F: message-id=<[email protected]> Oct 12 08:09:51 web postfix/qmgr[79683]: 865E134781F: from=<[email protected]>, size=327, nrcpt=1 (queue active) Oct 12 08:09:51 web postfix/smtp[48759]: 865E134781F: to=<[email protected]>, relay=local, delay=0.21, delays=0.01/0.17/0/0.03, dsn=2.0.0, status=sent (delivered to mailbox) 

正如你所看到的,根本没有TCP连接。 Postfix只是在其小型程序之间传递电子邮件。