Postfix mta Postfix smtpd-在/var/log/mail.log中保持连接和断开连接

Postfix mta Postfix smtpd-在/var/log/mail.log中保持连接和断开连接,postfix-mta,Postfix Mta,我正在用PostfixV3.3.0安装一个新服务器(Ubuntu18.04.1LTS) 我遵循postfix的标准部署,只发送安装程序 我可以从服务器向电子邮件发送电子邮件,并且它工作正常 但是,当我列出所有port-25侦听器时,我会看到以下内容: lsof -Pi | grep :25 master 13753 root 13u IPv4 274638 0t0 TCP localhost:25 (LISTEN) master 13753

我正在用PostfixV3.3.0安装一个新服务器(Ubuntu18.04.1LTS)

我遵循postfix的标准部署,只发送安装程序

我可以从服务器向电子邮件发送电子邮件,并且它工作正常

但是,当我列出所有port-25侦听器时,我会看到以下内容:

lsof -Pi | grep :25
master    13753            root   13u  IPv4 274638      0t0  TCP localhost:25 (LISTEN)
master    13753            root   14u  IPv6 274639      0t0  TCP localhost:25 (LISTEN)
smtpd     13770         postfix    6u  IPv4 274638      0t0  TCP localhost:25 (LISTEN)
smtpd     13770         postfix    7u  IPv6 274639      0t0  TCP localhost:25 (LISTEN)
通过在谷歌上的挖掘,我发现smtpd用于接收收到的电子邮件,但我不想接收电子邮件,只想发送

同样在/var/log/mail.log中,我反复看到以下几行。如何停止此常量连接并断开与本地主机的连接

Sep 27 07:15:52 mymachine postfix/smtpd[13780]: connect from localhost[::1]
Sep 27 07:15:52 mymachine postfix/smtpd[13780]: disconnect from localhost[::1] ehlo=1 quit=1 commands=2
Sep 27 07:17:52 mymachine postfix/smtpd[13787]: connect from localhost[::1]
Sep 27 07:17:53 mymachine postfix/smtpd[13787]: disconnect from localhost[::1] helo=1 quit=1 commands=2
Sep 27 07:17:53 mymachine postfix/smtpd[13787]: connect from localhost[::1]
Sep 27 07:17:53 mymachine postfix/smtpd[13787]: disconnect from localhost[::1] ehlo=1 quit=1 commands=2
Sep 27 07:19:53 mymachine postfix/smtpd[13790]: connect from localhost[::1]
Sep 27 07:19:53 mymachine postfix/smtpd[13790]: disconnect from localhost[::1] helo=1 quit=1 commands=2
Sep 27 07:19:53 mymachine postfix/smtpd[13790]: connect from localhost[::1]
Sep 27 07:19:53 mymachine postfix/smtpd[13790]: disconnect from localhost[::1] ehlo=1 quit=1 commands=2
有什么想法吗?可能是什么问题


谢谢。

好的-在对我的环境进行了几次挖掘之后,我发现每隔2分钟就会有一次监视ping来检查端口25上后缀的状态。因为它是仅发送设置,其中SMTPD守护进程被禁用以侦听端口#25


我知道它现在看起来很琐碎,但我只是想在这篇文章中提及,所以当有人遇到它时,它可以避免很多挫折。

这是monit的正确健康检查(请参阅linux手册页monit)。要手动更改ping速率,请打开文件monitrc(nano/etc/monit/monitrc)并更改行

set daemon 120#每隔10分钟检查一次服务


无论您想要什么样的ping速率。

嘿!你能详细说明一下吗?我正在试图找出如何更改此超时的持续时间,但到目前为止运气不佳
Sep 27 07:15:52 mymachine postfix/smtpd[13780]: connect from localhost[::1]
Sep 27 07:15:52 mymachine postfix/smtpd[13780]: disconnect from localhost[::1] ehlo=1 quit=1 commands=2
Sep 27 07:17:52 mymachine postfix/smtpd[13787]: connect from localhost[::1]
Sep 27 07:17:53 mymachine postfix/smtpd[13787]: disconnect from localhost[::1] helo=1 quit=1 commands=2
Sep 27 07:17:53 mymachine postfix/smtpd[13787]: connect from localhost[::1]
Sep 27 07:17:53 mymachine postfix/smtpd[13787]: disconnect from localhost[::1] ehlo=1 quit=1 commands=2
Sep 27 07:19:53 mymachine postfix/smtpd[13790]: connect from localhost[::1]
Sep 27 07:19:53 mymachine postfix/smtpd[13790]: disconnect from localhost[::1] helo=1 quit=1 commands=2
Sep 27 07:19:53 mymachine postfix/smtpd[13790]: connect from localhost[::1]
Sep 27 07:19:53 mymachine postfix/smtpd[13790]: disconnect from localhost[::1] ehlo=1 quit=1 commands=2