我刚刚检查了我的电子邮件日志/var/log/mail.log
Apr 22 22:09:02 server2 postfix/pickup[14310]: D1FCF737C5B0B: uid=0 from=<root>
Apr 22 22:09:02 server2 postfix/cleanup[17071]: D1FCF737C5B0B: message-id=<[email protected]>
Apr 22 22:09:02 server2 postfix/qmgr[5168]: D1FCF737C5B0B: from=<[email protected]>, size=1007, nrcpt=1 (queue active)
Apr 22 22:09:02 server2 postfix/local[4179]: D1FCF737C5B0B: to=<[email protected]>, orig_to=<root>, relay=local, delay=0.08, delays=0/0/0/0.07, dsn=2.0.0, status=sent (delivered to command: /usr/bin/procmail-wrapper -o -a $DOMAIN -d $LOGNAME)
Apr 22 22:09:02 server2 postfix/qmgr[5168]: D1FCF737C5B0B: removed
Apr 22 22:10:01 server2 postfix/pickup[14310]: 99D47737C5B18: uid=0 from=<root>
Apr 22 22:10:01 server2 postfix/cleanup[17071]: 99D47737C5B18: message-id=<[email protected]>
Apr 22 22:10:01 server2 postfix/qmgr[5168]: 99D47737C5B18: from=<[email protected]>, size=1007, nrcpt=1 (queue active)
Apr 22 22:10:01 server2 postfix/local[4179]: 99D47737C5B18: to=<[email protected]>, orig_to=<root>, relay=local, delay=0.14, delays=0.02/0/0/0.12, dsn=2.0.0, status=sent (delivered to command: /usr/bin/procmail-wrapper -o -a $DOMAIN -d $LOGNAME)
Apr 22 22:10:01 server2 postfix/qmgr[5168]: 99D47737C5B18: removed
Apr 22 22:11:01 server2 postfix/pickup[14310]: B73FF737C5B17: uid=0 from=<root>
Apr 22 22:11:01 server2 postfix/cleanup[17071]: B73FF737C5B17: message-id=<[email protected]>
Apr 22 22:11:01 server2 postfix/qmgr[5168]: B73FF737C5B17: from=<[email protected]>, size=1007, nrcpt=1 (queue active)
Apr 22 22:11:01 server2 postfix/local[18224]: B73FF737C5B17: to=<[email protected]>, orig_to=<root>, relay=local, delay=0.07, delays=0.01/0.02/0/0.04, dsn=2.0.0, status=sent (delivered to command: /usr/bin/procmail-wrapper -o -a $DOMAIN -d $LOGNAME)
Apr 22 22:11:01 server2 postfix/qmgr[5168]: B73FF737C5B17: removed
Apr 22 22:11:04 server2 postfix/smtpd[18233]: connect from a0-10.smtp-out.eu-west-1.amazonses.com[54.240.0.10]
Apr 22 22:11:04 server2 postfix/smtpd[18233]: NOQUEUE: reject: RCPT from a0-10.smtp-out.eu-west-1.amazonses.com[54.240.0.10]: 454 4.7.1 <[email protected]>: Relay access denied; from=<20160422104811b2c07451cbfc4253829673647cf0p0eu-C30TW32XKSM7YZ@bounces.amazon.co.uk> to=<[email protected]> proto=ESMTP helo=<a0-10.smtp-out.eu-west-1.amazonses.com>
Apr 22 22:11:28 server2 postfix/smtpd[18233]: disconnect from a0-10.smtp-out.eu-west-1.amazonses.com[54.240.0.10]
Apr 22 22:12:02 server2 postfix/pickup[14310]: 6BC9A737C5AF6: uid=0 from=<root>
Apr 22 22:12:02 server2 postfix/cleanup[17071]: 6BC9A737C5AF6: message-id=<[email protected]>
Apr 22 22:12:02 server2 postfix/qmgr[5168]: 6BC9A737C5AF6: from=<[email protected]>, size=1007, nrcpt=1 (queue active)
Apr 22 22:12:02 server2 postfix/local[18224]: 6BC9A737C5AF6: to=<[email protected]>, orig_to=<root>, relay=local, delay=0.05, delays=0.01/0/0/0.04, dsn=2.0.0, status=sent (delivered to command: /usr/bin/procmail-wrapper -o -a $DOMAIN -d $LOGNAME)
Apr 22 22:12:02 server2 postfix/qmgr[5168]: 6BC9A737C5AF6: removed
Apr 22 22:13:01 server2 postfix/pickup[14310]: D2079737C5B1A: uid=0 from=<root>
Apr 22 22:13:01 server2 postfix/cleanup[17071]: D2079737C5B1A: message-id=<[email protected]>
Apr 22 22:13:01 server2 postfix/qmgr[5168]: D2079737C5B1A: from=<[email protected]>, size=1007, nrcpt=1 (queue active)
Apr 22 22:13:01 server2 postfix/local[18224]: D2079737C5B1A: to=<[email protected]>, orig_to=<root>, relay=local, delay=0.05, delays=0.01/0/0/0.04, dsn=2.0.0, status=sent (delivered to command: /usr/bin/procmail-wrapper -o -a $DOMAIN -d $LOGNAME)
Apr 22 22:13:01 server2 postfix/qmgr[5168]: D2079737C5B1A: removed
Apr 22 22:14:02 server2 postfix/pickup[14310]: 4979F737C5AF7: uid=0 from=<root>
Apr 22 22:14:02 server2 postfix/cleanup[17071]: 4979F737C5AF7: message-id=<[email protected]>
Apr 22 22:14:02 server2 postfix/qmgr[5168]: 4979F737C5AF7: from=<[email protected]>, size=1007, nrcpt=1 (queue active)
Apr 22 22:14:02 server2 postfix/local[18224]: 4979F737C5AF7: to=<[email protected]>, orig_to=<root>, relay=local, delay=0.05, delays=0.01/0/0/0.04, dsn=2.0.0, status=sent (delivered to command: /usr/bin/procmail-wrapper -o -a $DOMAIN -d $LOGNAME)
Apr 22 22:14:02 server2 postfix/qmgr[5168]: 4979F737C5AF7: removed
VPS 有名称server2.domain.com
安装操作系统后,我将主机名设置为server2.dollarhosting.com
我很难理解这个日志文件,所以如果有人能给我一个关于以下新手问题的清晰解释,我真的很感激:
1:既然我已经将主机名设置为server2.dollarhosting.com
,为什么在日志文件中我仍然看到一些包含的行server2.domain.com
?这是否表明一些不正确的 VPS 配置?(我使用自动安装脚本安装了 virtualmin)。
2:我看到很多来自root
to的电子邮件root
,这是否意味着服务器将这些电子邮件发送到服务器外部,然后这些电子邮件又回到服务器?这对我很重要,因为我需要控制外发电子邮件的数量。
3:那些电子邮件(从根到根)对我来说真的一点用处都没有。为什么它们会自动生成?无论如何要停止这种行为,我应该这样做,还是停止它会影响其他用户的邮件传递?
4:是/var/log/mail.log
系统中唯一的邮件日志文件(我希望是的,因为我需要严格控制/监视服务器的电子邮件活动)。
非常感谢您的帮助!
您有几条本地生成和传递的消息,您应该阅读这些消息,并且(如果您真的不想在此服务器上阅读它们)您应该转发到某个地方。一旦您知道这些消息是什么,您就可以采取任何适当的措施。
这些消息很可能是由仍然认为旧主机名有效的进程生成或处理的,即自从更改主机名后它没有重新启动,因此旧主机名显示在消息 ID 中。重新启动计算机以解决此问题。
您有一封尝试通过 Amazon SES 传递的邮件,但被拒绝,可能是因为您的邮件发送者没有使用正确的凭据登录。
最后,既然你说你安装了 virtualmin,你可能应该擦掉整个东西,然后重新安装一个不包含此类软件的全新安装。
根据所提供的信息,不可能再多说什么。