安装
sudo apt update && sudo apt install -y msmtp msmtp-mta
安装过程中弹出来的Configuring msmtp 选择No
配置(编辑后保存)
nano ~/.msmtprc
添加下面配置内容
家里用不到IPV6,编译固件去掉IPV6的话,论坛里其他网友可能又有IPV6的需求
所以每次刷机后手动关闭吧,全部拷贝到ssh后台一键即可关闭。
uci set network.lan.ipv6='0'
uci set network.wan.ipv6='0'
uci set network.wan6.proto='none'
uci set network.wan6.disabled='1'
uci set network.wan6.auto='0'
uci set dhcp.lan.dhcpv6='disabled'
uci set dhcp.lan.ra='disabled'
uci del firewall.cfg0892bd
uci del firewall.cfg0a92bd
uci del firewall.cfg0b92bd
uci del dhcp.lan.ra
uci del dhcp.lan.ra_slaac
uci del dhcp.lan.ra_flags
uci del dhcp.lan.dhcpv6
uci del network.lan.ip6assign
uci set network.lan.delegate='0'
uci del firewall.cfg0892bd
uci set firewall.cfg0992bd.family='ipv4'
uci set firewall.cfg0a92bd.family='ipv4'
uci commit
reboot