幸福飞过海 - smtp https://fengqi.me/tag/smtp/ [记录]Proxmox VE 通过外部 SMTP 服务器发邮件,同样适用其他调用Postfix的服务 https://fengqi.me/unix/541.html 2021-05-15T12:54:00+00:00 PVE默认发送的邮件会被丢垃圾箱,所以想改为自己的SMTP安装SASL依赖SSH登录或在Web控制面板点击>_Shell输入:apt-get install -y libsasl2-modules 配置Postfix信息修改 /etc/postfix/main.cf 尾部添加:relayhost = smtp.exmail.qq.com:465 smtp_sasl_auth_enable = yes smtp_sasl_security_options = noanonymous smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd smtp_sender_dependent_authentication = yes smtp_generic_maps = hash:/etc/postfix/generic smtp_use_tls = yes smtp_tls_wrappermode = yes smtp_tls_security_level = encrypt smtp_tls_CAfile = /etc/ssl/certs/ca-certificates.crt relayhost 需要改为自己的SMTP服务和SSL端口号注意 /etc/postfix/main.cf 文件应该还有一个内容为空的 relayhost 默认配置请删掉或者注释[...] [总结]使用 Xinetd 代理 Gmail 的 SMTP 和 IMAP https://fengqi.me/default/373.html 2015-04-18T14:41:00+00:00 参考了解: xinted端口转发Gmail 的 SMTP 和 IMAP 本来一直都是正常的,自从上次无故屏蔽后,虽然后来解封了,但是也变得断断续续了,不稳定。这里简单分享下用 Linux 下的 Xinetd 代理 SMTP 和 IMAP 收发邮件的方法,原理是使用 Xinetd 进行端口转发,前提你你有一台能正常访问 Gmail 的服务器。此法针对客户端,Web 端请自己想办法。安装以 Ubuntu 14.04.2 为例:sudo apt-get install -y xinetd创建配置文件 /etc/xinetd.d/gmail,内容如下:[...]