MacOS /etc/postfix 配置SMTP

时间:2021-02-16 06:59:24
【文件属性】:
文件名称:MacOS /etc/postfix 配置SMTP
文件大小:29KB
文件格式:7Z
更新时间:2021-02-16 06:59:24
Mac 使用方法 使用 sublime text 打开 /etc/postfix 文件夹,将 my_username、my_password 批量替换成自己的, 然后: ``` $ cd /etc/postfix $ sudo chown root ./* $ sudo postmap sasl_passwd generic sd_relayhost sender_canonical $ sudo launchctl stop org.postfix.master && sudo launchctl start org.postfix.master ``` 就可以使用 smtp 发送邮件了: ``` $ echo "`hostname -s` test time:`date "+%Y-%m-%d %H:%M:%S"`" | mail -s "test smtp send" imail@163.com ```
【文件预览】:
MacOS postfix
----sd_relayhost(40B)
----master.cf(7KB)
----custom_header_checks(44B)
----transport(12KB)
----relocated(7KB)
----sender_canonical(1KB)
----aliases(10KB)
----virtual(12KB)
----main.cf(26KB)
----canonical(11KB)
----bounce.cf.default(3KB)
----makedefs.out(3KB)
----access(21KB)
----README.md(523B)
----generic(1KB)
----sasl_passwd(44B)
----header_checks(21KB)

网友评论