Connection refused by [127.0.0.1]
2017-12-21 02:08
211 查看
Specify *both* IP interfaces in *.mc file you use to generate sendmail.cf
and recompile it.
DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA-local')dnl
DAEMON_OPTIONS(`Port=smtp,Addr=192.168.1.100, Name=MTA-public')dnl
找到某博主文章结尾有这句,翻译后操作,成功修复错误。
在sendmail.mc文件中的DAEMON_OPTIONS行,将Addr为127.0.0.1的Name改为MTA-local(默认是MTA),
新增同样一行,将Addr改为你的邮箱地址,Name设置为MTA-public(默认是MTA)。
最后,重编译sendmail.mc文件到sendmail.cf文件,
即用m4命令:
m4
sendmail.mc>sendmail.cf
重新启动sendmail服务
systemctl
restart sendmail.service
and recompile it.
DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA-local')dnl
DAEMON_OPTIONS(`Port=smtp,Addr=192.168.1.100, Name=MTA-public')dnl
找到某博主文章结尾有这句,翻译后操作,成功修复错误。
在sendmail.mc文件中的DAEMON_OPTIONS行,将Addr为127.0.0.1的Name改为MTA-local(默认是MTA),
新增同样一行,将Addr改为你的邮箱地址,Name设置为MTA-public(默认是MTA)。
最后,重编译sendmail.mc文件到sendmail.cf文件,
即用m4命令:
m4
sendmail.mc>sendmail.cf
重新启动sendmail服务
systemctl
restart sendmail.service
相关文章推荐
- Connection refused by [127.0.0.1]
- redhat senmail Connection refused by [127.0.0.1] 的解决方法
- sendmail不能发邮件及错误处理 DSN: Service unavailable;Connection refused by [127.0.0.1]
- Linux用sendmail发信失败,提示Connection refused by [127.0.0.1]
- Oracle Net Services 配置:Xlib: connection to ":0.0" refused by server
- Go丨语言对数据库操作报错 panic: dial tcp 127.0.0.1:3306: connectex: No connection could be made because the target machine actively refused
- Xlib: connection to ":0.0" refused by server解决方法
- #Xlib: connection to ":0.0" refused by server Xlib: No protocol specified
- Go丨语言对数据库操作报错 panic: dial tcp 127.0.0.1:3306: connectex: No connection could be made because the target machine actively refused
- nrpe 提示Connection refused by host
- Xlib: connection to ":0.0" refused by server解决方法
- android 127.0.0.1/localhost connection refused 问题的
- 【Redis】启动redis提示Could not connect to Redis at 127.0.0.1:6379: Connection refused 已解决
- 【转载学习】Xlib: connection to ":0.0" refused by server解决方法
- Linux 出现telnet: 127.0.0.1: Connection refused错误解决办法
- android异常解决:org.apache.http.conn.HttpHostConnectException: Connection to http://127.0.0.1 refused
- android java.net.ConnectException: Connection 127.0.0.1:8080 refused
- Xlib: connection to ":0.0" refused by server
- No connection could be made because the target machine actively refused it 127.0.0.1:8888
- android java.net.ConnectException: Connection 127.0.0.1:8080 refused