Mailx 没有在邮件标题中报告邮件发送的 IP?

Mailx 没有在邮件标题中报告邮件发送的 IP?

在使用 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)

以下是邮件服务器的配置:

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

答案1

mail当电子邮件通过命令(或二进制)提交sendmail并在本地传递时,它不会打印任何 IP 地址,因为没有 smtp 事务。以下是电子邮件流程

Pickup -> Qmgr -> smtp (通过本地中继)

来自邮件日志的证明

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 只是在其 minion 程序之间传递电子邮件。

相关内容