我试图设置Mikrotik (RouterOS v6.24)发送电子邮件。
我有谷歌帐户,我正在使用SMTP连接。我知道我需要允许出站连接才能工作。但是当我试图发送电子邮件时,入站过滤器将阻止连接,发送电子邮件将失败。
16:37:04 firewall,info input: in:ether1-WAN out:(none), src-mac 00:13:60:16:4f:c6, proto TCP (SYN,ACK), 74.125.128.108:587->x.x.x.x:5462当我禁用输入过滤器时。电子邮件将正确发送。
RouterOS设置:
address: 74.125.128.108
port: 587
start-tls: yes
from: xxxxx@gmail.com
user: xxxxx
password: xxxxxxxx
last-status: failed使用的命令:
send to=xxxxx@xxxx.com from="xxxx@gmail.com" subject="test email" body="test body"发布于 2016-09-14 11:35:22
您似乎不允许输入链上的established/related连接。
为了使路由器能够与外部世界(无论是smtp还是其他任何东西)通信,并且输入链上有防火墙,您需要允许任何已建立的/相关的连接返回到路由器。
只需在输入链的顶部添加以下规则:
/ip firewall filter add chain=input connection-state=established,related action=accepthttps://serverfault.com/questions/802807
复制相似问题