默认的s-nail配置文件运行时会报警告
s-nail: Warning: variable superseded or obsoleted: bsdannounce
s-nail: Obsoletion warning: command will be removed: fwdretain
可以考虑注释掉s-nail.rc文件的bsdannounce/fwdretain命令
使用网上的邮件配置虽然可以运行
set from=demo@163.com
set mta=smtp://smtp.163.com:25
set smtp-auth-user=
set smtp-auth-password=
set smtp-auth=login
但还是会报如下警告,提示格式即将废弃
s-nail: Warning: variable superseded or obsoleted: smtp
s-nail: Warning: variable superseded or obsoleted: smtp-auth-user
s-nail: Warning: variable superseded or obsoleted: smtp-auth-password
s-nail: Obsoletion warning: please do not use *smtp*, instead assign a smtp:// URL to *mta*!
s-nail: Obsoletion warning: Use of old-style credentials, which will vanish in v15!
s-nail: Please read the manual section "On URL syntax and credential lookup"
改成以下格式就可以消除警告
set v15-compat
set from=demo@163.com
# 二选一,使用http
set mta=smtp://username:password@smtp.163.com:25
# 二选一,使用https,需自行解决证书问题
set mta=smtp://username:password@smtp.163.com:25 smtp-use-starttls
set smtp-auth=login